|
BEA Systems, Inc. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectweblogic.apache.xerces.parsers.XMLParser
weblogic.apache.xerces.parsers.AbstractXMLDocumentParser
weblogic.apache.xerces.parsers.AbstractDOMParser
weblogic.apache.xerces.parsers.DOMParser
public class DOMParser
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.
| Field Summary | |
|---|---|
protected static String |
SYMBOL_TABLE
Deprecated. Property identifier: symbol table. |
protected static String |
XMLGRAMMAR_POOL
Deprecated. Property identifier: XML grammar pool. |
| Fields inherited from class weblogic.apache.xerces.parsers.AbstractXMLDocumentParser |
|---|
fDocumentSource |
| Fields inherited from class weblogic.apache.xerces.parsers.XMLParser |
|---|
ENTITY_RESOLVER, ERROR_HANDLER, fConfiguration |
| Fields inherited from interface weblogic.apache.xerces.xni.XMLDTDHandler |
|---|
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE |
| Fields inherited from interface weblogic.apache.xerces.xni.XMLDTDContentModelHandler |
|---|
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE |
| Constructor Summary | |
|---|---|
DOMParser()
Deprecated. Constructs a DOM parser using the dtd/xml schema parser configuration. |
|
DOMParser(SymbolTable symbolTable)
Deprecated. Constructs a DOM parser using the specified symbol table. |
|
DOMParser(SymbolTable symbolTable,
XMLGrammarPool grammarPool)
Deprecated. Constructs a DOM parser using the specified symbol table and grammar pool. |
|
DOMParser(XMLParserConfiguration config)
Deprecated. Constructs a DOM parser using the specified parser configuration. |
|
| Method Summary | |
|---|---|
EntityResolver |
getEntityResolver()
Deprecated. Return the current entity resolver. |
ErrorHandler |
getErrorHandler()
Deprecated. Return the current error handler. |
boolean |
getFeature(String featureId)
Deprecated. Query the state of a feature. |
Object |
getProperty(String propertyId)
Deprecated. Query the value of a property. |
void |
parse(InputSource inputSource)
Deprecated. parse |
void |
parse(String systemId)
Deprecated. Parses the input source specified by the given system identifier. |
void |
setEntityResolver(EntityResolver resolver)
Deprecated. Sets the resolver used to resolve external entities. |
void |
setErrorHandler(ErrorHandler errorHandler)
Deprecated. Allow an application to register an error event handler. |
void |
setFeature(String featureId,
boolean state)
Deprecated. Set the state of any feature in a SAX2 parser. |
void |
setProperty(String propertyId,
Object value)
Deprecated. Set the value of any property in a SAX2 parser. |
| Methods inherited from class weblogic.apache.xerces.parsers.AbstractXMLDocumentParser |
|---|
any, element, empty, endContentModel, endGroup, getDocumentSource, occurrence, pcdata, separator, setDocumentSource, startContentModel, startGroup |
| Methods inherited from class weblogic.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 String SYMBOL_TABLE
protected static final String XMLGRAMMAR_POOL
| Constructor Detail |
|---|
public DOMParser(XMLParserConfiguration config)
public DOMParser()
public DOMParser(SymbolTable symbolTable)
public DOMParser(SymbolTable symbolTable,
XMLGrammarPool grammarPool)
| Method Detail |
|---|
public void parse(String systemId)
throws SAXException,
IOException
This method is equivalent to the following:
parse(new InputSource(systemId));
source - The input source.
SAXException - Throws exception on SAX error.
IOException - Throws exception on i/o error.
public void parse(InputSource inputSource)
throws SAXException,
IOException
inputSource -
SAXException
IOExceptionpublic void setEntityResolver(EntityResolver resolver)
resolver - The new entity resolver. Passing a null value will
uninstall the currently installed resolver.public EntityResolver getEntityResolver()
DOMParser.setEntityResolver(org.xml.sax.EntityResolver)public void setErrorHandler(ErrorHandler errorHandler)
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.
errorHandler - The error handler.
NullPointerException - If the handler
argument is null.DOMParser.getErrorHandler()public ErrorHandler getErrorHandler()
DOMParser.setErrorHandler(org.xml.sax.ErrorHandler)
public void setFeature(String featureId,
boolean state)
throws SAXNotRecognizedException,
SAXNotSupportedException
featureId - The unique identifier (URI) of the feature.state - The requested state of the feature (true or false).
SAXNotRecognizedException - If the
requested feature is not known.
SAXNotSupportedException - If the
requested feature is known, but the requested
state is not supported.
public boolean getFeature(String featureId)
throws SAXNotRecognizedException,
SAXNotSupportedException
featureId - The unique identifier (URI) of the feature
being set.
SAXNotRecognizedException - If the
requested feature is not known.
SAXNotSupportedException - If the
requested feature is known but not supported.
public void setProperty(String propertyId,
Object value)
throws SAXNotRecognizedException,
SAXNotSupportedException
propertyId - The unique identifier (URI) of the property
being set.Object - The value to which the property is being set.
SAXNotRecognizedException - If the
requested property is not known.
SAXNotSupportedException - If the
requested property is known, but the requested
value is not supported.
public Object getProperty(String propertyId)
throws SAXNotRecognizedException,
SAXNotSupportedException
propertyId - The unique identifier (URI) of the property
being set.
SAXNotRecognizedException - If the
requested property is not known.
SAXNotSupportedException - If the
requested property is known but not supported.
|
Documentation is available at http://download.oracle.com/docs/cd/E13222_01/wls/docs92 Copyright 2006 BEA Systems Inc. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||