public abstract class AbstractSAXParser extends AbstractXMLDocumentParser implements PSVIProvider, Parser, XMLReader
Modifier and Type | Class and Description |
---|---|
protected static class |
AbstractSAXParser.AttributesProxy |
protected static class |
AbstractSAXParser.LocatorProxy |
Modifier and Type | Field and Description |
---|---|
protected static String |
ALLOW_UE_AND_NOTATION_EVENTS
Feature identifier: allow notation and unparsed entity events to be sent out of order.
|
protected static String |
DECLARATION_HANDLER
Property id: declaration handler.
|
protected static String |
DOM_NODE
Property id: DOM node.
|
protected ContentHandler |
fContentHandler
Content handler.
|
protected SymbolHash |
fDeclaredAttrs |
protected DeclHandler |
fDeclHandler
Decl handler.
|
protected DocumentHandler |
fDocumentHandler
Document handler.
|
protected DTDHandler |
fDTDHandler
DTD handler.
|
protected LexicalHandler |
fLexicalHandler
Lexical handler.
|
protected boolean |
fLexicalHandlerParameterEntities
Lexical handler parameter entities.
|
protected NamespaceContext |
fNamespaceContext
Namespace context
|
protected boolean |
fNamespacePrefixes
Namespace prefixes.
|
protected boolean |
fNamespaces
Namespaces.
|
protected boolean |
fParseInProgress
True if a parse is in progress.
|
protected QName |
fQName |
protected boolean |
fResolveDTDURIs
Resolve DTD URIs.
|
protected boolean |
fStandalone
Standalone document declaration.
|
protected boolean |
fUseEntityResolver2
Use EntityResolver2.
|
protected String |
fVersion |
protected boolean |
fXMLNSURIs
XMLNS URIs: Namespace declarations in the
http://www.w3.org/2000/xmlns/ namespace.
|
protected static String |
LEXICAL_HANDLER
Property id: lexical handler.
|
protected static String |
NAMESPACES
Feature identifier: namespaces.
|
protected static String |
STRING_INTERNING
Feature id: string interning.
|
fDocumentSource, fDTDContentModelSource, fDTDSource, fInDTD
ENTITY_RESOLVER, ERROR_HANDLER, fConfiguration
CONDITIONAL_IGNORE, CONDITIONAL_INCLUDE
OCCURS_ONE_OR_MORE, OCCURS_ZERO_OR_MORE, OCCURS_ZERO_OR_ONE, SEPARATOR_CHOICE, SEPARATOR_SEQUENCE
Modifier | Constructor and Description |
---|---|
protected |
AbstractSAXParser(XMLParserConfiguration config)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
attributeDecl(String elementName,
String attributeName,
String type,
String[] enumeration,
String defaultType,
XMLString defaultValue,
XMLString nonNormalizedDefaultValue,
Augmentations augs)
An attribute declaration.
|
void |
characters(XMLString text,
Augmentations augs)
Character content.
|
void |
comment(XMLString text,
Augmentations augs)
A comment.
|
void |
doctypeDecl(String rootElement,
String publicId,
String systemId,
Augmentations augs)
Notifies of the presence of the DOCTYPE line in the document.
|
void |
elementDecl(String name,
String contentModel,
Augmentations augs)
An element declaration.
|
void |
endCDATA(Augmentations augs)
The end of a CDATA section.
|
void |
endDocument(Augmentations augs)
The end of the document.
|
void |
endDTD(Augmentations augs)
The end of the DTD.
|
void |
endElement(QName element,
Augmentations augs)
The end of an element.
|
void |
endExternalSubset(Augmentations augs)
The end of the DTD external subset.
|
void |
endGeneralEntity(String name,
Augmentations augs)
This method notifies the end of an entity.
|
protected void |
endNamespaceMapping()
Send endPrefixMapping events
|
void |
endParameterEntity(String name,
Augmentations augs)
This method notifies the end of an entity.
|
void |
externalEntityDecl(String name,
XMLResourceIdentifier identifier,
Augmentations augs)
An external entity declaration.
|
AttributePSVI |
getAttributePSVI(int index)
Provides
AttributePSVI given the index of an attribute
information item in the current element's attribute list. |
AttributePSVI |
getAttributePSVIByName(String uri,
String localname)
Provides
AttributePSVI given the namespace name and the
local name of an attribute information item in the current element's
attribute list. |
ContentHandler |
getContentHandler()
Return the current content handler.
|
protected DeclHandler |
getDeclHandler()
Returns the DTD declaration event handler.
|
DTDHandler |
getDTDHandler()
Return the current DTD handler.
|
ElementPSVI |
getElementPSVI()
Provides the post schema validation item for the current element
information item.
|
EntityResolver |
getEntityResolver()
Return the current entity resolver.
|
ErrorHandler |
getErrorHandler()
Return the current error handler.
|
boolean |
getFeature(String featureId)
Query the state of a feature.
|
protected LexicalHandler |
getLexicalHandler()
Returns the lexical handler.
|
Object |
getProperty(String propertyId)
Query the value of a property.
|
void |
ignorableWhitespace(XMLString text,
Augmentations augs)
Ignorable whitespace.
|
void |
internalEntityDecl(String name,
XMLString text,
XMLString nonNormalizedText,
Augmentations augs)
An internal entity declaration.
|
void |
notationDecl(String name,
XMLResourceIdentifier identifier,
Augmentations augs)
A notation declaration
|
void |
parse(InputSource inputSource)
parse
|
void |
parse(String systemId)
Parses the input source specified by the given system identifier.
|
void |
processingInstruction(String target,
XMLString data,
Augmentations augs)
A processing instruction.
|
void |
reset()
Reset all components before parsing.
|
void |
setContentHandler(ContentHandler contentHandler)
Allow an application to register a content event handler.
|
protected void |
setDeclHandler(DeclHandler handler)
Set the DTD declaration event handler.
|
void |
setDocumentHandler(DocumentHandler documentHandler)
Allow an application to register a document event handler.
|
void |
setDTDHandler(DTDHandler dtdHandler)
Allow an application to register a DTD event handler.
|
void |
setEntityResolver(EntityResolver resolver)
Sets the resolver used to resolve external entities.
|
void |
setErrorHandler(ErrorHandler errorHandler)
Allow an application to register an error event handler.
|
void |
setFeature(String featureId,
boolean state)
Set the state of any feature in a SAX2 parser.
|
protected void |
setLexicalHandler(LexicalHandler handler)
Set the lexical event handler.
|
void |
setLocale(Locale locale)
Set the locale to use for messages.
|
void |
setProperty(String propertyId,
Object value)
Set the value of any property in a SAX2 parser.
|
void |
startCDATA(Augmentations augs)
The start of a CDATA section.
|
void |
startDocument(XMLLocator locator,
String encoding,
NamespaceContext namespaceContext,
Augmentations augs)
The start of the document.
|
void |
startElement(QName element,
XMLAttributes attributes,
Augmentations augs)
The start of an element.
|
void |
startExternalSubset(XMLResourceIdentifier identifier,
Augmentations augs)
The start of the DTD external subset.
|
void |
startGeneralEntity(String name,
XMLResourceIdentifier identifier,
String encoding,
Augmentations augs)
This method notifies of the start of an entity.
|
protected void |
startNamespaceMapping()
Send startPrefixMapping events
|
void |
startParameterEntity(String name,
XMLResourceIdentifier identifier,
String encoding,
Augmentations augs)
This method notifies of the start of parameter entity.
|
void |
unparsedEntityDecl(String name,
XMLResourceIdentifier identifier,
String notation,
Augmentations augs)
An unparsed entity declaration.
|
void |
xmlDecl(String version,
String encoding,
String standalone,
Augmentations augs)
Notifies of the presence of an XMLDecl line in the document.
|
any, element, empty, emptyElement, endAttlist, endConditional, endContentModel, endGroup, getDocumentSource, getDTDContentModelSource, getDTDSource, ignoredCharacters, occurrence, pcdata, separator, setDocumentSource, setDTDContentModelSource, setDTDSource, startAttlist, startConditional, startContentModel, startDTD, startGroup, textDecl
protected static final String NAMESPACES
protected static final String STRING_INTERNING
protected static final String ALLOW_UE_AND_NOTATION_EVENTS
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 fLexicalHandlerParameterEntities
protected boolean fStandalone
protected boolean fResolveDTDURIs
protected boolean fUseEntityResolver2
protected boolean fXMLNSURIs
protected ContentHandler fContentHandler
protected DocumentHandler fDocumentHandler
protected NamespaceContext fNamespaceContext
protected DTDHandler fDTDHandler
protected DeclHandler fDeclHandler
protected LexicalHandler fLexicalHandler
protected final QName fQName
protected boolean fParseInProgress
protected String fVersion
protected SymbolHash fDeclaredAttrs
protected AbstractSAXParser(XMLParserConfiguration config)
public void startDocument(XMLLocator locator, String encoding, NamespaceContext namespaceContext, 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).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 augmentationsXNIException
- Thrown by handler to signal an error.public void xmlDecl(String version, String encoding, String standalone, Augmentations augs) throws XNIException
xmlDecl
in interface XMLDocumentHandler
xmlDecl
in class AbstractXMLDocumentParser
version
- The XML version.encoding
- The IANA encoding name of the document, or null if
not specified.standalone
- The standalone value, or null if not specified.augs
- Additional information that may include infoset augmentationsXNIException
- 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 augmentationsXNIException
- 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 augmentationsXNIException
- 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 augmentationsXNIException
- 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 augmentationsXNIException
- 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 augmentationsXNIException
- 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 augmentationsXNIException
- 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 augmentationsXNIException
- 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 augmentationsXNIException
- 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 augmentationsXNIException
- 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 augmentationsXNIException
- 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 augmentationsXNIException
- 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 augmentationsXNIException
- 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
systemId
- The system identifier (URI).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
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.getErrorHandler()
public ErrorHandler getErrorHandler()
getErrorHandler
in interface XMLReader
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.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.getContentHandler()
public ContentHandler getContentHandler()
getContentHandler
in interface XMLReader
setContentHandler(org.xml.sax.ContentHandler)
public DTDHandler getDTDHandler()
getDTDHandler
in interface XMLReader
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.value
- 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
getDeclHandler()
,
setProperty(java.lang.String, java.lang.Object)
protected DeclHandler getDeclHandler() throws SAXNotRecognizedException, SAXNotSupportedException
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 handlerSAXNotRecognizedException
SAXNotSupportedException
getLexicalHandler()
,
setProperty(java.lang.String, java.lang.Object)
protected LexicalHandler getLexicalHandler() throws SAXNotRecognizedException, SAXNotSupportedException
protected final void startNamespaceMapping() throws SAXException
SAXException
protected final void endNamespaceMapping() throws SAXException
SAXException
public void reset() throws XNIException
reset
in class AbstractXMLDocumentParser
XNIException
- Thrown if an error occurs during initialization.public ElementPSVI getElementPSVI()
PSVIProvider
startElement
or
endElement
call. If the method is called outside of the
specified scope, the return value is undefined.getElementPSVI
in interface PSVIProvider
public AttributePSVI getAttributePSVI(int index)
PSVIProvider
AttributePSVI
given the index of an attribute
information item in the current element's attribute list. The method
must be called by an application while in the scope of the methods
which report the start and end of an element at a point where the
attribute list is available. For example, for SAX the method must be
called while in the scope of the document handler's
startElement
call. If the method is called outside of
the specified scope, the return value is undefined.getAttributePSVI
in interface PSVIProvider
index
- The attribute index.public AttributePSVI getAttributePSVIByName(String uri, String localname)
PSVIProvider
AttributePSVI
given the namespace name and the
local name of an attribute information item in the current element's
attribute list. The method must be called by an application while in
the scope of the methods which report the start and end of an element
at a point where the attribute list is available. For example, for
SAX the method must be called while in the scope of the document
handler's startElement
call. If the method is called
outside of the specified scope, the return value is undefined.getAttributePSVIByName
in interface PSVIProvider
uri
- The namespace name of an attribute.localname
- The local name of an attribute.Copyright © 2019 JBoss by Red Hat. All rights reserved.