public class FilterContext extends Object
PropertyFilter| Constructor and Description |
|---|
FilterContext(PropertyValue value,
ConfigurationContext context)
Creates a new FilterContext, for filtering of a single value access
using
Configuration.getProperties(). |
FilterContext(PropertyValue value,
Map<String,PropertyValue> configEntries,
ConfigurationContext context)
Creates a new FilterContext, for filtering of a multi value access
using
Configuration.getProperties(). |
| Modifier and Type | Method and Description |
|---|---|
Map<String,PropertyValue> |
getConfigEntries()
This map contains the following keys:
the original value before any filters were applied on it.
|
ConfigurationContext |
getContext()
Get the current context.
|
PropertyValue |
getProperty()
Get the property value 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 context)
Configuration.getProperties().value - the value under evaluation, not null.configEntries - the raw configuration data available in the
current evaluation context, not null.context - the current context, not null.public FilterContext(PropertyValue value, ConfigurationContext context)
Configuration.getProperties().value - the value under evaluation, not null.context - the current context, not null.public ConfigurationContext getContext()
null.public PropertyValue getProperty()
public boolean isSinglePropertyScoped()
getProperties().public Map<String,PropertyValue> getConfigEntries()
_<key>., for example a.value
may have a map set with a.value (oringinal value), _a.value.origin,
_a.value.type, etc. The exact contents is determine by the PropertySources
active.null, but the values in the raw map
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.get(String).Copyright © 2014–2017 Apache Software Foundation. All rights reserved.