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 void
begin(TagContext context)
protected void
beginDocument(TagContext context)
protected void
beginDocument(TagContext context, WikiParameters params)
void
beginElement(TagContext context)
protected void
end(TagContext context)
protected void
endDocument(TagContext context)
void
endElement(TagContext context)
void
initialize(TagStack stack)
boolean
isAccumulateContent()
boolean
isBlockHandler(TagContext context)
boolean
isContentContainer()
static void
sendEmptyLines(TagContext context)
Check if we need to emit an onEmptyLines() event.static void
sendEmptyLines(TagStack stack)
void
setAccumulateContent(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)
-
-