T - the type of value that will be returned by the ConditionalElementProcessor, should an XmlElement be processed.public interface ConditionalElementProcessor<T> extends ElementProcessor<T>
ConditionalElementProcessor is an ElementProcessor that supports conditionally processing XmlElements. Unlike a regular ElementProcessor, when a ProcessingContext encounters a ConditionalElementProcessor, it will first query the said processor to determine if it should process an XmlElement.| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(ProcessingContext context, XmlElement xmlElement)
Determines if the specified
XmlElement should be processed. |
processboolean accepts(ProcessingContext context, XmlElement xmlElement) throws ConfigurationException
XmlElement should be processed.context - the ProcessingContext in which the XmlElement is being processedxmlElement - the XmlElement that would be processedtrue if the XmlElement should be processedConfigurationException - when a configuration problem was encountered