| java.lang.Object org.apache.xerces.parsers.XMLParser org.apache.xerces.parsers.AbstractXMLDocumentParser org.apache.xerces.parsers.AbstractDOMParser org.apache.xerces.parsers.DOMParserImpl
All known Subclasses: org.apache.xerces.parsers.DOMASBuilderImpl,
DOMParserImpl | public class DOMParserImpl extends AbstractDOMParser implements LSParser,DOMConfiguration(Code) | | This is Xerces DOM Builder class. It uses the abstract DOM
parser with a document scanner, a dtd scanner, and a validator, as
well as a grammar pool.
author: Pavani Mukthipudi, Sun Microsystems Inc. author: Elena Litani, IBM author: Rahul Srivastava, Sun Microsystems Inc. version: $Id: DOMParserImpl.java 568412 2007-08-22 04:40:44Z mrglavas $ |
DEBUG | final protected static boolean DEBUG(Code) | | |
DISALLOW_DOCTYPE_DECL_FEATURE | final protected static String DISALLOW_DOCTYPE_DECL_FEATURE(Code) | | Feature identifier: disallow docType Decls.
|
DYNAMIC_VALIDATION | final protected static String DYNAMIC_VALIDATION(Code) | | Dynamic validation
|
HONOUR_ALL_SCHEMALOCATIONS | final protected static String HONOUR_ALL_SCHEMALOCATIONS(Code) | | Feature identifier: honour all schemaLocations
|
NAMESPACES | final protected static String NAMESPACES(Code) | | Feature identifier: namespaces.
|
NORMALIZE_DATA | final protected static String NORMALIZE_DATA(Code) | | Feature identifier: expose schema normalized value
|
PSVI_AUGMENT | final protected static String PSVI_AUGMENT(Code) | | |
SYMBOL_TABLE | final protected static String SYMBOL_TABLE(Code) | | |
VALIDATION_FEATURE | final protected static String VALIDATION_FEATURE(Code) | | Feature id: validation.
|
XMLSCHEMA | final protected static String XMLSCHEMA(Code) | | XML Schema validation
|
XMLSCHEMA_FULL_CHECKING | final protected static String XMLSCHEMA_FULL_CHECKING(Code) | | XML Schema full checking
|
fBusy | protected boolean fBusy(Code) | | |
fNamespaceDeclarations | protected boolean fNamespaceDeclarations(Code) | | Include namespace declaration attributes in the document. *
|
DOMParserImpl | public DOMParserImpl(String configuration, String schemaType)(Code) | | Constructs a DOM Builder using the standard parser configuration.
|
DOMParserImpl | public DOMParserImpl(SymbolTable symbolTable)(Code) | | Constructs a DOM Builder using the specified symbol table.
|
DOMParserImpl | public DOMParserImpl(SymbolTable symbolTable, XMLGrammarPool grammarPool)(Code) | | Constructs a DOM Builder using the specified symbol table and
grammar pool.
|
getFilter | public LSParserFilter getFilter()(Code) | | When the application provides a filter, the parser will call out to
the filter at the completion of the construction of each
Element node. The filter implementation can choose to
remove the element from the document being constructed (unless the
element is the document element) or to terminate the parse early. If
the document is being validated when it's loaded the validation
happens before the filter is called.
|
getParameterNames | public DOMStringList getParameterNames()(Code) | | DOM Level 3 CR - Experimental.
The list of the parameters supported by this
DOMConfiguration object and for which at least one value
can be set by the application. Note that this list can also contain
parameter names defined outside this specification.
|
parseURI | public Document parseURI(String uri) throws LSException(Code) | | Parse an XML document from a location identified by an URI reference.
If the URI contains a fragment identifier (see section 4.1 in ), the
behavior is not defined by this specification.
|
parseWithContext | public Node parseWithContext(LSInput is, Node cnode, short action) throws DOMException, LSException(Code) | | Parse an XML document or fragment from a resource identified by an
LSInput and insert the content into an existing
document at the position epcified with the contextNode
and action arguments. When parsing the input stream the
context node is used for resolving unbound namespace prefixes.
Parameters: is - The LSInput from which the sourcedocument is to be read. Parameters: cnode - The Node that is used as the context forthe data that is being parsed. Parameters: action - This parameter describes which action should be takenbetween the new set of node being inserted and the existingchildren of the context node. The set of possible actions isdefined above. exception: DOMException - HIERARCHY_REQUEST_ERR: Thrown if this action results in an invalidhierarchy (i.e. a Document with more than one document element). |
reset | public void reset()(Code) | | Resets the parser state.
throws: SAXException - Thrown on initialization error. |
setFilter | public void setFilter(LSParserFilter filter)(Code) | | When the application provides a filter, the parser will call out to
the filter at the completion of the construction of each
Element node. The filter implementation can choose to
remove the element from the document being constructed (unless the
element is the document element) or to terminate the parse early. If
the document is being validated when it's loaded the validation
happens before the filter is called.
|
startElement | public void startElement(QName element, XMLAttributes attributes, Augmentations augs)(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.
Overriding the parent to handle DOM_NAMESPACE_DECLARATIONS=false.
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. |
Methods inherited from org.apache.xerces.parsers.AbstractDOMParser | public void abort()(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) protected Attr createAttrNode(QName attrQName)(Code)(Java Doc) protected Element createElementNode(QName element)(Code)(Java Doc) public void doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs) throws XNIException(Code)(Java Doc) final public void dropDocumentReferences()(Code)(Java Doc) public void elementDecl(String name, String contentModel, 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 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 augs) throws XNIException(Code)(Java Doc) public void endGeneralEntity(String name, 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 Document getDocument()(Code)(Java Doc) protected String getDocumentClassName()(Code)(Java Doc) final protected void handleBaseURI(Node node)(Code)(Java Doc) final protected void handleBaseURI(int node)(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 processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException(Code)(Java Doc) public void reset() throws XNIException(Code)(Java Doc) protected void setCharacterData(boolean sawChars)(Code)(Java Doc) protected void setDocumentClassName(String documentClassName)(Code)(Java Doc) public void setLocale(Locale locale)(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 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 augs) throws XNIException(Code)(Java Doc) public void startGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, 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)
|
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)
|
|
|