org.xwiki.rendering.wikimodel.xhtml.handler
Class TagHandler

java.lang.Object
  extended by org.xwiki.rendering.wikimodel.xhtml.handler.TagHandler
Direct Known Subclasses:
AbstractFormatTagHandler, BreakTagHandler, DivisionTagHandler, HeaderTagHandler, HorizontalLineTagHandler, ListItemTagHandler, ListTagHandler, ParagraphTagHandler, PreserveTagHandler, QuoteTagHandler, ReferenceTagHandler, TableDataTagHandler, TableRowTagHandler, TableTagHandler

public class TagHandler
extends Object

Since:
4.0M1

Constructor Summary
TagHandler(boolean documentContainer, boolean requiresDocument, boolean contentContainer)
           
 
Method Summary
protected  void begin(XhtmlHandler.TagStack.TagContext context)
           
protected  void beginDocument(XhtmlHandler.TagStack.TagContext context)
           
protected  void beginDocument(XhtmlHandler.TagStack.TagContext context, WikiParameters params)
           
 void beginElement(XhtmlHandler.TagStack.TagContext context)
           
protected  void end(XhtmlHandler.TagStack.TagContext context)
           
protected  void endDocument(XhtmlHandler.TagStack.TagContext context)
           
 void endElement(XhtmlHandler.TagStack.TagContext context)
           
 void initialize(XhtmlHandler.TagStack stack)
           
 boolean isAccumulateContent()
           
 boolean isBlockHandler(XhtmlHandler.TagStack.TagContext context)
           
 boolean isContentContainer()
           
 boolean isDocumentContainer()
           
 boolean requiresDocument()
           
static void sendEmptyLines(XhtmlHandler.TagStack.TagContext context)
          Check if we need to emit an onEmptyLines() event.
static void sendEmptyLines(XhtmlHandler.TagStack stack)
           
 void setAccumulateContent(boolean accumulateContent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagHandler

public TagHandler(boolean documentContainer,
                  boolean requiresDocument,
                  boolean contentContainer)
Parameters:
documentContainer -
requiresDocument -
contentContainer -
Method Detail

begin

protected void begin(XhtmlHandler.TagStack.TagContext context)

beginElement

public void beginElement(XhtmlHandler.TagStack.TagContext context)

end

protected void end(XhtmlHandler.TagStack.TagContext context)

endElement

public final void endElement(XhtmlHandler.TagStack.TagContext context)

isContentContainer

public boolean isContentContainer()

isDocumentContainer

public boolean isDocumentContainer()

requiresDocument

public boolean requiresDocument()

setAccumulateContent

public void setAccumulateContent(boolean accumulateContent)

isAccumulateContent

public boolean isAccumulateContent()

sendEmptyLines

public static void sendEmptyLines(XhtmlHandler.TagStack.TagContext context)
Check if we need to emit an onEmptyLines() event.


sendEmptyLines

public static void sendEmptyLines(XhtmlHandler.TagStack stack)

initialize

public void initialize(XhtmlHandler.TagStack stack)

isBlockHandler

public boolean isBlockHandler(XhtmlHandler.TagStack.TagContext context)
Returns:
true if the current handler handles block tags (paragraphs, lists, tables, headers, etc)

beginDocument

protected void beginDocument(XhtmlHandler.TagStack.TagContext context)

beginDocument

protected void beginDocument(XhtmlHandler.TagStack.TagContext context,
                             WikiParameters params)

endDocument

protected void endDocument(XhtmlHandler.TagStack.TagContext context)