Class TagHandler
- java.lang.Object
-
- org.xwiki.rendering.wikimodel.xhtml.handler.TagHandler
-
- Direct Known Subclasses:
AbstractFormatTagHandler,BlockTagHandler,BreakTagHandler,HeaderTagHandler,HorizontalLineTagHandler,ListItemTagHandler,ListTagHandler,ParagraphTagHandler,PreserveTagHandler,QuoteTagHandler,ReferenceTagHandler,TableDataTagHandler,TableRowTagHandler,TableTagHandler
public class TagHandler extends Object
- Since:
- 4.0M1
- Version:
- $Id: 1b4111d79ad58cbbe2efa5a1bc569bf92bc268fe $
-
-
Constructor Summary
Constructors Constructor Description TagHandler(boolean contentContainer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbegin(TagContext context)protected voidbeginDocument(TagContext context)protected voidbeginDocument(TagContext context, WikiParameters params)voidbeginElement(TagContext context)protected voidend(TagContext context)protected voidendDocument(TagContext context)voidendElement(TagContext context)voidinitialize(TagStack stack)booleanisAccumulateContent()booleanisBlockHandler(TagContext context)booleanisContentContainer()static voidsendEmptyLines(TagContext context)Check if we need to emit an onEmptyLines() event.static voidsendEmptyLines(TagStack stack)voidsetAccumulateContent(boolean accumulateContent)
-
-
-
Method Detail
-
begin
protected void begin(TagContext context)
-
beginElement
public void beginElement(TagContext context)
-
end
protected void end(TagContext context)
-
endElement
public final void endElement(TagContext context)
-
isContentContainer
public boolean isContentContainer()
-
setAccumulateContent
public void setAccumulateContent(boolean accumulateContent)
-
isAccumulateContent
public boolean isAccumulateContent()
-
sendEmptyLines
public static void sendEmptyLines(TagContext context)
Check if we need to emit an onEmptyLines() event.
-
sendEmptyLines
public static void sendEmptyLines(TagStack stack)
-
initialize
public void initialize(TagStack stack)
-
isBlockHandler
public boolean isBlockHandler(TagContext context)
- Returns:
- true if the current handler handles block tags (paragraphs, lists, tables, headers, etc)
-
beginDocument
protected void beginDocument(TagContext context)
-
beginDocument
protected void beginDocument(TagContext context, WikiParameters params)
-
endDocument
protected void endDocument(TagContext context)
-
-