Package org.simpleframework.xml.filter
Class SystemFilter
- java.lang.Object
-
- org.simpleframework.xml.filter.SystemFilter
-
- All Implemented Interfaces:
Filter
public class SystemFilter extends java.lang.Object implements Filter
TheSystemFilter
object is used to provide a filter that will replace the specified values with system properties. This can be given a delegate filter which can be used to resolve replacements should the value requested not match a property.
-
-
Constructor Summary
Constructors Constructor Description SystemFilter()
Constructor for theSystemFilter
object.SystemFilter(Filter filter)
Constructor for theSystemFilter
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
replace(java.lang.String text)
Replaces the text provided with the value resolved from the system properties.
-
-
-
Field Detail
-
filter
private Filter filter
Filter delegated to if no system property can be resolved.
-
-
Constructor Detail
-
SystemFilter
public SystemFilter()
Constructor for theSystemFilter
object. This creates a filter that will resolve replacements using system properties. Should the system properties not contain the requested mapping this will return a null value.
-
SystemFilter
public SystemFilter(Filter filter)
Constructor for theSystemFilter
object. This creates a filter that will resolve replacements using system properties. Should the system properties not contain the requested mapping this delegates to the specified filter.- Parameters:
filter
- the filter delegated to if resolution fails
-
-