Java Doc for AbstractDOMParser.java in  » XML » xerces-2_9_1 » org » apache » xerces » parsers » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xerces 2_9_1 » org.apache.xerces.parsers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.parsers.XMLParser
      org.apache.xerces.parsers.AbstractXMLDocumentParser
         org.apache.xerces.parsers.AbstractDOMParser

All known Subclasses:   org.apache.xerces.parsers.DOMParser,  org.apache.xerces.parsers.DOMParserImpl,
AbstractDOMParser
public class AbstractDOMParser extends AbstractXMLDocumentParser (Code)
This is the base class of all DOM parsers. It implements the XNI callback methods to create the DOM tree. After a successful parse of an XML document, the DOM Document object can be queried using the getDocument method. The actual pipeline is defined in parser configuration.
author:
   Arnaud Le Hors, IBM
author:
   Andy Clark, IBM
author:
   Elena Litani, IBM
version:
   $Id: AbstractDOMParser.java 568412 2007-08-22 04:40:44Z mrglavas $


Field Summary
final protected static  RuntimeExceptionABORT
     If the user stops the process, this exception will be thrown.
final protected static  StringCORE_DOCUMENT_CLASS_NAME
    
final protected static  StringCREATE_CDATA_NODES_FEATURE
     Feature id: create cdata nodes.
final protected static  StringCREATE_ENTITY_REF_NODES
     Feature id: create entity ref nodes.
final protected static  StringCURRENT_ELEMENT_NODE
    
final protected static  StringDEFAULT_DOCUMENT_CLASS_NAME
     Default document class name.
final protected static  StringDEFER_NODE_EXPANSION
     Feature id: defer node expansion.
final protected static  StringDOCUMENT_CLASS_NAME
     Property id: document class name.
final protected static  StringINCLUDE_COMMENTS_FEATURE
     Feature id: include comments.
final protected static  StringINCLUDE_IGNORABLE_WHITESPACE
     Feature id: include ignorable whitespace.
final protected static  StringNAMESPACES
     Feature id: namespace.
final protected static  StringPSVI_DOCUMENT_CLASS_NAME
    
protected  StackfBaseURIStack
    
protected  booleanfCreateCDATANodes
     Create cdata nodes.
protected  booleanfCreateEntityRefNodes
     Create entity reference nodes.
protected  CDATASectionfCurrentCDATASection
    
protected  intfCurrentCDATASectionIndex
    
protected  EntityImplfCurrentEntityDecl
    
protected  NodefCurrentNode
     Current node.
protected  intfCurrentNodeIndex
    
protected  LSParserFilterfDOMFilter
    
protected  booleanfDeferNodeExpansion
    
protected  DeferredDocumentImplfDeferredDocumentImpl
    
protected  intfDeferredEntityDecl
    
protected  DocumentfDocument
     The document.
protected  StringfDocumentClassName
     The document class name to use.
protected  CoreDocumentImplfDocumentImpl
     The default Xerces document implementation, if used.
protected  intfDocumentIndex
    
protected  DocumentTypefDocumentType
     The document type node.
protected  intfDocumentTypeIndex
    
protected  DOMErrorHandlerWrapperfErrorHandler
    
protected  booleanfFilterReject
    
protected  booleanfFirstChunk
    
protected  booleanfInCDATASection
     True if inside CDATA section.
protected  booleanfInDTD
     True if inside DTD.
protected  booleanfInDTDExternalSubset
     True if inside DTD external subset.
protected  booleanfInEntityRef
    
protected  booleanfIncludeComments
     Include Comments.
protected  booleanfIncludeIgnorableWhitespace
     Include ignorable whitespace.
protected  StringBufferfInternalSubset
     Internal subset buffer.
protected  booleanfNamespaceAware
    
final protected  QNamefRejectedElement
    
protected  QNamefRoot
    
protected  StackfSkippedElemStack
    
protected  booleanfStorePSVI
     Whether to store PSVI information in DOM tree.
final protected  StringBufferfStringBuffer
    

Constructor Summary
protected  AbstractDOMParser(XMLParserConfiguration config)
     Default constructor.

Method Summary
public  voidabort()
    
public  voidattributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs)
     An attribute declaration.
Parameters:
  elementName - The name of the element that this attributeis associated with.
Parameters:
  attributeName - The name of the attribute.
Parameters:
  type - The attribute type.
public  voidcharacters(XMLString text, Augmentations augs)
     Character content.
public  voidcomment(XMLString text, Augmentations augs)
     A comment.
protected  AttrcreateAttrNode(QName attrQName)
    
protected  ElementcreateElementNode(QName element)
    
public  voiddoctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs)
     Notifies of the presence of the DOCTYPE line in the document.
final public  voiddropDocumentReferences()
     Drops all references to the last DOM which was built by this parser.
public  voidelementDecl(String name, String contentModel, Augmentations augs)
     An element declaration.
public  voidemptyElement(QName element, XMLAttributes attributes, Augmentations augs)
     An empty element.
public  voidendAttlist(Augmentations augs)
     The end of an attribute list.
public  voidendCDATA(Augmentations augs)
     The end of a CDATA section.
public  voidendConditional(Augmentations augs)
     The end of a conditional section.
public  voidendDTD(Augmentations augs)
     The end of the DTD.
public  voidendDocument(Augmentations augs)
     The end of the document.
public  voidendElement(QName element, Augmentations augs)
     The end of an element.
public  voidendExternalSubset(Augmentations augs)
     The end of the DTD external subset.
public  voidendGeneralEntity(String name, Augmentations augs)
     This method notifies the end of a general entity.
public  voidendParameterEntity(String name, Augmentations augs)
     This method notifies the end of a parameter entity.
public  voidexternalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs)
     An external entity declaration.
Parameters:
  name - The name of the entity.
public  DocumentgetDocument()
     Returns the DOM document object.
protected  StringgetDocumentClassName()
     This method retreives the name of current document class.
final protected  voidhandleBaseURI(Node node)
     Record baseURI information for the Element (by adding xml:base attribute) or for the ProcessingInstruction (by setting a baseURI field) Non deferred DOM.
final protected  voidhandleBaseURI(int node)
     Record baseURI information for the Element (by adding xml:base attribute) or for the ProcessingInstruction (by setting a baseURI field) Deferred DOM.
public  voidignorableWhitespace(XMLString text, Augmentations augs)
     Ignorable whitespace.
public  voidignoredCharacters(XMLString text, Augmentations augs)
     Characters within an IGNORE conditional section.
public  voidinternalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs)
     An internal entity declaration.
Parameters:
  name - The name of the entity.
public  voidnotationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs)
    
public  voidprocessingInstruction(String target, XMLString data, Augmentations augs)
     A processing instruction.
public  voidreset()
     Resets the parser state.
protected  voidsetCharacterData(boolean sawChars)
    
protected  voidsetDocumentClassName(String documentClassName)
     This method allows the programmer to decide which document factory to use when constructing the DOM tree.
public  voidsetLocale(Locale locale)
     Set the locale to use for messages.
public  voidstartAttlist(String elementName, Augmentations augs)
     The start of an attribute list.
public  voidstartCDATA(Augmentations augs)
     The start of a CDATA section.
public  voidstartConditional(short type, Augmentations augs)
     The start of a conditional section.
Parameters:
  type - The type of the conditional section.
public  voidstartDTD(XMLLocator locator, Augmentations augs)
     The start of the DTD.
Parameters:
  locator - The document locator, or null if the documentlocation cannot be reported during the parsing ofthe document DTD.
public  voidstartDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs)
     The start of the document.
Parameters:
  locator - The system identifier of the entity if the entityis external, null otherwise.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream.
public  voidstartElement(QName element, XMLAttributes attributes, Augmentations augs)
     The start of an element.
public  voidstartExternalSubset(XMLResourceIdentifier identifier, Augmentations augs)
     The start of the DTD external subset.
public  voidstartGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)
     This method notifies the start of a general entity.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  name - The name of the general entity.
Parameters:
  identifier - The resource identifier.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream.

public  voidstartParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs)
     This method notifies of the start of a parameter entity.
public  voidtextDecl(String version, String encoding, Augmentations augs)
     Notifies of the presence of a TextDecl line in an entity.
public  voidunparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs)
     An unparsed entity declaration.
public  voidxmlDecl(String version, String encoding, String standalone, Augmentations augs)
     Notifies of the presence of an XMLDecl line in the document.

Field Detail
ABORT
final protected static RuntimeException ABORT(Code)
If the user stops the process, this exception will be thrown.



CORE_DOCUMENT_CLASS_NAME
final protected static String CORE_DOCUMENT_CLASS_NAME(Code)



CREATE_CDATA_NODES_FEATURE
final protected static String CREATE_CDATA_NODES_FEATURE(Code)
Feature id: create cdata nodes.



CREATE_ENTITY_REF_NODES
final protected static String CREATE_ENTITY_REF_NODES(Code)
Feature id: create entity ref nodes.



CURRENT_ELEMENT_NODE
final protected static String CURRENT_ELEMENT_NODE(Code)



DEFAULT_DOCUMENT_CLASS_NAME
final protected static String DEFAULT_DOCUMENT_CLASS_NAME(Code)
Default document class name.



DEFER_NODE_EXPANSION
final protected static String DEFER_NODE_EXPANSION(Code)
Feature id: defer node expansion.



DOCUMENT_CLASS_NAME
final protected static String DOCUMENT_CLASS_NAME(Code)
Property id: document class name.



INCLUDE_COMMENTS_FEATURE
final protected static String INCLUDE_COMMENTS_FEATURE(Code)
Feature id: include comments.



INCLUDE_IGNORABLE_WHITESPACE
final protected static String INCLUDE_IGNORABLE_WHITESPACE(Code)
Feature id: include ignorable whitespace.



NAMESPACES
final protected static String NAMESPACES(Code)
Feature id: namespace.



PSVI_DOCUMENT_CLASS_NAME
final protected static String PSVI_DOCUMENT_CLASS_NAME(Code)



fBaseURIStack
protected Stack fBaseURIStack(Code)
Base uri stack



fCreateCDATANodes
protected boolean fCreateCDATANodes(Code)
Create cdata nodes.



fCreateEntityRefNodes
protected boolean fCreateEntityRefNodes(Code)
Create entity reference nodes.



fCurrentCDATASection
protected CDATASection fCurrentCDATASection(Code)



fCurrentCDATASectionIndex
protected int fCurrentCDATASectionIndex(Code)



fCurrentEntityDecl
protected EntityImpl fCurrentEntityDecl(Code)



fCurrentNode
protected Node fCurrentNode(Code)
Current node.



fCurrentNodeIndex
protected int fCurrentNodeIndex(Code)



fDOMFilter
protected LSParserFilter fDOMFilter(Code)



fDeferNodeExpansion
protected boolean fDeferNodeExpansion(Code)



fDeferredDocumentImpl
protected DeferredDocumentImpl fDeferredDocumentImpl(Code)



fDeferredEntityDecl
protected int fDeferredEntityDecl(Code)



fDocument
protected Document fDocument(Code)
The document.



fDocumentClassName
protected String fDocumentClassName(Code)
The document class name to use.



fDocumentImpl
protected CoreDocumentImpl fDocumentImpl(Code)
The default Xerces document implementation, if used.



fDocumentIndex
protected int fDocumentIndex(Code)



fDocumentType
protected DocumentType fDocumentType(Code)
The document type node.



fDocumentTypeIndex
protected int fDocumentTypeIndex(Code)



fErrorHandler
protected DOMErrorHandlerWrapper fErrorHandler(Code)
DOM L3 error handler



fFilterReject
protected boolean fFilterReject(Code)
LSParserFilter: specifies that element with given QNAME and all its children must be rejected



fFirstChunk
protected boolean fFirstChunk(Code)
True if saw the first chunk of characters



fInCDATASection
protected boolean fInCDATASection(Code)
True if inside CDATA section.



fInDTD
protected boolean fInDTD(Code)
True if inside DTD.



fInDTDExternalSubset
protected boolean fInDTDExternalSubset(Code)
True if inside DTD external subset.



fInEntityRef
protected boolean fInEntityRef(Code)
LSParserFilter: true if inside entity reference



fIncludeComments
protected boolean fIncludeComments(Code)
Include Comments.



fIncludeIgnorableWhitespace
protected boolean fIncludeIgnorableWhitespace(Code)
Include ignorable whitespace.



fInternalSubset
protected StringBuffer fInternalSubset(Code)
Internal subset buffer.



fNamespaceAware
protected boolean fNamespaceAware(Code)



fRejectedElement
final protected QName fRejectedElement(Code)
LSParserFilter: the QNAME of rejected element



fRoot
protected QName fRoot(Code)
Root element name



fSkippedElemStack
protected Stack fSkippedElemStack(Code)
LSParserFilter: store qnames of skipped elements



fStorePSVI
protected boolean fStorePSVI(Code)
Whether to store PSVI information in DOM tree.



fStringBuffer
final protected StringBuffer fStringBuffer(Code)
Character buffer




Constructor Detail
AbstractDOMParser
protected AbstractDOMParser(XMLParserConfiguration config)(Code)
Default constructor.




Method Detail
abort
public void abort()(Code)

See Also:   org.w3c.dom.ls.LSParser.abort



attributeDecl
public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException(Code)
An attribute declaration.
Parameters:
  elementName - The name of the element that this attributeis associated with.
Parameters:
  attributeName - The name of the attribute.
Parameters:
  type - The attribute type. This value will be one ofthe following: "CDATA", "ENTITY", "ENTITIES","ENUMERATION", "ID", "IDREF", "IDREFS","NMTOKEN", "NMTOKENS", or "NOTATION".
Parameters:
  enumeration - If the type has the value "ENUMERATION" or"NOTATION", this array holds the allowed attributevalues; otherwise, this array is null.
Parameters:
  defaultType - The attribute default type. This value will beone of the following: "#FIXED", "#IMPLIED","#REQUIRED", or null.
Parameters:
  defaultValue - The attribute default value, or null if nodefault value is specified.
Parameters:
  nonNormalizedDefaultValue - The attribute default value with no normalizationperformed, or null if no default value is specified.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



characters
public void characters(XMLString text, Augmentations augs) throws XNIException(Code)
Character content.
Parameters:
  text - The content.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



comment
public void comment(XMLString text, Augmentations augs) throws XNIException(Code)
A comment.
Parameters:
  text - The text in the comment.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by application to signal an error.



createAttrNode
protected Attr createAttrNode(QName attrQName)(Code)



createElementNode
protected Element createElementNode(QName element)(Code)



doctypeDecl
public void doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs) throws XNIException(Code)
Notifies of the presence of the DOCTYPE line in the document.
Parameters:
  rootElement - The name of the root element.
Parameters:
  publicId - The public identifier if an external DTD or nullif the external DTD is specified using SYSTEM.
Parameters:
  systemId - The system identifier if an external DTD, nullotherwise.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



dropDocumentReferences
final public void dropDocumentReferences()(Code)
Drops all references to the last DOM which was built by this parser.



elementDecl
public void elementDecl(String name, String contentModel, Augmentations augs) throws XNIException(Code)
An element declaration.
Parameters:
  name - The name of the element.
Parameters:
  contentModel - The element content model.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



emptyElement
public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)
An empty element.
Parameters:
  element - The name of the element.
Parameters:
  attributes - The element attributes.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



endAttlist
public void endAttlist(Augmentations augs) throws XNIException(Code)
The end of an attribute list.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



endCDATA
public void endCDATA(Augmentations augs) throws XNIException(Code)
The end of a CDATA section.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



endConditional
public void endConditional(Augmentations augs) throws XNIException(Code)
The end of a conditional section.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



endDTD
public void endDTD(Augmentations augs) throws XNIException(Code)
The end of the DTD.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



endDocument
public void endDocument(Augmentations augs) throws XNIException(Code)
The end of the document.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



endElement
public void endElement(QName element, Augmentations augs) throws XNIException(Code)
The end of an element.
Parameters:
  element - The name of the element.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



endExternalSubset
public void endExternalSubset(Augmentations augs) throws XNIException(Code)
The end of the DTD external subset.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



endGeneralEntity
public void endGeneralEntity(String name, Augmentations augs) throws XNIException(Code)
This method notifies the end of a general entity.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  name - The name of the entity.
Parameters:
  augs - Additional information that may include infoset augmentations
exception:
  XNIException - Thrown by handler to signal an error.




endParameterEntity
public void endParameterEntity(String name, Augmentations augs) throws XNIException(Code)
This method notifies the end of a parameter entity. Parameter entity names begin with a '%' character.
Parameters:
  name - The name of the parameter entity.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



externalEntityDecl
public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)
An external entity declaration.
Parameters:
  name - The name of the entity. Parameter entity names startwith '%', whereas the name of a general entity is justthe entity name.
Parameters:
  identifier - An object containing all location informationpertinent to this notation.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



getDocument
public Document getDocument()(Code)
Returns the DOM document object.



getDocumentClassName
protected String getDocumentClassName()(Code)
This method retreives the name of current document class.



handleBaseURI
final protected void handleBaseURI(Node node)(Code)
Record baseURI information for the Element (by adding xml:base attribute) or for the ProcessingInstruction (by setting a baseURI field) Non deferred DOM.
Parameters:
  node -



handleBaseURI
final protected void handleBaseURI(int node)(Code)
Record baseURI information for the Element (by adding xml:base attribute) or for the ProcessingInstruction (by setting a baseURI field) Deferred DOM.
Parameters:
  node -



ignorableWhitespace
public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code)
Ignorable whitespace. For this method to be called, the document source must have some way of determining that the text containing only whitespace characters should be considered ignorable. For example, the validator can determine if a length of whitespace characters in the document are ignorable based on the element content model.
Parameters:
  text - The ignorable whitespace.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



ignoredCharacters
public void ignoredCharacters(XMLString text, Augmentations augs) throws XNIException(Code)
Characters within an IGNORE conditional section.
Parameters:
  text - The ignored text.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



internalEntityDecl
public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs) throws XNIException(Code)
An internal entity declaration.
Parameters:
  name - The name of the entity. Parameter entity names start with'%', whereas the name of a general entity is just theentity name.
Parameters:
  text - The value of the entity.
Parameters:
  nonNormalizedText - The non-normalized value of the entity. Thisvalue contains the same sequence of characters that was inthe internal entity declaration, without any entityreferences expanded.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



notationDecl
public void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)
A notation declaration
Parameters:
  name - The name of the notation.
Parameters:
  identifier - An object containing all location informationpertinent to this notation.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



processingInstruction
public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)
A processing instruction. Processing instructions consist of a target name and, optionally, text data. The data is only meaningful to the application.

Typically, a processing instruction's data will contain a series of pseudo-attributes. These pseudo-attributes follow the form of element attributes but are not parsed or presented to the application as anything other than text. The application is responsible for parsing the data.
Parameters:
  target - The target.
Parameters:
  data - The data or null if none specified.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.




reset
public void reset() throws XNIException(Code)
Resets the parser state.
throws:
  SAXException - Thrown on initialization error.



setCharacterData
protected void setCharacterData(boolean sawChars)(Code)



setDocumentClassName
protected void setDocumentClassName(String documentClassName)(Code)
This method allows the programmer to decide which document factory to use when constructing the DOM tree. However, doing so will lose the functionality of the default factory. Also, a document class other than the default will lose the ability to defer node expansion on the DOM tree produced.
Parameters:
  documentClassName - The fully qualified class name of thedocument factory to use when constructingthe DOM tree.
See Also:   AbstractDOMParser.getDocumentClassName
See Also:   AbstractDOMParser.DEFAULT_DOCUMENT_CLASS_NAME



setLocale
public void setLocale(Locale locale)(Code)
Set the locale to use for messages.
Parameters:
  locale - The locale object to use for localization of messages.



startAttlist
public void startAttlist(String elementName, Augmentations augs) throws XNIException(Code)
The start of an attribute list.
Parameters:
  elementName - The name of the element that this attributelist is associated with.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



startCDATA
public void startCDATA(Augmentations augs) throws XNIException(Code)
The start of a CDATA section.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



startConditional
public void startConditional(short type, Augmentations augs) throws XNIException(Code)
The start of a conditional section.
Parameters:
  type - The type of the conditional section. This value willeither be CONDITIONAL_INCLUDE or CONDITIONAL_IGNORE.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.
See Also:   AbstractDOMParser.CONDITIONAL_INCLUDE
See Also:   AbstractDOMParser.CONDITIONAL_IGNORE



startDTD
public void startDTD(XMLLocator locator, Augmentations augs) throws XNIException(Code)
The start of the DTD.
Parameters:
  locator - The document locator, or null if the documentlocation cannot be reported during the parsing ofthe document DTD. However, it is stronglyrecommended that a locator be supplied that canat least report the base system identifier of theDTD.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



startDocument
public void startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs) throws XNIException(Code)
The start of the document.
Parameters:
  locator - The system identifier of the entity if the entityis external, null otherwise.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream. This value will be null in those situationswhere the entity encoding is not auto-detected (e.g.internal entities or a document entity that isparsed from a java.io.Reader).
Parameters:
  namespaceContext - The namespace context in effect at thestart of this document.This object represents the current context.Implementors of this class are responsiblefor copying the namespace bindings from thethe current context (and its parent contexts)if that information is important.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



startElement
public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)
The start of an element. If the document specifies the start element by using an empty tag, then the startElement method will immediately be followed by the endElement method, with no intervening methods.
Parameters:
  element - The name of the element.
Parameters:
  attributes - The element attributes.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



startExternalSubset
public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)
The start of the DTD external subset.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



startGeneralEntity
public void startGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)
This method notifies the start of a general entity.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  name - The name of the general entity.
Parameters:
  identifier - The resource identifier.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream. This value will be null in those situationswhere the entity encoding is not auto-detected (e.g.internal entities or a document entity that isparsed from a java.io.Reader).
Parameters:
  augs - Additional information that may include infoset augmentations
exception:
  XNIException - Thrown by handler to signal an error.




startParameterEntity
public void startParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)
This method notifies of the start of a parameter entity. The parameter entity name start with a '%' character.
Parameters:
  name - The name of the parameter entity.
Parameters:
  identifier - The resource identifier.
Parameters:
  encoding - The auto-detected IANA encoding name of the entitystream. This value will be null in those situationswhere the entity encoding is not auto-detected (e.g.internal parameter entities).
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



textDecl
public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code)
Notifies of the presence of a TextDecl line in an entity. If present, this method will be called immediately following the startEntity call.

Note: This method will never be called for the document entity; it is only called for external general entities referenced in document content.

Note: This method is not called for entity references appearing as part of attribute values.
Parameters:
  version - The XML version, or null if not specified.
Parameters:
  encoding - The IANA encoding name of the entity.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.




unparsedEntityDecl
public void unparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs) throws XNIException(Code)
An unparsed entity declaration.
Parameters:
  name - The name of the entity.
Parameters:
  identifier - An object containing all location informationpertinent to this entity.
Parameters:
  notation - The name of the notation.
Parameters:
  augs - Additional information that may include infosetaugmentations.
throws:
  XNIException - Thrown by handler to signal an error.



xmlDecl
public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code)
Notifies of the presence of an XMLDecl line in the document. If present, this method will be called immediately following the startDocument call.
Parameters:
  version - The XML version.
Parameters:
  encoding - The IANA encoding name of the document, or null ifnot specified.
Parameters:
  standalone - The standalone value, or null if not specified.
Parameters:
  augs - Additional information that may include infoset augmentations
throws:
  XNIException - Thrown by handler to signal an error.



Fields inherited from org.apache.xerces.parsers.AbstractXMLDocumentParser
protected XMLDTDContentModelSource fDTDContentModelSource(Code)(Java Doc)
protected XMLDTDSource fDTDSource(Code)(Java Doc)
protected XMLDocumentSource fDocumentSource(Code)(Java Doc)
protected boolean fInDTD(Code)(Java Doc)

Methods inherited from org.apache.xerces.parsers.AbstractXMLDocumentParser
public void any(Augmentations augs) throws XNIException(Code)(Java Doc)
public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException(Code)(Java Doc)
public void characters(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc)
public void comment(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc)
public void doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs) throws XNIException(Code)(Java Doc)
public void element(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc)
public void elementDecl(String name, String contentModel, Augmentations augs) throws XNIException(Code)(Java Doc)
public void empty(Augmentations augs) throws XNIException(Code)(Java Doc)
public void emptyElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc)
public void endAttlist(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endCDATA(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endConditional(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endContentModel(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endDTD(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endDocument(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endElement(QName element, Augmentations augs) throws XNIException(Code)(Java Doc)
public void endExternalSubset(Augmentations augmentations) throws XNIException(Code)(Java Doc)
public void endGeneralEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc)
public void endGroup(Augmentations augs) throws XNIException(Code)(Java Doc)
public void endParameterEntity(String name, Augmentations augs) throws XNIException(Code)(Java Doc)
public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)(Java Doc)
public XMLDTDContentModelSource getDTDContentModelSource()(Code)(Java Doc)
public XMLDTDSource getDTDSource()(Code)(Java Doc)
public XMLDocumentSource getDocumentSource()(Code)(Java Doc)
public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc)
public void ignoredCharacters(XMLString text, Augmentations augs) throws XNIException(Code)(Java Doc)
public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs) throws XNIException(Code)(Java Doc)
public void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException(Code)(Java Doc)
public void occurrence(short occurrence, Augmentations augs) throws XNIException(Code)(Java Doc)
public void pcdata(Augmentations augs) throws XNIException(Code)(Java Doc)
public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)(Java Doc)
protected void reset() throws XNIException(Code)(Java Doc)
public void separator(short separator, Augmentations augs) throws XNIException(Code)(Java Doc)
public void setDTDContentModelSource(XMLDTDContentModelSource source)(Code)(Java Doc)
public void setDTDSource(XMLDTDSource source)(Code)(Java Doc)
public void setDocumentSource(XMLDocumentSource source)(Code)(Java Doc)
public void startAttlist(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startCDATA(Augmentations augs) throws XNIException(Code)(Java Doc)
public void startConditional(short type, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startContentModel(String elementName, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startDTD(XMLLocator locator, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augmentations) throws XNIException(Code)(Java Doc)
public void startGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)
public void startGroup(Augmentations augs) throws XNIException(Code)(Java Doc)
public void startParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)
public void textDecl(String version, String encoding, Augmentations augs) throws XNIException(Code)(Java Doc)
public void unparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs) throws XNIException(Code)(Java Doc)
public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException(Code)(Java Doc)

Fields inherited from org.apache.xerces.parsers.XMLParser
final protected static String ENTITY_RESOLVER(Code)(Java Doc)
final protected static String ERROR_HANDLER(Code)(Java Doc)
protected XMLParserConfiguration fConfiguration(Code)(Java Doc)

Methods inherited from org.apache.xerces.parsers.XMLParser
public void parse(XMLInputSource inputSource) throws XNIException, IOException(Code)(Java Doc)
protected void reset() throws XNIException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.