public class SAXParserImpl extends SAXParser implements JAXPConstants, PSVIProvider
javax.xml.parsers.SAXParser.| Modifier and Type | Class and Description |
|---|---|
static class |
SAXParserImpl.JAXPSAXParser
Extension of SAXParser.
|
JAXP_SCHEMA_LANGUAGE, JAXP_SCHEMA_SOURCE, W3C_XML_SCHEMA| Modifier and Type | Method and Description |
|---|---|
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. |
ElementPSVI |
getElementPSVI()
Provides the post schema validation item for the current element
information item.
|
Parser |
getParser() |
Object |
getProperty(String name)
returns the particular property requested for in the underlying
implementation of org.xml.sax.XMLReader.
|
Schema |
getSchema() |
XMLReader |
getXMLReader()
Returns the XMLReader that is encapsulated by the implementation of
this class.
|
boolean |
isNamespaceAware() |
boolean |
isValidating() |
boolean |
isXIncludeAware()
Gets the XInclude processing mode for this parser
|
void |
parse(InputSource is,
org.xml.sax.helpers.DefaultHandler dh) |
void |
parse(InputSource is,
HandlerBase hb) |
void |
reset() |
void |
setProperty(String name,
Object value)
Sets the particular property in the underlying implementation of
org.xml.sax.XMLReader.
|
public Parser getParser() throws SAXException
getParser in class SAXParserSAXExceptionpublic XMLReader getXMLReader()
getXMLReader in class SAXParserpublic boolean isNamespaceAware()
isNamespaceAware in class SAXParserpublic boolean isValidating()
isValidating in class SAXParserpublic boolean isXIncludeAware()
isXIncludeAware in class SAXParserpublic void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty in class SAXParserSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty in class SAXParserSAXNotRecognizedExceptionSAXNotSupportedExceptionpublic void parse(InputSource is, org.xml.sax.helpers.DefaultHandler dh) throws SAXException, IOException
parse in class SAXParserSAXExceptionIOExceptionpublic void parse(InputSource is, HandlerBase hb) throws SAXException, IOException
parse in class SAXParserSAXExceptionIOExceptionpublic ElementPSVI getElementPSVI()
PSVIProviderstartElement or
endElement call. If the method is called outside of the
specified scope, the return value is undefined.getElementPSVI in interface PSVIProviderpublic AttributePSVI getAttributePSVI(int index)
PSVIProviderAttributePSVI 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 PSVIProviderindex - The attribute index.public AttributePSVI getAttributePSVIByName(String uri, String localname)
PSVIProviderAttributePSVI 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 PSVIProvideruri - The namespace name of an attribute.localname - The local name of an attribute.Copyright © 2012 JBoss by Red Hat. All Rights Reserved.