Package org.simpleframework.xml.filter
Class SystemFilter
java.lang.Object
org.simpleframework.xml.filter.SystemFilter
- All Implemented Interfaces:
Filter
The
SystemFilter
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.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for theSystemFilter
object.SystemFilter
(Filter filter) Constructor for theSystemFilter
object. -
Method Summary
-
Field Details
-
filter
Filter delegated to if no system property can be resolved.
-
-
Constructor Details
-
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
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
-
-
Method Details
-
replace
Replaces the text provided with the value resolved from the system properties. If the system properties fails this will delegate to the specifiedFilter
if it is not a null object. If no match is found a null is returned.
-