org.millscript.commons.xml.tokenizer.wellformed
Class ContentTokenVisitor

java.lang.Object
  extended by org.millscript.commons.xml.tokenizer.wellformed.AbsTokenVisitor
      extended by org.millscript.commons.xml.tokenizer.wellformed.ContentTokenVisitor
All Implemented Interfaces:
TokenVisitor

public class ContentTokenVisitor
extends AbsTokenVisitor

This class provides a token visitor the for content part of an XML document. This is the a sub token visitor of the element token visitor, in the chain that provides the well formedness checks required of an XML processor.


Constructor Summary
ContentTokenVisitor(WellFormedXmlTokenizer xt, TokenVisitor p, StartTagToken stToken)
          Constructs a new content section token visitor, with the specified tokenizer, next-in-the-chain token visitor and start tag.
 
Method Summary
 void visit(CharDataToken token)
          Visit the specified character data token.
 void visit(CommentToken token)
          Visit the specified comment token.
 void visit(DTDToken token)
          Visit the specified dtd token.
 void visit(EmptyElementToken token)
          Visit the specified empty element token.
 void visit(EndTagToken token)
          Visit the specified end tag token.
 void visit(PIToken token)
          Visit the specified processing instruction token.
 void visit(StartTagToken token)
          Visit the specified start tag token.
 
Methods inherited from class org.millscript.commons.xml.tokenizer.wellformed.AbsTokenVisitor
visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentTokenVisitor

public ContentTokenVisitor(WellFormedXmlTokenizer xt,
                           TokenVisitor p,
                           StartTagToken stToken)
Constructs a new content section token visitor, with the specified tokenizer, next-in-the-chain token visitor and start tag.

Parameters:
xt - the well-formed XML tokenizer our tokens come from
p - the next token visitor in the well-formedness chain
stToken - the start tag token for the tag that began this content section
Method Detail

visit

public void visit(CharDataToken token)
Description copied from interface: TokenVisitor
Visit the specified character data token.

Parameters:
token - the character data token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.CharDataToken)

visit

public void visit(CommentToken token)
Description copied from interface: TokenVisitor
Visit the specified comment token.

Parameters:
token - the comment token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.CommentToken)

visit

public void visit(DTDToken token)
Description copied from interface: TokenVisitor
Visit the specified dtd token.

Parameters:
token - the dtd token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.DTDToken)

visit

public void visit(EmptyElementToken token)
Description copied from interface: TokenVisitor
Visit the specified empty element token.

Parameters:
token - the empty element token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.EmptyElementToken)

visit

public void visit(EndTagToken token)
Description copied from interface: TokenVisitor
Visit the specified end tag token.

Parameters:
token - the end tag token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.EndTagToken)

visit

public void visit(PIToken token)
Description copied from interface: TokenVisitor
Visit the specified processing instruction token.

Parameters:
token - the processing instruction token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.PIToken)

visit

public void visit(StartTagToken token)
Description copied from interface: TokenVisitor
Visit the specified start tag token.

Parameters:
token - the start tag token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.StartTagToken)


Copyright © 2005-2007 Open World Ltd. All Rights Reserved.