Main XML DTD parser. Parses DTD documents with parameter entity
references already substituted by corresponding replacement text.
Constructs DTD document object.
AttlistDecl
public final void AttlistDecl(DTDdocument document)
throws ParseException,
DTDException
Parsing procedure corresponding to the Attribute Declaration nonterminal.
document
- DTD document to add this Attribute Declaration to.
AttrValue
public final String AttrValue()
throws ParseException
Parsing procedure corresponding to the Attribute Value nonterminal.
- String containing parsed value.
Comment
public final void Comment()
throws ParseException
Parsing procedure corresponding to the Comment nonterminal.
ContPart
public final ContentParticle ContPart()
throws ParseException
Parsing procedure corresponding to the Content Particle nonterminal.
- corresponding Content Particle object.
ElementDecl
public final void ElementDecl(DTDdocument document)
throws ParseException,
DTDException
Parsing procedure corresponding to the Element Declaration nonterminal.
document
- DTD document to add this Element Declaration to.
GEValue
public final String GEValue()
throws ParseException
Parsing procedure corresponding to the General Entity Value nonterminal.
- String containing parsed value.
GEntityDecl
public final void GEntityDecl(DTDdocument document)
throws ParseException
Parsing procedure corresponding to the General Entity
Declaration nonterminal.
document
- DTD document to add this General Entity Declaration to.
Mixed
public final void Mixed(Element element)
throws ParseException,
DTDException
Parsing procedure corresponding to the Mixed Element Content
nonterminal.
element
- Element which content is being defined.
NotationDecl
public final void NotationDecl(DTDdocument document)
throws ParseException,
DTDException
Parsing procedure corresponding to the Notation Declaration nonterminal.
document
- DTD document to add this Notation Declaration to.
OccuranceSpecification
public final void OccuranceSpecification(ContentParticle cp)
throws ParseException
Method to parse occurance specification of a Content Particle,
that is "?", "*" or "+".
cp
- Content Particle being processed.
SeqOrChoiceContPart
public final ContentParticle SeqOrChoiceContPart()
throws ParseException
Parsing procedure corresponding to the Content Particle nonterminal
of the partial form: choice list of content particles, or sequence list
of content particles.
- corresponding Content Particle object.
disable_tracing
public final void disable_tracing()
enable_tracing
public final void enable_tracing()
generateParseException
public final ParseException generateParseException()
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)