public class FilterContext extends Object
PropertyFilter
Constructor and Description |
---|
FilterContext(String key,
Map<String,String> configEntries,
boolean singlePropertyScope)
Creates a new FilterContext.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getConfigEntries()
This map contains the following keys:
the original value before any filters were applied on it.
|
String |
getKey()
Get the key accessed.
|
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(String key, Map<String,String> configEntries, boolean singlePropertyScope)
key
- the key under evaluation, not null.singlePropertyScope
- true, if the filtering is done only for one single property accessed explcitily.configEntries
- the raw configuration data available in the current evaluation context, not null.public String getKey()
public boolean isSinglePropertyScoped()
getProperties()
.public Map<String,String> 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 PropertySource
s
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–2016 Apache Software Foundation. All rights reserved.