public final class RegexPropertyFilter extends Object implements org.apache.tamaya.spi.PropertyFilter
| Constructor and Description |
|---|
RegexPropertyFilter() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.tamaya.spi.PropertyValue |
filterProperty(org.apache.tamaya.spi.PropertyValue valueToBeFiltered,
org.apache.tamaya.spi.FilterContext context) |
void |
setExcludes(String... expressions)
Sets the regex expression to be applied on the key to remove the corresponding entries
if matching.
|
void |
setIncludes(String... expressions)
Sets the regex expression to be applied on the key to filter the corresponding entry
if matching.
|
String |
toString() |
public void setIncludes(String... expressions)
expressions - the regular expression for inclusion, not null.public void setExcludes(String... expressions)
expressions - the regular expressions for exclusion, not null.public org.apache.tamaya.spi.PropertyValue filterProperty(org.apache.tamaya.spi.PropertyValue valueToBeFiltered,
org.apache.tamaya.spi.FilterContext context)
filterProperty in interface org.apache.tamaya.spi.PropertyFilterCopyright © 2016–2017 Apache Software Foundation. All rights reserved.