com.atlassian.confluence.content.render.xhtml.transformers
Class Html4VoidElementFragmentTransformer

java.lang.Object
  extended by com.atlassian.confluence.content.render.xhtml.transformers.LegacyFragmentTransformer
      extended by com.atlassian.confluence.content.render.xhtml.transformers.Html4VoidElementFragmentTransformer
All Implemented Interfaces:
FragmentTransformer

public class Html4VoidElementFragmentTransformer
extends LegacyFragmentTransformer
implements FragmentTransformer

Takes xhtml fragments for TEXTAREA (either as empty elements or as a matching pair of elements) and returns it as a single unclosed element (as required by the HTML 4 spec).


Constructor Summary
Html4VoidElementFragmentTransformer()
           
 
Method Summary
 boolean handles(StartElement startElementEvent, ConversionContext conversionContext)
           
 String transformToString(XMLEventReader reader, FragmentTransformer mainFragmentTransformer, ConversionContext conversionContext)
           
 
Methods inherited from class com.atlassian.confluence.content.render.xhtml.transformers.LegacyFragmentTransformer
transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.confluence.content.render.xhtml.transformers.FragmentTransformer
transform
 

Constructor Detail

Html4VoidElementFragmentTransformer

public Html4VoidElementFragmentTransformer()
Method Detail

handles

public boolean handles(StartElement startElementEvent,
                       ConversionContext conversionContext)
Specified by:
handles in interface FragmentTransformer

transformToString

public String transformToString(XMLEventReader reader,
                                FragmentTransformer mainFragmentTransformer,
                                ConversionContext conversionContext)
                         throws XhtmlException
Specified by:
transformToString in class LegacyFragmentTransformer
Throws:
XhtmlException


Copyright © 2003–2015 Atlassian. All rights reserved.