Interface ElementTransformer
- All Known Implementing Classes:
StorageHtmlAnchorElementTransformer
,TableStyleRemovingElementTransformer
,TableStylingElementTransformer
public interface ElementTransformer
An interface implemented by an object that will handle a StartElement or EndElement and transform it
in some manner.
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.
- Since:
- 4.0
- See Also:
-
Method Summary
-
Method Details
-
getHandledElementNames
- Returns:
- the set of QNames that this transformer will handle.
-
transform
- Parameters:
element
- the StartElement to be transformed- Returns:
- a transformed version of the StartElement supplied.
-
transform
- Parameters:
element
- ther EndElement to be transformed.- Returns:
- a transformed version of the EndElement supplied.
-