|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.xerces.parsers.XMLParser | +--org.apache.xerces.parsers.AbstractXMLDocumentParser | +--org.apache.xerces.parsers.AbstractDOMParser | +--org.apache.xerces.parsers.DOMParser | +--org.apache.xerces.impl.xs.dom.DOMParser
A dom parser used to parse schema documents into DOM trees
Field Summary | |
protected static java.lang.String |
DEFER_EXPANSION
Feature identifier: DOM Defer node expansion. |
protected static java.lang.String |
DOCUMENT_CLASS
Property identifier: DOM document class name. |
protected static java.lang.String |
ENTITY_MANAGER
Property identifier: entity manager. |
static java.lang.String |
ERROR_REPORTER
Property identifier: error reporter. |
DocumentImpl |
fDocumentImpl
|
protected org.apache.xerces.xni.XMLLocator |
fLocator
|
Fields inherited from class org.apache.xerces.parsers.DOMParser |
SYMBOL_TABLE, XMLGRAMMAR_POOL |
Fields inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser |
fDocumentSource, fDTDContentModelSource, fDTDSource |
Fields inherited from class org.apache.xerces.parsers.XMLParser |
ENTITY_RESOLVER, ERROR_HANDLER, fConfiguration |
Fields inherited from interface org.apache.xerces.xni.XMLDTDHandler |
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE |
Fields inherited from interface org.apache.xerces.xni.XMLDTDContentModelHandler |
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE |
Constructor Summary | |
DOMParser()
Constructs a DOM parser using the dtd/xml schema parser configuration. |
Method Summary | |
void |
characters(org.apache.xerces.xni.XMLString text,
org.apache.xerces.xni.Augmentations augs)
Character content. |
protected org.w3c.dom.Element |
createElementNode(org.apache.xerces.xni.QName element)
|
void |
endElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.Augmentations augs)
The end of an element. |
void |
resetNodePool()
Resets the node pool. |
void |
startDocument(org.apache.xerces.xni.XMLLocator locator,
java.lang.String encoding,
org.apache.xerces.xni.NamespaceContext namespaceContext,
org.apache.xerces.xni.Augmentations augs)
The start of the document. |
void |
startElement(org.apache.xerces.xni.QName element,
org.apache.xerces.xni.XMLAttributes attributes,
org.apache.xerces.xni.Augmentations augs)
The start of an element. |
Methods inherited from class org.apache.xerces.parsers.DOMParser |
getEntityResolver, getErrorHandler, getFeature, getProperty, parse, parse, setEntityResolver, setErrorHandler, setFeature, setProperty |
Methods inherited from class org.apache.xerces.parsers.AbstractXMLDocumentParser |
any, element, empty, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startContentModel, startGroup |
Methods inherited from class org.apache.xerces.parsers.XMLParser |
parse |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final java.lang.String ENTITY_MANAGER
protected static final java.lang.String DOCUMENT_CLASS
protected static final java.lang.String DEFER_EXPANSION
public static final java.lang.String ERROR_REPORTER
protected org.apache.xerces.xni.XMLLocator fLocator
public DocumentImpl fDocumentImpl
Constructor Detail |
public DOMParser()
Method Detail |
public void resetNodePool()
public void startDocument(org.apache.xerces.xni.XMLLocator locator, java.lang.String encoding, org.apache.xerces.xni.NamespaceContext namespaceContext, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
startDocument
in interface org.apache.xerces.xni.XMLDocumentHandler
startDocument
in class AbstractDOMParser
locator
- The system identifier of the entity if the entity
is external, null otherwise.encoding
- The auto-detected IANA encoding name of the entity
stream. This value will be null in those situations
where the entity encoding is not auto-detected (e.g.
internal entities or a document entity that is
parsed from a java.io.Reader).namespaceContext
- The namespace context in effect at the
start of this document.
This object represents the current context.
Implementors of this class are responsible
for copying the namespace bindings from the
the current context (and its parent contexts)
if that information is important.augs
- Additional information that may include infoset augmentations
org.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void startElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.XMLAttributes attributes, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
AbstractDOMParser
startElement
in interface org.apache.xerces.xni.XMLDocumentHandler
startElement
in class AbstractDOMParser
element
- The name of the element.attributes
- The element attributes.augs
- Additional information that may include infoset augmentations
org.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void characters(org.apache.xerces.xni.XMLString text, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
AbstractDOMParser
characters
in interface org.apache.xerces.xni.XMLDocumentHandler
characters
in class AbstractDOMParser
text
- The content.augs
- Additional information that may include infoset augmentations
org.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.public void endElement(org.apache.xerces.xni.QName element, org.apache.xerces.xni.Augmentations augs) throws org.apache.xerces.xni.XNIException
AbstractDOMParser
endElement
in interface org.apache.xerces.xni.XMLDocumentHandler
endElement
in class AbstractDOMParser
element
- The name of the element.augs
- Additional information that may include infoset augmentations
org.apache.xerces.xni.XNIException
- Thrown by handler to signal an error.protected org.w3c.dom.Element createElementNode(org.apache.xerces.xni.QName element)
createElementNode
in class AbstractDOMParser
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |