Package com.sun.msv.verifier.jaxp
Class SAXParserImpl
- java.lang.Object
-
- javax.xml.parsers.SAXParser
-
- com.sun.msv.verifier.jaxp.SAXParserImpl
-
class SAXParserImpl extends javax.xml.parsers.SAXParserSAXParser implementation that supports validation.This class uses another SAXParser implementation and adds the validation capability to it.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.xml.parsers.SAXParsercoreThe underlying SAX parser.private org.iso_relax.verifier.VerifierFactoryfactoryA reference to VerifierFactory that can be used to parse a schema.private org.iso_relax.verifier.VerifierverifierJARV verifier object that performs the validation for this SAXParserImpl.
-
Constructor Summary
Constructors Constructor Description SAXParserImpl(javax.xml.parsers.SAXParser core, org.iso_relax.verifier.VerifierFactory _jarvFactory, org.iso_relax.verifier.Verifier _verifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description org.xml.sax.ParsergetParser()Deprecated.java.lang.ObjectgetProperty(java.lang.String name)org.xml.sax.XMLReadergetXMLReader()booleanisNamespaceAware()booleanisValidating()voidsetProperty(java.lang.String name, java.lang.Object value)
-
-
-
Field Detail
-
core
private final javax.xml.parsers.SAXParser core
The underlying SAX parser.
-
verifier
private org.iso_relax.verifier.Verifier verifier
JARV verifier object that performs the validation for this SAXParserImpl. This field is null when no schema is set.
-
factory
private final org.iso_relax.verifier.VerifierFactory factory
A reference to VerifierFactory that can be used to parse a schema.
-
-
Method Detail
-
getParser
public org.xml.sax.Parser getParser() throws org.xml.sax.SAXExceptionDeprecated.- Specified by:
getParserin classjavax.xml.parsers.SAXParser- Throws:
org.xml.sax.SAXException
-
getProperty
public java.lang.Object getProperty(java.lang.String name) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException- Specified by:
getPropertyin classjavax.xml.parsers.SAXParser- Throws:
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
setProperty
public void setProperty(java.lang.String name, java.lang.Object value) throws org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException- Specified by:
setPropertyin classjavax.xml.parsers.SAXParser- Throws:
org.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
getXMLReader
public org.xml.sax.XMLReader getXMLReader() throws org.xml.sax.SAXException- Specified by:
getXMLReaderin classjavax.xml.parsers.SAXParser- Throws:
org.xml.sax.SAXException
-
isNamespaceAware
public boolean isNamespaceAware()
- Specified by:
isNamespaceAwarein classjavax.xml.parsers.SAXParser
-
isValidating
public boolean isValidating()
- Specified by:
isValidatingin classjavax.xml.parsers.SAXParser
-
-