org.xwiki.rendering.wikimodel.xhtml.handler
Class TagHandler
java.lang.Object
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)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TagHandler
public TagHandler(boolean documentContainer,
boolean requiresDocument,
boolean contentContainer)
- Parameters:
documentContainer
- requiresDocument
- contentContainer
-
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)