DTDParserConstants
public class DTDParser extends java.lang.Object implements DTDParserConstants
Modifier and Type | Class | Description |
---|---|---|
(package private) static class |
DTDParser.JJCalls |
Modifier and Type | Field | Description |
---|---|---|
Token |
jj_nt |
|
boolean |
lookingAhead |
|
Token |
token |
|
DTDParserTokenManager |
token_source |
AND, ANY, ATTR_VALUE_CHAR_DQ, ATTR_VALUE_CHAR_SQ, BEGIN_ATTR_DECL, BEGIN_COMMENT, BEGIN_ELEMENT_DECL, BEGIN_GE_DECL, BEGIN_NOTATION_DECL, CDATA, COMBINING_CHAR, COMMENT_CHAR, DASH, DEFAULT, DIGIT, EMPTY, END_ATTR_DECL, END_COMMENT, END_DQ_ATTR, END_DQ_GE, END_ELEMENT_DECL, END_GE_DECL, END_NOTATION_DECL, END_SQ_ATTR, END_SQ_GE, ENTITIES, ENTITY, EOF, EXTENDER, FIXED, GE_VAlUE_CHAR_DQ, GE_VAlUE_CHAR_SQ, ID, IDREF, IDREFS, IMPLIED, LEFT_PAREN, LEFT_PAREN_ATTR, LETTER, NAME, NAME_ATTR, NAME_GE, NAME_NOT, NAMECHAR, NDATA, NMTOKEN, NMTOKEN_ATTR, NMTOKENS, NOTATION, OR, OR_ATTR, PCDATA, PLUS, PUBIDCHAR_GE, PUBIDCHAR_NOT, Public_GE, PUBLIC_GE, Public_NOT, PUBLIC_NOT, PUBLITER_GE, PUBLITER_NOT, QUESTION, REQUIRED, RIGHT_PAREN, RIGHT_PAREN_ATTR, S, S_ATTR, S_GE, S_GE_PUB, S_NOT, S_NOT_SYS, STAR, START_DQ_ATTR, START_DQ_GE, START_SQ_ATTR, START_SQ_GE, SYSLITER_GE, SYSLITER_NOT, System_GE, SYSTEM_GE, System_NOT, SYSTEM_NOT, tokenImage, WithinAttrDecl, WithinAttrValueDQ, WithinAttrValueSQ, WithinComment, WithinGEDecl, WithinGEValueDQ, WithinGEValueSQ, WithinNotationDecl
Constructor | Description |
---|---|
DTDParser(CharStream stream) |
|
DTDParser(DTDParserTokenManager tm) |
Modifier and Type | Method | Description |
---|---|---|
void |
AttlistDecl(DTDdocument document) |
Parsing procedure corresponding to the Attribute Declaration nonterminal.
|
java.lang.String |
AttrValue() |
Parsing procedure corresponding to the Attribute Value nonterminal.
|
void |
Comment() |
Parsing procedure corresponding to the Comment nonterminal.
|
ContentParticle |
ContPart() |
Parsing procedure corresponding to the Content Particle nonterminal.
|
void |
disable_tracing() |
|
void |
ElementDecl(DTDdocument document) |
Parsing procedure corresponding to the Element Declaration nonterminal.
|
void |
enable_tracing() |
|
ParseException |
generateParseException() |
|
void |
GEntityDecl(DTDdocument document) |
Parsing procedure corresponding to the General Entity
Declaration nonterminal.
|
Token |
getNextToken() |
|
Token |
getToken(int index) |
|
java.lang.String |
GEValue() |
Parsing procedure corresponding to the General Entity Value nonterminal.
|
DTDdocument |
Input() |
Main parsing method that starts parsing process.
|
void |
Mixed(Element element) |
Parsing procedure corresponding to the Mixed Element Content
nonterminal.
|
void |
NotationDecl(DTDdocument document) |
Parsing procedure corresponding to the Notation Declaration nonterminal.
|
void |
OccuranceSpecification(ContentParticle cp) |
Method to parse occurance specification of a Content Particle,
that is "?", "*" or "+".
|
void |
ReInit(CharStream stream) |
|
void |
ReInit(DTDParserTokenManager tm) |
|
ContentParticle |
SeqOrChoiceContPart() |
Parsing procedure corresponding to the Content Particle nonterminal
of the partial form: choice list of content particles, or sequence list
of content particles.
|
public DTDParserTokenManager token_source
public Token token
public Token jj_nt
public boolean lookingAhead
public DTDParser(CharStream stream)
public DTDParser(DTDParserTokenManager tm)
public final DTDdocument Input() throws ParseException, DTDException
ParseException
DTDException
public final void ElementDecl(DTDdocument document) throws ParseException, DTDException
document
- DTD document to add this Element Declaration to.ParseException
DTDException
public final void Mixed(Element element) throws ParseException, DTDException
element
- Element which content is being defined.ParseException
DTDException
public final ContentParticle ContPart() throws ParseException
ParseException
public final ContentParticle SeqOrChoiceContPart() throws ParseException
ParseException
public final void OccuranceSpecification(ContentParticle cp) throws ParseException
cp
- Content Particle being processed.ParseException
public final void AttlistDecl(DTDdocument document) throws ParseException, DTDException
document
- DTD document to add this Attribute Declaration to.ParseException
DTDException
public final java.lang.String AttrValue() throws ParseException
ParseException
public final void GEntityDecl(DTDdocument document) throws ParseException
document
- DTD document to add this General Entity Declaration to.ParseException
public final java.lang.String GEValue() throws ParseException
ParseException
public final void NotationDecl(DTDdocument document) throws ParseException, DTDException
document
- DTD document to add this Notation Declaration to.ParseException
DTDException
public final void Comment() throws ParseException
ParseException
public void ReInit(CharStream stream)
public void ReInit(DTDParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public final ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com