|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object weblogic.apache.xerces.parsers.XMLParser weblogic.apache.xerces.parsers.AbstractXMLDocumentParser weblogic.apache.xerces.parsers.AbstractSAXParser
public abstract class AbstractSAXParser
This is the base class of all SAX parsers. It implements both the SAX1 and SAX2 parser functionality, while the actual pipeline is defined in the parser configuration.
Nested Class Summary | |
---|---|
protected static class |
AbstractSAXParser.AttributesProxy
Deprecated. |
protected static class |
AbstractSAXParser.LocatorProxy
Deprecated. |
Field Summary | |
---|---|
protected static String |
DECLARATION_HANDLER
Deprecated. Property id: declaration handler. |
protected static String |
DOM_NODE
Deprecated. Property id: DOM node. |
protected ContentHandler |
fContentHandler
Deprecated. Content handler. |
protected DeclHandler |
fDeclHandler
Deprecated. Decl handler. |
protected DocumentHandler |
fDocumentHandler
Deprecated. Document handler. |
protected DTDHandler |
fDTDHandler
Deprecated. DTD handler. |
protected LexicalHandler |
fLexicalHandler
Deprecated. Lexical handler. |
protected boolean |
fNamespacePrefixes
Deprecated. Namespace prefixes. |
protected boolean |
fNamespaces
Deprecated. Namespaces. |
protected boolean |
fNormalizeData
Deprecated. Expose XML Schema schema_normalize_values via DOM |
protected boolean |
fParseInProgress
Deprecated. True if a parse is in progress. |
protected QName |
fQName
Deprecated. |
protected static String |
LEXICAL_HANDLER
Deprecated. Property id: lexical handler. |
protected static String |
NAMESPACE_PREFIXES
Deprecated. Feature identifier: namespace prefixes. |
protected static String |
NAMESPACES
Deprecated. Feature identifier: namespaces. |
protected static String |
NORMALIZE_DATA
Deprecated. Expose XML Schema normalize value |
protected static String |
STRING_INTERNING
Deprecated. Feature id: string interning. |
Fields inherited from class weblogic.apache.xerces.parsers.AbstractXMLDocumentParser |
---|
fDocumentSource, fInDTD |
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 | |
---|---|
protected |
AbstractSAXParser(XMLParserConfiguration config)
Deprecated. Default constructor. |
Method Summary | |
---|---|
void |
attributeDecl(String elementName,
String attributeName,
String type,
String[] enumeration,
String defaultType,
XMLString defaultValue,
XMLString nonNormalizedDefaultValue,
Augmentations augs)
Deprecated. An attribute declaration. |
void |
characters(XMLString text,
Augmentations augs)
Deprecated. Character content. |
void |
comment(XMLString text,
Augmentations augs)
Deprecated. A comment. |
void |
doctypeDecl(String rootElement,
String publicId,
String systemId,
Augmentations augs)
Deprecated. Notifies of the presence of the DOCTYPE line in the document. |
void |
elementDecl(String name,
String contentModel,
Augmentations augs)
Deprecated. An element declaration. |
void |
endCDATA(Augmentations augs)
Deprecated. The end of a CDATA section. |
void |
endDocument(Augmentations augs)
Deprecated. The end of the document. |
void |
endDTD(Augmentations augs)
Deprecated. The end of the DTD. |
void |
endElement(QName element,
Augmentations augs)
Deprecated. The end of an element. |
void |
endExternalSubset(Augmentations augs)
Deprecated. The end of the DTD external subset. |
void |
endGeneralEntity(String name,
Augmentations augs)
Deprecated. This method notifies the end of an entity. |
void |
endParameterEntity(String name,
Augmentations augs)
Deprecated. This method notifies the end of an entity. |
void |
endPrefixMapping(String prefix,
Augmentations augs)
Deprecated. The end of a namespace prefix mapping. |
void |
externalEntityDecl(String name,
XMLResourceIdentifier identifier,
Augmentations augs)
Deprecated. An external entity declaration. |
AttributePSVI |
getAttributePSVI(int index)
Deprecated. |
AttributePSVI |
getAttributePSVIByName(String uri,
String localname)
Deprecated. |
ContentHandler |
getContentHandler()
Deprecated. Return the current content handler. |
protected DeclHandler |
getDeclHandler()
Deprecated. Returns the DTD declaration event handler. |
DTDHandler |
getDTDHandler()
Deprecated. Return the current DTD handler. |
ElementPSVI |
getElementPSVI()
Deprecated. |
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. |
protected LexicalHandler |
getLexicalHandler()
Deprecated. Returns the lexical handler. |
Object |
getProperty(String propertyId)
Deprecated. Query the value of a property. |
void |
ignorableWhitespace(XMLString text,
Augmentations augs)
Deprecated. Ignorable whitespace. |
void |
internalEntityDecl(String name,
XMLString text,
XMLString nonNormalizedText,
Augmentations augs)
Deprecated. An internal entity declaration. |
void |
notationDecl(String name,
XMLResourceIdentifier identifier,
Augmentations augs)
Deprecated. A notation declaration |
void |
parse(InputSource inputSource)
Deprecated. parse |
void |
parse(String systemId)
Deprecated. Parses the input source specified by the given system identifier. |
void |
processingInstruction(String target,
XMLString data,
Augmentations augs)
Deprecated. A processing instruction. |
void |
reset()
Deprecated. Reset all components before parsing. |
void |
setContentHandler(ContentHandler contentHandler)
Deprecated. Allow an application to register a content event handler. |
protected void |
setDeclHandler(DeclHandler handler)
Deprecated. Set the DTD declaration event handler. |
void |
setDocumentHandler(DocumentHandler documentHandler)
Deprecated. Allow an application to register a document event handler. |
void |
setDTDHandler(DTDHandler dtdHandler)
Deprecated. Allow an application to register a DTD event handler. |
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. |
protected void |
setLexicalHandler(LexicalHandler handler)
Deprecated. Set the lexical event handler. |
void |
setLocale(Locale locale)
Deprecated. Set the locale to use for messages. |
void |
setProperty(String propertyId,
Object value)
Deprecated. Set the value of any property in a SAX2 parser. |
void |
startCDATA(Augmentations augs)
Deprecated. The start of a CDATA section. |
void |
startDocument(XMLLocator locator,
String encoding,
Augmentations augs)
Deprecated. The start of the document. |
void |
startElement(QName element,
XMLAttributes attributes,
Augmentations augs)
Deprecated. The start of an element. |
void |
startExternalSubset(XMLResourceIdentifier identifier,
Augmentations augs)
Deprecated. The start of the DTD external subset. |
void |
startGeneralEntity(String name,
XMLResourceIdentifier identifier,
String encoding,
Augmentations augs)
Deprecated. This method notifies of the start of an entity. |
void |
startParameterEntity(String name,
XMLResourceIdentifier identifier,
String encoding,
Augmentations augs)
Deprecated. This method notifies of the start of parameter entity. |
void |
startPrefixMapping(String prefix,
String uri,
Augmentations augs)
Deprecated. The start of a namespace prefix mapping. |
void |
unparsedEntityDecl(String name,
XMLResourceIdentifier identifier,
String notation,
Augmentations augs)
Deprecated. An unparsed entity declaration. |
Methods inherited from class weblogic.apache.xerces.parsers.AbstractXMLDocumentParser |
---|
any, element, empty, emptyElement, endAttlist, endConditional, endContentModel, endGroup, getDocumentSource, ignoredCharacters, occurrence, pcdata, separator, setDocumentSource, startAttlist, startConditional, startContentModel, startDTD, startGroup, textDecl, xmlDecl |
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 NAMESPACES
protected static final String NAMESPACE_PREFIXES
protected static final String NORMALIZE_DATA
protected static final String STRING_INTERNING
protected static final String LEXICAL_HANDLER
protected static final String DECLARATION_HANDLER
protected static final String DOM_NODE
protected boolean fNamespaces
protected boolean fNamespacePrefixes
protected boolean fNormalizeData
protected ContentHandler fContentHandler
protected DocumentHandler fDocumentHandler
protected DTDHandler fDTDHandler
protected DeclHandler fDeclHandler
protected LexicalHandler fLexicalHandler
protected QName fQName
protected boolean fParseInProgress
Constructor Detail |
---|
protected AbstractSAXParser(XMLParserConfiguration config)
Method Detail |
---|
public void startDocument(XMLLocator locator, String encoding, Augmentations augs) throws XNIException
startDocument
in interface XMLDocumentHandler
startDocument
in class AbstractXMLDocumentParser
locator
- The document locator, or null if the document
location cannot be reported during the parsing
of this document. However, it is strongly
recommended that a locator be supplied that can
at least report the system identifier of the
document.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).augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void doctypeDecl(String rootElement, String publicId, String systemId, Augmentations augs) throws XNIException
doctypeDecl
in interface XMLDocumentHandler
doctypeDecl
in class AbstractXMLDocumentParser
rootElement
- The name of the root element.publicId
- The public identifier if an external DTD or null
if the external DTD is specified using SYSTEM.systemId
- The system identifier if an external DTD, null
otherwise.augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void startGeneralEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException
Note: Since the document is an entity, the handler will be notified of the start of the document entity by calling the startEntity method with the entity name "[xml]" before calling the startDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.
Note: This method is not called for entity references appearing as part of attribute values.
startGeneralEntity
in interface XMLDocumentHandler
startGeneralEntity
in class AbstractXMLDocumentParser
name
- The name of the entity.identifier
- The resource identifier.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 parameter entities).augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void endGeneralEntity(String name, Augmentations augs) throws XNIException
Note: Since the document is an entity, the handler will be notified of the end of the document entity by calling the endEntity method with the entity name "[xml]" after calling the endDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.
Note: This method is not called for entity references appearing as part of attribute values.
endGeneralEntity
in interface XMLDocumentHandler
endGeneralEntity
in class AbstractXMLDocumentParser
name
- The name of the entity.augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void startPrefixMapping(String prefix, String uri, Augmentations augs) throws XNIException
startPrefixMapping
in interface XMLDocumentHandler
startPrefixMapping
in class AbstractXMLDocumentParser
prefix
- The namespace prefix.uri
- The URI bound to the prefix.augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void startElement(QName element, XMLAttributes attributes, Augmentations augs) throws XNIException
startElement
in interface XMLDocumentHandler
startElement
in class AbstractXMLDocumentParser
element
- The name of the element.attributes
- The element attributes.augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void characters(XMLString text, Augmentations augs) throws XNIException
characters
in interface XMLDocumentHandler
characters
in class AbstractXMLDocumentParser
text
- The content.augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void ignorableWhitespace(XMLString text, Augmentations augs) throws XNIException
ignorableWhitespace
in interface XMLDocumentHandler
ignorableWhitespace
in class AbstractXMLDocumentParser
text
- The ignorable whitespace.augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void endElement(QName element, Augmentations augs) throws XNIException
endElement
in interface XMLDocumentHandler
endElement
in class AbstractXMLDocumentParser
element
- The name of the element.augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void endPrefixMapping(String prefix, Augmentations augs) throws XNIException
endPrefixMapping
in interface XMLDocumentHandler
endPrefixMapping
in class AbstractXMLDocumentParser
prefix
- The namespace prefix.augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void startCDATA(Augmentations augs) throws XNIException
startCDATA
in interface XMLDocumentHandler
startCDATA
in class AbstractXMLDocumentParser
augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void endCDATA(Augmentations augs) throws XNIException
endCDATA
in interface XMLDocumentHandler
endCDATA
in class AbstractXMLDocumentParser
augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void comment(XMLString text, Augmentations augs) throws XNIException
comment
in interface XMLDocumentHandler
comment
in interface XMLDTDHandler
comment
in class AbstractXMLDocumentParser
text
- The text in the comment.augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by application to signal an error.public void processingInstruction(String target, XMLString data, Augmentations augs) throws XNIException
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.
processingInstruction
in interface XMLDocumentHandler
processingInstruction
in interface XMLDTDHandler
processingInstruction
in class AbstractXMLDocumentParser
target
- The target.data
- The data or null if none specified.augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void endDocument(Augmentations augs) throws XNIException
endDocument
in interface XMLDocumentHandler
endDocument
in class AbstractXMLDocumentParser
augs
- Additional information that may include infoset augmentations
XNIException
- Thrown by handler to signal an error.public void startExternalSubset(XMLResourceIdentifier identifier, Augmentations augs) throws XNIException
startExternalSubset
in interface XMLDTDHandler
startExternalSubset
in class AbstractXMLDocumentParser
augs
- Additional information that may include infoset
augmentations.identifier
- The resource identifier.
XNIException
- Thrown by handler to signal an error.public void endExternalSubset(Augmentations augs) throws XNIException
endExternalSubset
in interface XMLDTDHandler
endExternalSubset
in class AbstractXMLDocumentParser
augs
- Additional information that may include infoset
augmentations.
XNIException
- Thrown by handler to signal an error.public void startParameterEntity(String name, XMLResourceIdentifier identifier, String encoding, Augmentations augs) throws XNIException
Note: Since the document is an entity, the handler will be notified of the start of the document entity by calling the startEntity method with the entity name "[xml]" before calling the startDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.
Note: This method is not called for entity references appearing as part of attribute values.
startParameterEntity
in interface XMLDTDHandler
startParameterEntity
in class AbstractXMLDocumentParser
name
- The name of the parameter entity.identifier
- The resource identifier.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 parameter entities).augs
- Additional information that may include infoset
augmentations.
XNIException
- Thrown by handler to signal an error.public void endParameterEntity(String name, Augmentations augs) throws XNIException
Note: Since the document is an entity, the handler will be notified of the end of the document entity by calling the endEntity method with the entity name "[xml]" after calling the endDocument method. When exposing entity boundaries through the SAX API, the document entity is never reported, however.
Note: This method is not called for entity references appearing as part of attribute values.
endParameterEntity
in interface XMLDTDHandler
endParameterEntity
in class AbstractXMLDocumentParser
name
- The name of the parameter entity.augs
- Additional information that may include infoset
augmentations.
XNIException
- Thrown by handler to signal an error.public void elementDecl(String name, String contentModel, Augmentations augs) throws XNIException
elementDecl
in interface XMLDTDHandler
elementDecl
in class AbstractXMLDocumentParser
name
- The name of the element.contentModel
- The element content model.augs
- Additional information that may include infoset
augmentations.
XNIException
- Thrown by handler to signal an error.public void attributeDecl(String elementName, String attributeName, String type, String[] enumeration, String defaultType, XMLString defaultValue, XMLString nonNormalizedDefaultValue, Augmentations augs) throws XNIException
attributeDecl
in interface XMLDTDHandler
attributeDecl
in class AbstractXMLDocumentParser
elementName
- The name of the element that this attribute
is associated with.attributeName
- The name of the attribute.type
- The attribute type. This value will be one of
the following: "CDATA", "ENTITY", "ENTITIES",
"ENUMERATION", "ID", "IDREF", "IDREFS",
"NMTOKEN", "NMTOKENS", or "NOTATION".enumeration
- If the type has the value "ENUMERATION" or
"NOTATION", this array holds the allowed attribute
values; otherwise, this array is null.defaultType
- The attribute default type. This value will be
one of the following: "#FIXED", "#IMPLIED",
"#REQUIRED", or null.defaultValue
- The attribute default value, or null if no
default value is specified.nonNormalizedDefaultValue
- The attribute default value with no normalization
performed, or null if no default value is specified.augs
- Additional information that may include infoset
augmentations.
XNIException
- Thrown by handler to signal an error.public void internalEntityDecl(String name, XMLString text, XMLString nonNormalizedText, Augmentations augs) throws XNIException
internalEntityDecl
in interface XMLDTDHandler
internalEntityDecl
in class AbstractXMLDocumentParser
name
- The name of the entity. Parameter entity names start with
'%', whereas the name of a general entity is just the
entity name.text
- The value of the entity.nonNormalizedText
- The non-normalized value of the entity. This
value contains the same sequence of characters that was in
the internal entity declaration, without any entity
references expanded.augs
- Additional information that may include infoset
augmentations.
XNIException
- Thrown by handler to signal an error.public void externalEntityDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException
externalEntityDecl
in interface XMLDTDHandler
externalEntityDecl
in class AbstractXMLDocumentParser
name
- The name of the entity. Parameter entity names start
with '%', whereas the name of a general entity is just
the entity name.identifier
- An object containing all location information
pertinent to this entity.augs
- Additional information that may include infoset
augmentations.
XNIException
- Thrown by handler to signal an error.public void unparsedEntityDecl(String name, XMLResourceIdentifier identifier, String notation, Augmentations augs) throws XNIException
unparsedEntityDecl
in interface XMLDTDHandler
unparsedEntityDecl
in class AbstractXMLDocumentParser
name
- The name of the entity.identifier
- An object containing all location information
pertinent to this entity.notation
- The name of the notation.augs
- Additional information that may include infoset
augmentations.
XNIException
- Thrown by handler to signal an error.public void notationDecl(String name, XMLResourceIdentifier identifier, Augmentations augs) throws XNIException
notationDecl
in interface XMLDTDHandler
notationDecl
in class AbstractXMLDocumentParser
name
- The name of the notation.identifier
- An object containing all location information
pertinent to this notation.augs
- Additional information that may include infoset
augmentations.
XNIException
- Thrown by handler to signal an error.public void endDTD(Augmentations augs) throws XNIException
endDTD
in interface XMLDTDHandler
endDTD
in class AbstractXMLDocumentParser
augs
- Additional information that may include infoset
augmentations.
XNIException
- Thrown by handler to signal an error.public void parse(String systemId) throws SAXException, IOException
This method is equivalent to the following:
parse(new InputSource(systemId));
parse
in interface Parser
parse
in interface XMLReader
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
parse
in interface Parser
parse
in interface XMLReader
inputSource
-
SAXException
IOException
public void setEntityResolver(EntityResolver resolver)
setEntityResolver
in interface Parser
setEntityResolver
in interface XMLReader
resolver
- The new entity resolver. Passing a null value will
uninstall the currently installed resolver.public EntityResolver getEntityResolver()
getEntityResolver
in interface XMLReader
AbstractSAXParser.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.
setErrorHandler
in interface Parser
setErrorHandler
in interface XMLReader
errorHandler
- The error handler.
NullPointerException
- If the handler
argument is null.AbstractSAXParser.getErrorHandler()
public ErrorHandler getErrorHandler()
getErrorHandler
in interface XMLReader
AbstractSAXParser.setErrorHandler(org.xml.sax.ErrorHandler)
public void setLocale(Locale locale) throws SAXException
setLocale
in interface Parser
locale
- The locale object to use for localization of messages.
SAXException
- An exception thrown if the parser does not
support the specified locale.Parser
public void setDTDHandler(DTDHandler dtdHandler)
If the application does not register a DTD handler, all DTD events reported by the SAX parser will be silently ignored.
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.
setDTDHandler
in interface Parser
setDTDHandler
in interface XMLReader
dtdHandler
- The DTD handler.
NullPointerException
- If the handler
argument is null.AbstractSAXParser.getDTDHandler()
public void setDocumentHandler(DocumentHandler documentHandler)
If the application does not register a document handler, all document events reported by the SAX parser will be silently ignored (this is the default behaviour implemented by HandlerBase).
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.
setDocumentHandler
in interface Parser
documentHandler
- The document handler.public void setContentHandler(ContentHandler contentHandler)
If the application does not register a content handler, all content events reported by the SAX parser will be silently ignored.
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.
setContentHandler
in interface XMLReader
contentHandler
- The content handler.
NullPointerException
- If the handler
argument is null.AbstractSAXParser.getContentHandler()
public ContentHandler getContentHandler()
getContentHandler
in interface XMLReader
AbstractSAXParser.setContentHandler(org.xml.sax.ContentHandler)
public DTDHandler getDTDHandler()
getDTDHandler
in interface XMLReader
AbstractSAXParser.setDTDHandler(org.xml.sax.DTDHandler)
public void setFeature(String featureId, boolean state) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature
in interface XMLReader
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
getFeature
in interface XMLReader
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
setProperty
in interface XMLReader
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
getProperty
in interface XMLReader
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.protected void setDeclHandler(DeclHandler handler) throws SAXNotRecognizedException, SAXNotSupportedException
This method is the equivalent to the property:
http://xml.org/sax/properties/declaration-handler
handler
- The new handler.
SAXNotRecognizedException
SAXNotSupportedException
AbstractSAXParser.getDeclHandler()
,
AbstractSAXParser.setProperty(java.lang.String, java.lang.Object)
protected DeclHandler getDeclHandler() throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
SAXNotSupportedException
AbstractSAXParser.setDeclHandler(org.xml.sax.ext.DeclHandler)
protected void setLexicalHandler(LexicalHandler handler) throws SAXNotRecognizedException, SAXNotSupportedException
This method is the equivalent to the property:
http://xml.org/sax/properties/lexical-handler
handler
- lexical event handler
SAXNotRecognizedException
SAXNotSupportedException
AbstractSAXParser.getLexicalHandler()
,
AbstractSAXParser.setProperty(java.lang.String, java.lang.Object)
protected LexicalHandler getLexicalHandler() throws SAXNotRecognizedException, SAXNotSupportedException
SAXNotRecognizedException
SAXNotSupportedException
AbstractSAXParser.setLexicalHandler(org.xml.sax.ext.LexicalHandler)
public void reset() throws XNIException
reset
in class AbstractXMLDocumentParser
XNIException
- Thrown if an error occurs during initialization.public ElementPSVI getElementPSVI()
getElementPSVI
in interface weblogic.apache.xerces.impl.xs.psvi.PSVIProvider
public AttributePSVI getAttributePSVI(int index)
getAttributePSVI
in interface weblogic.apache.xerces.impl.xs.psvi.PSVIProvider
public AttributePSVI getAttributePSVIByName(String uri, String localname)
getAttributePSVIByName
in interface weblogic.apache.xerces.impl.xs.psvi.PSVIProvider
|
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 |