public final class ProgrammableFilter extends Object implements org.apache.tamaya.spi.PropertyFilter
Constructor and Description |
---|
ProgrammableFilter() |
Modifier and Type | Method and Description |
---|---|
void |
addFilter(int pos,
org.apache.tamaya.spi.PropertyFilter filter)
Adds a filter at given position.
|
void |
addFilter(org.apache.tamaya.spi.PropertyFilter filter)
Add a filter.
|
void |
clearFilters()
Clears all filters.
|
String |
filterProperty(String valueToBeFiltered,
org.apache.tamaya.spi.FilterContext context) |
List<org.apache.tamaya.spi.PropertyFilter> |
getFilters()
Get all filters.
|
org.apache.tamaya.spi.PropertyFilter |
removeFilter(int pos)
Removes a filter at a given position.
|
void |
removeFilter(org.apache.tamaya.spi.PropertyFilter filter)
Removes a filter.
|
void |
setFilters(Collection<org.apache.tamaya.spi.PropertyFilter> filters)
Set the filters.
|
void |
setFilters(org.apache.tamaya.spi.PropertyFilter... filters)
Set the filters.
|
String |
toString() |
public void addFilter(org.apache.tamaya.spi.PropertyFilter filter)
filter
- the filter.public void addFilter(int pos, org.apache.tamaya.spi.PropertyFilter filter)
pos
- the position.filter
- the filter.public org.apache.tamaya.spi.PropertyFilter removeFilter(int pos)
pos
- the position.public void removeFilter(org.apache.tamaya.spi.PropertyFilter filter)
filter
- the filter to be removed, not null.public void clearFilters()
public void setFilters(org.apache.tamaya.spi.PropertyFilter... filters)
filters
- the filters to be applied.public void setFilters(Collection<org.apache.tamaya.spi.PropertyFilter> filters)
filters
- the filters to be applied.public List<org.apache.tamaya.spi.PropertyFilter> getFilters()
public String filterProperty(String valueToBeFiltered, org.apache.tamaya.spi.FilterContext context)
filterProperty
in interface org.apache.tamaya.spi.PropertyFilter
Copyright © 2014–2016 Apache Software Foundation. All rights reserved.