org.millscript.commons.xml.tokenizer
Class DTDTokenVisitor

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

public class DTDTokenVisitor
extends java.lang.Object
implements TokenVisitor

This token visitor handles each part of the DTD, building our representation of the DTD content model as we go.


Constructor Summary
DTDTokenVisitor()
           
 
Method Summary
 void visit(AttListDeclToken token)
          Visit the specified attribute declaration token.
 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(ElementDeclToken token)
          Visit the specified element declaration token.
 void visit(EmptyElementToken token)
          Visit the specified empty element token.
 void visit(EndTagToken token)
          Visit the specified end tag token.
 void visit(EntityDeclToken token)
          Visit the specified entity declaration token.
 void visit(NotationDeclToken token)
          Visit the specified notation declaration 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DTDTokenVisitor

public DTDTokenVisitor()
Method Detail

visit

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

Specified by:
visit in interface TokenVisitor
Parameters:
token - the attribute declaration token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.AttListDeclToken)

visit

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

Specified by:
visit in interface TokenVisitor
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.

Specified by:
visit in interface TokenVisitor
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.

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

visit

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

Specified by:
visit in interface TokenVisitor
Parameters:
token - the element declaration token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.ElementDeclToken)

visit

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

Specified by:
visit in interface TokenVisitor
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.

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

visit

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

Specified by:
visit in interface TokenVisitor
Parameters:
token - the entity declaration token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.EntityDeclToken)

visit

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

Specified by:
visit in interface TokenVisitor
Parameters:
token - the notation declaration token to visit
See Also:
TokenVisitor.visit(org.millscript.commons.xml.api.token.NotationDeclToken)

visit

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

Specified by:
visit in interface TokenVisitor
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.

Specified by:
visit in interface TokenVisitor
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
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.