org.wikimodel.wem.xhtml.handler
Class TagHandler

java.lang.Object
  extended by org.wikimodel.wem.xhtml.handler.TagHandler
Direct Known Subclasses:
BoldTagHandler, BreakTagHandler, DivisionTagHandler, HeaderTagHandler, HorizontalLineTagHandler, ItalicTagHandler, ListItemTagHandler, ListTagHandler, ParagraphTagHandler, PreserveTagHandler, QuoteTagHandler, ReferenceTagHandler, SpanTagHandler, StrikedOutTagHandler, SubScriptTagHandler, SuperScriptTagHandler, TableDataTagHandler, TableRowTagHandler, TableTagHandler, TeletypeTagHandler, UnderlineTagHandler

public class TagHandler
extends Object

Author:
kotelnikov, vmassol

Constructor Summary
TagHandler(boolean documentContainer, boolean requiresDocument, boolean contentContainer)
           
 
Method Summary
protected  void begin(XhtmlHandler.TagStack.TagContext context)
           
 void beginElement(XhtmlHandler.TagStack.TagContext context)
           
protected  void end(XhtmlHandler.TagStack.TagContext context)
           
 void endElement(XhtmlHandler.TagStack.TagContext context)
           
 void initialize(XhtmlHandler.TagStack stack)
           
 boolean isAccumulateContent()
           
 boolean isContentContainer()
           
 boolean isDocumentContainer()
           
 boolean requiresDocument()
           
static void sendEmptyLines(XhtmlHandler.TagStack.TagContext context)
          Check if we need to emit an onEmptyLines() event.
 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.


initialize

public void initialize(XhtmlHandler.TagStack stack)


Copyright © 2005-2009. All Rights Reserved.