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,
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 SAXParser
SAXException
public XMLReader getXMLReader()
getXMLReader
in class SAXParser
public boolean isNamespaceAware()
isNamespaceAware
in class SAXParser
public boolean isValidating()
isValidating
in class SAXParser
public boolean isXIncludeAware()
isXIncludeAware
in class SAXParser
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty
in class SAXParser
SAXNotRecognizedException
SAXNotSupportedException
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty
in class SAXParser
SAXNotRecognizedException
SAXNotSupportedException
public void parse(InputSource is, DefaultHandler dh) throws SAXException, IOException
parse
in class SAXParser
SAXException
IOException
public void parse(InputSource is, HandlerBase hb) throws SAXException, IOException
parse
in class SAXParser
SAXException
IOException
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 © 2018 JBoss by Red Hat. All rights reserved.