org.jbind.xml.parser
Class Parser

java.lang.Object
  extended byorg.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.


Field Summary
 Token jj_nt
           
 Token token
           
 ParserTokenManager token_source
           
 
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
 
Constructor Summary
Parser(java.io.InputStream stream)
           
Parser(ParserTokenManager tm)
           
Parser(java.io.Reader stream)
           
 
Method Summary
 AttributeData attribute()
           
 java.lang.String charRefD()
           
 java.lang.String charRefH()
           
 boolean content()
           
 void disable_tracing()
           
 void docTypeDecl()
           
 void document()
           
 boolean element(boolean aContainsFallback)
           
 void enable_tracing()
           
 java.lang.String entityRef()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 void initParser(ParserContext aParserContext)
          Resets the internal parse state.
 void misc()
           
 XmlDecl optionalXmlDecl()
           
 void prolog()
           
 QualifiedName qName()
           
 java.lang.String reference()
           
 void ReInit(java.io.InputStream stream)
           
 void ReInit(ParserTokenManager tm)
           
 void ReInit(java.io.Reader stream)
           
 XmlDecl xmlDecl()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt
Constructor Detail

Parser

public Parser(java.io.InputStream stream)

Parser

public Parser(java.io.Reader stream)

Parser

public Parser(ParserTokenManager tm)
Method Detail

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()