public interface ElementTransformer
Implementors should note that if the transform changes the name of the StartElement then it is also responsible for transforming the name of the EndElement to ensure the XmlEventReader contract is maintained.
You should also note that a ElementTransformingXmlEventReader
instance making use of this ElementTransformer could
well end up wrapping itself multiple times so you should write ElementTransformer's to only apply their transform
if necessary.
ElementTransformingXmlEventReader
Modifier and Type | Method and Description |
---|---|
Set<QName> |
getHandledElementNames() |
EndElement |
transform(EndElement element) |
StartElement |
transform(StartElement element) |
Set<QName> getHandledElementNames()
StartElement transform(StartElement element)
element
- the StartElement to be transformedEndElement transform(EndElement element)
element
- ther EndElement to be transformed.Copyright © 2003–2018 Atlassian. All rights reserved.