com.atlassian.confluence.content.render.xhtml.ElementTransformer |
Known Indirect Subclasses
TableStyleRemovingElementTransformer |
An XMLEventTransformer that will ensure that table, th and td elements have the Confluence classes
removed. |
TableStylingElementTransformer |
An XMLEventTransformer that will ensure that table, th and td elements have the necessary Confluence classes
appended to allow them to be styled for display. |
|
Class Overview
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.
Public Methods
public
Set<QName>
getHandledElementNames
()
Returns
- the set of QNames that this transformer will handle.
public
EndElement
transform
(EndElement element)
Parameters
element
| ther EndElement to be transformed. |
Returns
- a transformed version of the EndElement supplied.
public
StartElement
transform
(StartElement element)
Parameters
element
| the StartElement to be transformed |
Returns
- a transformed version of the StartElement supplied.