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

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

public class XmlDeclTokenVisitor
extends AbsTokenVisitor

This class provides a token visitor the for XML declaration part of an XML document. This is the first token visitor in a chain that provides the well formedness checks required of an XML processor.


Constructor Summary
XmlDeclTokenVisitor(WellFormedXmlTokenizer xt)
          Constructs a new XML declaration token visitor, with the specified token visitor.
 
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.
 void visit(XmlDeclToken token)
          Visit the specified xml declaration token.
 
Methods inherited from class org.millscript.commons.xml.tokenizer.wellformed.AbsTokenVisitor
visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlDeclTokenVisitor

public XmlDeclTokenVisitor(WellFormedXmlTokenizer xt)
Constructs a new XML declaration token visitor, with the specified token visitor.

Parameters:
xt - the well-formed XML tokenizer our tokens come from
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)

visit

public void visit(XmlDeclToken token)
Description copied from interface: TokenVisitor
Visit the specified xml declaration token.

Specified by:
visit in interface TokenVisitor
Overrides:
visit in class AbsTokenVisitor
Parameters:
token - the xml declaration token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.XmlDeclToken)


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