Package com.sun.msv.verifier.jaxp
Class SAXParserFactoryImpl
java.lang.Object
javax.xml.parsers.SAXParserFactory
com.sun.msv.verifier.jaxp.SAXParserFactoryImpl
SAXParserFactory implementation that supports validation.
This class uses another SAXParserFactory implementation and adds the validation capability to it.
- Author:
- Kohsuke KAWAGUCHI
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new instance by using the default SAXParserFactory implementation as the underlying parser.SAXParserFactoryImpl
(File schemaAsFile) Creates a new instance that validates documents against the specified schema.SAXParserFactoryImpl
(String schemaUrl) Creates a new instance that validates documents against the specified schema.SAXParserFactoryImpl
(SAXParserFactory _factory) Creates a new instance by specifying the underlying SAXParserFactory implementation.SAXParserFactoryImpl
(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
(InputSource _schema) Creates a new instance that validates documents against the specified schema. -
Method Summary
Modifier and TypeMethodDescriptionboolean
getFeature
(String name) boolean
boolean
void
setFeature
(String name, boolean value) void
setNamespaceAware
(boolean awareness) void
setValidating
(boolean validating) Methods inherited from class javax.xml.parsers.SAXParserFactory
getSchema, isXIncludeAware, newDefaultInstance, newDefaultNSInstance, newInstance, newInstance, newNSInstance, newNSInstance, setSchema, setXIncludeAware
-
Constructor Details
-
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
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(File schemaAsFile) throws org.iso_relax.verifier.VerifierConfigurationException, SAXException, IOException Creates a new instance that validates documents against the specified schema.- Throws:
org.iso_relax.verifier.VerifierConfigurationException
SAXException
IOException
-
SAXParserFactoryImpl
public SAXParserFactoryImpl(InputSource _schema) throws org.iso_relax.verifier.VerifierConfigurationException, SAXException, IOException Creates a new instance that validates documents against the specified schema.- Throws:
org.iso_relax.verifier.VerifierConfigurationException
SAXException
IOException
-
SAXParserFactoryImpl
public SAXParserFactoryImpl(String schemaUrl) throws org.iso_relax.verifier.VerifierConfigurationException, SAXException, IOException Creates a new instance that validates documents against the specified schema.- Throws:
org.iso_relax.verifier.VerifierConfigurationException
SAXException
IOException
-
SAXParserFactoryImpl
-
-
Method Details
-
getFeature
public boolean getFeature(String name) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException - Specified by:
getFeature
in classSAXParserFactory
- Throws:
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws ParserConfigurationException, SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setFeature
in classSAXParserFactory
- Throws:
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException
-
newSAXParser
- Specified by:
newSAXParser
in classSAXParserFactory
- Throws:
ParserConfigurationException
SAXException
-
setNamespaceAware
public void setNamespaceAware(boolean awareness) - Overrides:
setNamespaceAware
in classSAXParserFactory
-
isNamespaceAware
public boolean isNamespaceAware()- Overrides:
isNamespaceAware
in classSAXParserFactory
-
setValidating
public void setValidating(boolean validating) - Overrides:
setValidating
in classSAXParserFactory
-
isValidating
public boolean isValidating()- Overrides:
isValidating
in classSAXParserFactory
-