Package org.simpleframework.xml.core
Class TemplateFilter
- java.lang.Object
-
- org.simpleframework.xml.core.TemplateFilter
-
- All Implemented Interfaces:
Filter
class TemplateFilter extends java.lang.Object implements Filter
TheTemplateFilterclass is used to provide variables to the template engine. This template acquires variables from two different sources. Firstly this will consult the user contextualContextobject, which can contain variables that have been added during the deserialization process. If a variable is not present from this context it asks theFilterthat has been specified by the user.
-
-
Constructor Summary
Constructors Constructor Description TemplateFilter(Context context, Filter filter)Constructor for theTemplateFilterobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringreplace(java.lang.String name)This will acquire the named variable value if it exists.
-
-
-
Constructor Detail
-
TemplateFilter
public TemplateFilter(Context context, Filter filter)
Constructor for theTemplateFilterobject. This creates a filter object that acquires template values from two different contexts. Firstly theContextis queried for a variables followed by theFilter.- Parameters:
context- this is the context object for the persisterfilter- the filter that has been given to the persister
-
-