com.atlassian.confluence.content.render.xhtml.editor
Class TableStyleRemovingElementTransformer
java.lang.Object
com.atlassian.confluence.content.render.xhtml.editor.TableStyleRemovingElementTransformer
- All Implemented Interfaces:
- ElementTransformer
public class TableStyleRemovingElementTransformer
- extends java.lang.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.
Method Summary |
java.util.Set<javax.xml.namespace.QName> |
getHandledElementNames()
|
javax.xml.stream.events.EndElement |
transform(javax.xml.stream.events.EndElement element)
|
javax.xml.stream.events.StartElement |
transform(javax.xml.stream.events.StartElement event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TableStyleRemovingElementTransformer
public TableStyleRemovingElementTransformer(XMLEventFactoryProvider xmlEventFactoryProvider)
getHandledElementNames
public java.util.Set<javax.xml.namespace.QName> getHandledElementNames()
- Specified by:
getHandledElementNames
in interface ElementTransformer
- Returns:
- the set of QNames that this transformer will handle.
transform
public javax.xml.stream.events.StartElement transform(javax.xml.stream.events.StartElement event)
- Specified by:
transform
in interface ElementTransformer
- Parameters:
event
- the StartElement to be transformed
- Returns:
- a transformed version of the StartElement supplied.
transform
public javax.xml.stream.events.EndElement transform(javax.xml.stream.events.EndElement element)
- Specified by:
transform
in interface ElementTransformer
- Parameters:
element
- ther EndElement to be transformed.
- Returns:
- a transformed version of the EndElement supplied.
Copyright © 2003-2013 Atlassian. All Rights Reserved.