Class TableStyleRemovingElementTransformer
- java.lang.Object
-
- com.atlassian.confluence.content.render.xhtml.editor.TableStyleRemovingElementTransformer
-
- All Implemented Interfaces:
ElementTransformer
public class TableStyleRemovingElementTransformer extends Object implements ElementTransformer
An XMLEventTransformer that will ensure that table, th and td elements have the Confluence classes removed.This is the complement to the
TableStylingElementTransformer
used when rendering to the editor or for view.
-
-
Constructor Summary
Constructors Constructor Description TableStyleRemovingElementTransformer(XMLEventFactoryProvider xmlEventFactoryProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<QName>
getHandledElementNames()
EndElement
transform(EndElement element)
StartElement
transform(StartElement event)
-
-
-
Constructor Detail
-
TableStyleRemovingElementTransformer
public TableStyleRemovingElementTransformer(XMLEventFactoryProvider xmlEventFactoryProvider)
-
-
Method Detail
-
getHandledElementNames
public Set<QName> getHandledElementNames()
- Specified by:
getHandledElementNames
in interfaceElementTransformer
- Returns:
- the set of QNames that this transformer will handle.
-
transform
public StartElement transform(StartElement event)
- Specified by:
transform
in interfaceElementTransformer
- Parameters:
event
- the StartElement to be transformed- Returns:
- a transformed version of the StartElement supplied.
-
transform
public EndElement transform(EndElement element)
- Specified by:
transform
in interfaceElementTransformer
- Parameters:
element
- ther EndElement to be transformed.- Returns:
- a transformed version of the EndElement supplied.
-
-