public class FilterContext extends Object
PropertyFilter| Constructor | Description |
|---|---|
FilterContext(List<PropertyValue> values,
ConfigurationContext configurationContext) |
Creates a new FilterContext, for filtering of a single createValue access
using
Configuration.getProperties(). |
FilterContext(PropertyValue value,
Map<String,PropertyValue> configEntries,
ConfigurationContext configurationContext) |
Creates a new FilterContext, for filtering of a multi createValue access
using
Configuration.getProperties(). |
FilterContext(PropertyValue value,
ConfigurationContext configurationContext) |
Creates a new FilterContext, for filtering of a single createValue access
using
Configuration.getProperties(). |
| Modifier and Type | Method | Description |
|---|---|---|
List<PropertyValue> |
getAllValues() |
Get the property createValue under evaluation.
|
Map<String,PropertyValue> |
getConfigEntries() |
This mapProperties contains the following keys:
the original createValue before any filters were applied on it.
all values starting with an
_<key>., for example a.createValue
may have a mapProperties setCurrent with a.createValue (oringinal createValue), _a.createValue.origin,
_a.createValue.type, etc. |
ConfigurationContext |
getConfigurationContext() |
Get the current configurationContext.
|
PropertyValue |
getProperty() |
Get the property createValue under evaluation.
|
boolean |
isSinglePropertyScoped() |
Method that determines if filtering is done for a single property accessed, or as part of call to
getProperties(). |
String |
toString() |
public FilterContext(PropertyValue value, Map<String,PropertyValue> configEntries, ConfigurationContext configurationContext)
Configuration.getProperties().value - the createValue under evaluation, not null.configEntries - the raw configuration data available in the
current evaluation configurationContext, not null.configurationContext - the current configurationContext, not null.public FilterContext(PropertyValue value, ConfigurationContext configurationContext)
Configuration.getProperties().value - the createValue under evaluation, not null.configurationContext - the current configurationContext, not null.public FilterContext(List<PropertyValue> values, ConfigurationContext configurationContext)
Configuration.getProperties().values - the createValue under evaluation, not null.configurationContext - the current configurationContext, not null.public ConfigurationContext getConfigurationContext()
null.public PropertyValue getProperty()
public List<PropertyValue> getAllValues()
public boolean isSinglePropertyScoped()
getProperties().public Map<String,PropertyValue> getConfigEntries()
_<key>., for example a.createValue
may have a mapProperties setCurrent with a.createValue (oringinal createValue), _a.createValue.origin,
_a.createValue.type, etc. The exact contents is determine by the PropertySources
active.null, but the values in the raw mapProperties
passed as input to the filter process will not be affected by any such removal (but the final properties
returned are affected, of course).
Finally, when a single property is accessed, e.g. by calling Configuration.current(String).Copyright © 2014–2019 Apache Software Foundation. All rights reserved.