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
TheTemplateFilter
class is used to provide variables to the template engine. This template acquires variables from two different sources. Firstly this will consult the user contextualContext
object, which can contain variables that have been added during the deserialization process. If a variable is not present from this context it asks theFilter
that has been specified by the user.
-
-
Constructor Summary
Constructors Constructor Description TemplateFilter(Context context, Filter filter)
Constructor for theTemplateFilter
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
replace(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 theTemplateFilter
object. This creates a filter object that acquires template values from two different contexts. Firstly theContext
is 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
-
-