com.atlassian.confluence.content.render.xhtml.view
Class TableStylingElementTransformer

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.view.TableStylingElementTransformer
All Implemented Interfaces:
ElementTransformer

public class TableStylingElementTransformer
extends Object
implements ElementTransformer

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.


Field Summary
static Map<String,String> ELEMENT_TO_CLASS
           
static Set<QName> HANDLED_EVENTS
           
 
Constructor Summary
TableStylingElementTransformer()
           
 
Method Summary
 Set<QName> getHandledElementNames()
           
 EndElement transform(EndElement element)
           
 StartElement transform(StartElement event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ELEMENT_TO_CLASS

public static final Map<String,String> ELEMENT_TO_CLASS

HANDLED_EVENTS

public static final Set<QName> HANDLED_EVENTS
Constructor Detail

TableStylingElementTransformer

public TableStylingElementTransformer()
Method Detail

getHandledElementNames

public Set<QName> getHandledElementNames()
Specified by:
getHandledElementNames in interface ElementTransformer
Returns:
the set of QNames that this transformer will handle.

transform

public StartElement transform(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 EndElement transform(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.