| java.lang.Object org.apache.xerces.parsers.XMLParser org.apache.xerces.parsers.AbstractXMLDocumentParser org.apache.xerces.parsers.AbstractDOMParser org.apache.xerces.parsers.DOMParser
DOMParser | public class DOMParser extends AbstractDOMParser (Code) | | This is the main Xerces DOM parser class. It uses the abstract DOM
parser with a document scanner, a dtd scanner, and a validator, as
well as a grammar pool.
author: Arnaud Le Hors, IBM author: Andy Clark, IBM version: $Id: DOMParser.java 542046 2007-05-27 22:48:02Z mrglavas $ |
Method Summary | |
public EntityResolver | getEntityResolver() Return the current entity resolver. | public ErrorHandler | getErrorHandler() Return the current error handler. | public boolean | getFeature(String featureId) Query the state of a feature.
Query the current state of any feature in a SAX2 parser. | public Object | getProperty(String propertyId) Query the value of a property.
Return the current value of a property in a SAX2 parser.
The parser might not recognize the property.
Parameters: propertyId - The unique identifier (URI) of the propertybeing set. | public XMLParserConfiguration | getXMLParserConfiguration() Returns this parser's XMLParserConfiguration. | public void | parse(String systemId) Parses the input source specified by the given system identifier. | public void | parse(InputSource inputSource) | public void | setEntityResolver(EntityResolver resolver) Sets the resolver used to resolve external entities. | public void | setErrorHandler(ErrorHandler errorHandler) Allow an application to register an error event handler.
If the application does not register an error handler, all
error events reported by the SAX parser will be silently
ignored; however, normal processing may not continue. | public void | setFeature(String featureId, boolean state) Set the state of any feature in a SAX2 parser. | public void | setProperty(String propertyId, Object value) Set the value of any property in a SAX2 parser. |
SYMBOL_TABLE | final protected static String SYMBOL_TABLE(Code) | | Property identifier: symbol table.
|
USE_ENTITY_RESOLVER2 | final protected static String USE_ENTITY_RESOLVER2(Code) | | Feature identifier: EntityResolver2.
|
XMLGRAMMAR_POOL | final protected static String XMLGRAMMAR_POOL(Code) | | Property identifier: XML grammar pool.
|
fUseEntityResolver2 | protected boolean fUseEntityResolver2(Code) | | Use EntityResolver2.
|
DOMParser | public DOMParser()(Code) | | Constructs a DOM parser using the dtd/xml schema parser configuration.
|
DOMParser | public DOMParser(SymbolTable symbolTable)(Code) | | Constructs a DOM parser using the specified symbol table.
|
DOMParser | public DOMParser(SymbolTable symbolTable, XMLGrammarPool grammarPool)(Code) | | Constructs a DOM parser using the specified symbol table and
grammar pool.
|
parse | public void parse(String systemId) throws SAXException, IOException(Code) | | Parses the input source specified by the given system identifier.
This method is equivalent to the following:
parse(new InputSource(systemId));
Parameters: systemId - The system identifier (URI). exception: org.xml.sax.SAXException - Throws exception on SAX error. exception: java.io.IOException - Throws exception on i/o error. |
setEntityResolver | public void setEntityResolver(EntityResolver resolver)(Code) | | Sets the resolver used to resolve external entities. The EntityResolver
interface supports resolution of public and system identifiers.
Parameters: resolver - The new entity resolver. Passing a null value willuninstall the currently installed resolver. |
setErrorHandler | public void setErrorHandler(ErrorHandler errorHandler)(Code) | | Allow an application to register an error event handler.
If the application does not register an error handler, all
error events reported by the SAX parser will be silently
ignored; however, normal processing may not continue. It is
highly recommended that all SAX applications implement an
error handler to avoid unexpected bugs.
Applications may register a new or different handler in the
middle of a parse, and the SAX parser must begin using the new
handler immediately.
Parameters: errorHandler - The error handler. exception: java.lang.NullPointerException - If the handlerargument is null. See Also: DOMParser.getErrorHandler |
setFeature | public void setFeature(String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException(Code) | | Set the state of any feature in a SAX2 parser. The parser
might not recognize the feature, and if it does recognize
it, it might not be able to fulfill the request.
Parameters: featureId - The unique identifier (URI) of the feature. Parameters: state - The requested state of the feature (true or false). exception: SAXNotRecognizedException - If therequested feature is not known. exception: SAXNotSupportedException - If therequested feature is known, but the requestedstate is not supported. |
setProperty | public void setProperty(String propertyId, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code) | | Set the value of any property in a SAX2 parser. The parser
might not recognize the property, and if it does recognize
it, it might not support the requested value.
Parameters: propertyId - The unique identifier (URI) of the propertybeing set. Parameters: value - The value to which the property is being set. exception: SAXNotRecognizedException - If therequested property is not known. exception: SAXNotSupportedException - If therequested property is known, but the requestedvalue is not supported. |
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)
|
|
|