Logo Search packages:      
Sourcecode: jing-trang version File versions  Download package

com::thaiopensource::xml::dtd::parse::PrologParser Class Reference

List of all members.


Detailed Description

Parses the prolog of an XML document. A PrologParser object represents the state of a parse of the prolog. It operates on the tokens returned by Tokenizer.tokenizeProlog. It does not build any data structures to represent the information in the prolog; instead it tells the caller the action needed for each token. The state of the parse can be saved by using the clone method.

Definition at line 17 of file PrologParser.java.


Public Member Functions

int action (int tok, String token) throws PrologSyntaxException
Object clone ()
final void end () throws PrologSyntaxException
boolean expectingAttributeName ()
final int getGroupLevel ()
boolean isCompatible (PrologParser orig)
 PrologParser (byte type)

Static Public Attributes

static final int ACTION_ATTLIST_ELEMENT_NAME = ACTION_ATTRIBUTE_NOTATION_VALUE + 1
static final int ACTION_ATTRIBUTE_ENUM_VALUE = ACTION_ATTRIBUTE_TYPE_NOTATION + 1
static final int ACTION_ATTRIBUTE_NAME = ACTION_NOTATION_PUBLIC_ID + 1
static final int ACTION_ATTRIBUTE_NOTATION_VALUE = ACTION_ATTRIBUTE_ENUM_VALUE + 1
static final int ACTION_ATTRIBUTE_TYPE_CDATA = ACTION_ATTRIBUTE_NAME + 1
static final int ACTION_ATTRIBUTE_TYPE_ENTITIES = ACTION_ATTRIBUTE_TYPE_ENTITY + 1
static final int ACTION_ATTRIBUTE_TYPE_ENTITY = ACTION_ATTRIBUTE_TYPE_IDREFS + 1
static final int ACTION_ATTRIBUTE_TYPE_ID = ACTION_ATTRIBUTE_TYPE_CDATA + 1
static final int ACTION_ATTRIBUTE_TYPE_IDREF = ACTION_ATTRIBUTE_TYPE_ID + 1
static final int ACTION_ATTRIBUTE_TYPE_IDREFS = ACTION_ATTRIBUTE_TYPE_IDREF + 1
static final int ACTION_ATTRIBUTE_TYPE_NMTOKEN = ACTION_ATTRIBUTE_TYPE_ENTITIES + 1
static final int ACTION_ATTRIBUTE_TYPE_NMTOKENS = ACTION_ATTRIBUTE_TYPE_NMTOKEN + 1
static final int ACTION_ATTRIBUTE_TYPE_NOTATION = ACTION_ATTRIBUTE_TYPE_NMTOKENS + 1
static final int ACTION_COMMENT = ACTION_PI + 1
static final int ACTION_CONTENT_ANY = ACTION_ELEMENT_NAME + 1
static final int ACTION_CONTENT_ELEMENT = ACTION_GROUP_SEQUENCE + 1
static final int ACTION_CONTENT_ELEMENT_OPT = ACTION_CONTENT_ELEMENT_REP + 1
static final int ACTION_CONTENT_ELEMENT_PLUS = ACTION_CONTENT_ELEMENT_OPT + 1
static final int ACTION_CONTENT_ELEMENT_REP = ACTION_CONTENT_ELEMENT + 1
static final int ACTION_CONTENT_EMPTY = ACTION_CONTENT_ANY + 1
static final int ACTION_CONTENT_PCDATA = ACTION_CONTENT_EMPTY + 1
static final int ACTION_DECL_CLOSE = ACTION_IGNORE_SECT + 1
static final int ACTION_DEFAULT_ATTRIBUTE_VALUE = ACTION_REQUIRED_ATTRIBUTE_VALUE + 1
static final int ACTION_DOCTYPE_CLOSE = ACTION_DOCTYPE_SUBSET + 1
static final int ACTION_DOCTYPE_NAME = ACTION_COMMENT + 1
static final int ACTION_DOCTYPE_PUBLIC_ID = ACTION_DOCTYPE_SYSTEM_ID + 1
static final int ACTION_DOCTYPE_SUBSET = ACTION_DOCTYPE_PUBLIC_ID + 1
static final int ACTION_DOCTYPE_SYSTEM_ID = ACTION_DOCTYPE_NAME + 1
static final int ACTION_ELEMENT_NAME = ACTION_FIXED_ATTRIBUTE_VALUE + 1
static final int ACTION_ENTITY_NOTATION_NAME = ACTION_ENTITY_PUBLIC_ID + 1
static final int ACTION_ENTITY_PUBLIC_ID = ACTION_ENTITY_SYSTEM_ID + 1
static final int ACTION_ENTITY_SYSTEM_ID = ACTION_ENTITY_VALUE_NO_PEREFS + 1
static final int ACTION_ENTITY_VALUE_NO_PEREFS = ACTION_ENTITY_VALUE_WITH_PEREFS + 1
static final int ACTION_ENTITY_VALUE_WITH_PEREFS = ACTION_PARAM_ENTITY_NAME + 1
static final int ACTION_ENUM_GROUP_OPEN = ACTION_DECL_CLOSE + 1
static final int ACTION_FIXED_ATTRIBUTE_VALUE = ACTION_DEFAULT_ATTRIBUTE_VALUE + 1
static final int ACTION_GENERAL_ENTITY_NAME = ACTION_DOCTYPE_CLOSE + 1
static final int ACTION_GROUP_CHOICE = ACTION_GROUP_CLOSE_PLUS + 1
static final int ACTION_GROUP_CLOSE = ACTION_GROUP_OPEN + 1
static final int ACTION_GROUP_CLOSE_OPT = ACTION_GROUP_CLOSE_REP + 1
static final int ACTION_GROUP_CLOSE_PLUS = ACTION_GROUP_CLOSE_OPT + 1
static final int ACTION_GROUP_CLOSE_REP = ACTION_GROUP_CLOSE + 1
static final int ACTION_GROUP_OPEN = ACTION_CONTENT_PCDATA + 1
static final int ACTION_GROUP_SEQUENCE = ACTION_GROUP_CHOICE + 1
static final int ACTION_IGNORE_SECT = ACTION_INNER_PARAM_ENTITY_REF + 1
static final int ACTION_IMPLIED_ATTRIBUTE_VALUE = ACTION_ATTLIST_ELEMENT_NAME + 1
static final int ACTION_INNER_PARAM_ENTITY_REF = ACTION_OUTER_PARAM_ENTITY_REF + 1
static final int ACTION_NONE = 0
static final int ACTION_NOTATION_GROUP_OPEN = ACTION_ENUM_GROUP_OPEN + 1
static final int ACTION_NOTATION_NAME = ACTION_ENTITY_NOTATION_NAME + 1
static final int ACTION_NOTATION_PUBLIC_ID = ACTION_NOTATION_SYSTEM_ID + 1
static final int ACTION_NOTATION_SYSTEM_ID = ACTION_NOTATION_NAME + 1
static final int ACTION_OUTER_PARAM_ENTITY_REF = ACTION_CONTENT_ELEMENT_PLUS + 1
static final int ACTION_PARAM_ENTITY_NAME = ACTION_GENERAL_ENTITY_NAME + 1
static final int ACTION_PI = ACTION_TEXT_DECL + 1
static final int ACTION_REQUIRED_ATTRIBUTE_VALUE = ACTION_IMPLIED_ATTRIBUTE_VALUE + 1
static final int ACTION_SECTION_STATUS_IGNORE = ACTION_NOTATION_GROUP_OPEN + 1
static final int ACTION_SECTION_STATUS_INCLUDE = ACTION_SECTION_STATUS_IGNORE + 1
static final int ACTION_TEXT_DECL = ACTION_XML_DECL + 1
static final int ACTION_XML_DECL = ACTION_NONE + 1
static final byte EXTERNAL_ENTITY = 1
static final byte INTERNAL_ENTITY = 2
static final byte PROLOG = 0

Static Private Member Functions

static boolean matches (String token, int off, String key)

Private Attributes

byte connector [] = new byte[2]
boolean documentEntity
int groupLevel
int includeLevel
byte state

Static Private Attributes

static final byte attlist0 = notation4 + 1
static final byte attlist1 = attlist0 + 1
static final byte attlist2 = attlist1 + 1
static final byte attlist3 = attlist2 + 1
static final byte attlist4 = attlist3 + 1
static final byte attlist5 = attlist4 + 1
static final byte attlist6 = attlist5 + 1
static final byte attlist7 = attlist6 + 1
static final byte attlist8 = attlist7 + 1
static final byte attlist9 = attlist8 + 1
static final String[] attributeTypes
static final byte condSect0 = externalSubset1 + 1
static final byte condSect1 = condSect0 + 1
static final byte condSect2 = condSect1 + 1
static final byte declClose = element7 + 1
static final byte doctype0 = prolog2 + 1
static final byte doctype1 = doctype0 + 1
static final byte doctype2 = doctype1 + 1
static final byte doctype3 = doctype2 + 1
static final byte doctype4 = doctype3 + 1
static final byte doctype5 = doctype4 + 1
static final byte element0 = attlist9 + 1
static final byte element1 = element0 + 1
static final byte element2 = element1 + 1
static final byte element3 = element2 + 1
static final byte element4 = element3 + 1
static final byte element5 = element4 + 1
static final byte element6 = element5 + 1
static final byte element7 = element6 + 1
static final byte entity0 = internalSubset + 1
static final byte entity1 = entity0 + 1
static final byte entity2 = entity1 + 1
static final byte entity3 = entity2 + 1
static final byte entity4 = entity3 + 1
static final byte entity5 = entity4 + 1
static final byte entity6 = entity5 + 1
static final byte entity7 = entity6 + 1
static final byte entity8 = entity7 + 1
static final byte entity9 = entity8 + 1
static final byte externalSubset0 = declClose + 1
static final byte externalSubset1 = externalSubset0 + 1
static final byte internalSubset = doctype5 + 1
static final byte notation0 = entity9 + 1
static final byte notation1 = notation0 + 1
static final byte notation2 = notation1 + 1
static final byte notation3 = notation2 + 1
static final byte notation4 = notation3 + 1
static final byte prolog0 = 0
static final byte prolog1 = prolog0 + 1
static final byte prolog2 = prolog1 + 1

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index