Package com.sun.msv.verifier.jaxp
Class SAXParserFactoryImpl
- java.lang.Object
-
- javax.xml.parsers.SAXParserFactory
-
- com.sun.msv.verifier.jaxp.SAXParserFactoryImpl
-
public class SAXParserFactoryImpl extends javax.xml.parsers.SAXParserFactorySAXParserFactory implementation that supports validation.This class uses another SAXParserFactory implementation and adds the validation capability to it.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.xml.parsers.SAXParserFactorycoreActual SAXParserFactory implementation.private org.iso_relax.verifier.VerifierFactoryjarvFactoryJARV VerifierFactory implementation, which will be used to parse schemas.private org.iso_relax.verifier.SchemaschemaJARV Schema object which is associated with this factory, or null.
-
Constructor Summary
Constructors Constructor Description SAXParserFactoryImpl()Creates a new instance by using the default SAXParserFactory implementation as the underlying parser.SAXParserFactoryImpl(java.io.File schemaAsFile)Creates a new instance that validates documents against the specified schema.SAXParserFactoryImpl(java.lang.String schemaUrl)Creates a new instance that validates documents against the specified schema.SAXParserFactoryImpl(javax.xml.parsers.SAXParserFactory _factory)Creates a new instance by specifying the underlying SAXParserFactory implementation.SAXParserFactoryImpl(javax.xml.parsers.SAXParserFactory _factory, org.iso_relax.verifier.Schema _schema)SAXParserFactoryImpl(org.iso_relax.verifier.Schema schema)Creates a new instance by using a default SAXParserFactory implementation and the specified schema object.SAXParserFactoryImpl(org.xml.sax.InputSource _schema)Creates a new instance that validates documents against the specified schema.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetFeature(java.lang.String name)booleanisNamespaceAware()booleanisValidating()javax.xml.parsers.SAXParsernewSAXParser()voidsetFeature(java.lang.String name, boolean value)voidsetNamespaceAware(boolean awareness)voidsetValidating(boolean validating)
-
-
-
Field Detail
-
core
private final javax.xml.parsers.SAXParserFactory core
Actual SAXParserFactory implementation.
-
jarvFactory
private final org.iso_relax.verifier.VerifierFactory jarvFactory
JARV VerifierFactory implementation, which will be used to parse schemas.
-
schema
private org.iso_relax.verifier.Schema schema
JARV Schema object which is associated with this factory, or null.
-
-
Constructor Detail
-
SAXParserFactoryImpl
public SAXParserFactoryImpl()
Creates a new instance by using the default SAXParserFactory implementation as the underlying parser. This constructor does not set any schema.
-
SAXParserFactoryImpl
public SAXParserFactoryImpl(javax.xml.parsers.SAXParserFactory _factory)
Creates a new instance by specifying the underlying SAXParserFactory implementation. This constructor does not set any schema.
-
SAXParserFactoryImpl
public SAXParserFactoryImpl(org.iso_relax.verifier.Schema schema)
Creates a new instance by using a default SAXParserFactory implementation and the specified schema object.
-
SAXParserFactoryImpl
public SAXParserFactoryImpl(java.io.File schemaAsFile) throws org.iso_relax.verifier.VerifierConfigurationException, org.xml.sax.SAXException, java.io.IOExceptionCreates a new instance that validates documents against the specified schema.- Throws:
org.iso_relax.verifier.VerifierConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOException
-
SAXParserFactoryImpl
public SAXParserFactoryImpl(org.xml.sax.InputSource _schema) throws org.iso_relax.verifier.VerifierConfigurationException, org.xml.sax.SAXException, java.io.IOExceptionCreates a new instance that validates documents against the specified schema.- Throws:
org.iso_relax.verifier.VerifierConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOException
-
SAXParserFactoryImpl
public SAXParserFactoryImpl(java.lang.String schemaUrl) throws org.iso_relax.verifier.VerifierConfigurationException, org.xml.sax.SAXException, java.io.IOExceptionCreates a new instance that validates documents against the specified schema.- Throws:
org.iso_relax.verifier.VerifierConfigurationExceptionorg.xml.sax.SAXExceptionjava.io.IOException
-
SAXParserFactoryImpl
public SAXParserFactoryImpl(javax.xml.parsers.SAXParserFactory _factory, org.iso_relax.verifier.Schema _schema)
-
-
Method Detail
-
getFeature
public boolean getFeature(java.lang.String name) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException- Specified by:
getFeaturein classjavax.xml.parsers.SAXParserFactory- Throws:
javax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
setFeature
public void setFeature(java.lang.String name, boolean value) throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXNotRecognizedException, org.xml.sax.SAXNotSupportedException- Specified by:
setFeaturein classjavax.xml.parsers.SAXParserFactory- Throws:
javax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXNotRecognizedExceptionorg.xml.sax.SAXNotSupportedException
-
newSAXParser
public javax.xml.parsers.SAXParser newSAXParser() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException- Specified by:
newSAXParserin classjavax.xml.parsers.SAXParserFactory- Throws:
javax.xml.parsers.ParserConfigurationExceptionorg.xml.sax.SAXException
-
setNamespaceAware
public void setNamespaceAware(boolean awareness)
- Overrides:
setNamespaceAwarein classjavax.xml.parsers.SAXParserFactory
-
isNamespaceAware
public boolean isNamespaceAware()
- Overrides:
isNamespaceAwarein classjavax.xml.parsers.SAXParserFactory
-
setValidating
public void setValidating(boolean validating)
- Overrides:
setValidatingin classjavax.xml.parsers.SAXParserFactory
-
isValidating
public boolean isValidating()
- Overrides:
isValidatingin classjavax.xml.parsers.SAXParserFactory
-
-