org.jbind.xml.parser
Class Parser
java.lang.Object
org.jbind.xml.parser.Parser
- All Implemented Interfaces:
- ParserConstants
- public class Parser
- extends java.lang.Object
- implements ParserConstants
Non validating namespace aware XML parser that supports XIncludes. DOCTYPE
declarations are ignored.
Fields inherited from interface org.jbind.xml.parser.ParserConstants |
APOS, ATT_APOS, ATT_CHARS_A, ATT_CHARS_Q, ATT_QUOT, ATTLIST_DECL, AttStateA, AttStateQ, BaseChar, CDATA, CDATA_END, CDATA_START, CDataState, CHAR_DATA, CHAR_REF_D, CHAR_REF_H, COLON, CombiningChar, COMMENT, ContentState, decl_CDATA, decl_EQ, DEFAULT, Digit, DOC_TYPE_END, DOC_TYPE_START, DocTypeDeclStartState, DocTypeNameState, DocTypeState, ELEMENT_DECL, encoding, ENTITY_DECL, ENTITY_REF, EOF, EQ, Extender, ExternalId, GT, Ideographic, Letter, LT, LT_SLASH, MARKUP_DECL_END, MARKUP_DECL_START, MarkupDeclState, Name, NameChar, NCName, NCNameChar, PI, PiState, QUOT, S, SLASH_GT, standalone, String, TagState, tokenImage, version, XML_DECL_END, XML_DECL_START, XmlDeclState |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public ParserTokenManager token_source
token
public Token token
jj_nt
public Token jj_nt
Parser
public Parser(java.io.InputStream stream)
Parser
public Parser(java.io.Reader stream)
Parser
public Parser(ParserTokenManager tm)
initParser
public void initParser(ParserContext aParserContext)
throws java.lang.Exception
- Resets the internal parse state. Must be called before each usage of the parser.
- Parameters:
aParserContext
- (required).
- Throws:
java.lang.Exception
attribute
public final AttributeData attribute()
throws ParseException,
ParsingAbortedException
- Throws:
ParseException
ParsingAbortedException
charRefD
public final java.lang.String charRefD()
throws ParseException
- Throws:
ParseException
charRefH
public final java.lang.String charRefH()
throws ParseException
- Throws:
ParseException
content
public final boolean content()
throws ParseException,
java.lang.Exception
- Throws:
ParseException
java.lang.Exception
docTypeDecl
public final void docTypeDecl()
throws ParseException,
java.lang.Exception
- Throws:
ParseException
java.lang.Exception
document
public final void document()
throws ParseException,
java.lang.Exception
- Throws:
ParseException
java.lang.Exception
element
public final boolean element(boolean aContainsFallback)
throws ParseException,
java.lang.Exception
- Throws:
ParseException
java.lang.Exception
entityRef
public final java.lang.String entityRef()
throws ParseException,
ParsingAbortedException
- Throws:
ParseException
ParsingAbortedException
misc
public final void misc()
throws ParseException
- Throws:
ParseException
optionalXmlDecl
public final XmlDecl optionalXmlDecl()
throws ParseException,
ParsingAbortedException
- Throws:
ParseException
ParsingAbortedException
prolog
public final void prolog()
throws ParseException,
java.lang.Exception
- Throws:
ParseException
java.lang.Exception
qName
public final QualifiedName qName()
throws ParseException
- Throws:
ParseException
reference
public final java.lang.String reference()
throws ParseException,
ParsingAbortedException
- Throws:
ParseException
ParsingAbortedException
xmlDecl
public final XmlDecl xmlDecl()
throws ParseException,
ParsingAbortedException
- Throws:
ParseException
ParsingAbortedException
ReInit
public void ReInit(java.io.InputStream stream)
ReInit
public void ReInit(java.io.Reader stream)
ReInit
public void ReInit(ParserTokenManager tm)
getNextToken
public final Token getNextToken()
getToken
public final Token getToken(int index)
generateParseException
public final ParseException generateParseException()
enable_tracing
public final void enable_tracing()
disable_tracing
public final void disable_tracing()