public class PofSerializerPreprocessor extends Object implements DocumentElementPreprocessor.ElementPreprocessor
PofSerializerPreprocessor
is an DocumentElementPreprocessor.ElementPreprocessor
that
replaces any occurrence of <serializer>pof</serializer> with a
ConfigurablePofContext
configuration, passing in
the provided POF configuration URI in the initialization parameters.Constructor and Description |
---|
PofSerializerPreprocessor() |
Modifier and Type | Method and Description |
---|---|
boolean |
preprocess(ProcessingContext context,
XmlElement element)
Process an
XmlElement , optionally mutating it (or it's children) if required. |
public boolean preprocess(ProcessingContext context, XmlElement element) throws ConfigurationException
XmlElement
, optionally mutating it (or it's children) if required.
Note: An implementation of this interface should avoid
attempting to traverse child XmlElement
s. If you wish to
manually traverse or change the entire document, you should instead use
a DocumentPreprocessor
.
preprocess
in interface DocumentElementPreprocessor.ElementPreprocessor
context
- the ProcessingContext
in which the pre-processing is occurringelement
- the XmlElement
to preprocesstrue
if the specified XmlElement
should be
re-preprocessed by this and other DocumentElementPreprocessor.ElementPreprocessor
s
due to the XmlElement
being modified, false
otherwise.ConfigurationException
- if during pre-processing of the XmlElement
a configuration
issue was discovered (or if pre-processing fails for some reason)