com.sun.msv.verifier.jaxp
Class SAXParserFactoryImpl

java.lang.Object
  extended byjavax.xml.parsers.SAXParserFactory
      extended bycom.sun.msv.verifier.jaxp.SAXParserFactoryImpl

public class SAXParserFactoryImpl
extends SAXParserFactory

SAXParserFactory implementation that supports validation.

This class uses another SAXParserFactory implementation and adds the validation capability to it.

Author:
Kohsuke KAWAGUCHI

Constructor Summary
SAXParserFactoryImpl()
          Creates 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(InputSource _schema)
          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, Schema _schema)
           
SAXParserFactoryImpl(Schema schema)
          Creates a new instance by using a default SAXParserFactory implementation and the specified schema object.
SAXParserFactoryImpl(String schemaUrl)
          Creates a new instance that validates documents against the specified schema.
 
Method Summary
 boolean getFeature(String name)
           
 boolean isNamespaceAware()
           
 boolean isValidating()
           
 SAXParser newSAXParser()
           
 void setFeature(String name, boolean value)
           
 void setNamespaceAware(boolean awareness)
           
 void setValidating(boolean validating)
           
 
Methods inherited from class javax.xml.parsers.SAXParserFactory
newInstance
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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(SAXParserFactory _factory)
Creates a new instance by specifying the underlying SAXParserFactory implementation. This constructor does not set any schema.


SAXParserFactoryImpl

public SAXParserFactoryImpl(Schema schema)
Creates a new instance by using a default SAXParserFactory implementation and the specified schema object.


SAXParserFactoryImpl

public SAXParserFactoryImpl(File schemaAsFile)
                     throws VerifierConfigurationException,
                            SAXException,
                            IOException
Creates a new instance that validates documents against the specified schema.


SAXParserFactoryImpl

public SAXParserFactoryImpl(InputSource _schema)
                     throws VerifierConfigurationException,
                            SAXException,
                            IOException
Creates a new instance that validates documents against the specified schema.


SAXParserFactoryImpl

public SAXParserFactoryImpl(String schemaUrl)
                     throws VerifierConfigurationException,
                            SAXException,
                            IOException
Creates a new instance that validates documents against the specified schema.


SAXParserFactoryImpl

public SAXParserFactoryImpl(SAXParserFactory _factory,
                            Schema _schema)
Method Detail

getFeature

public boolean getFeature(String name)
                   throws ParserConfigurationException,
                          SAXNotRecognizedException,
                          SAXNotSupportedException
Throws:
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException

setFeature

public void setFeature(String name,
                       boolean value)
                throws ParserConfigurationException,
                       SAXNotRecognizedException,
                       SAXNotSupportedException
Throws:
ParserConfigurationException
SAXNotRecognizedException
SAXNotSupportedException

newSAXParser

public SAXParser newSAXParser()
                       throws ParserConfigurationException,
                              SAXException
Throws:
ParserConfigurationException
SAXException

setNamespaceAware

public void setNamespaceAware(boolean awareness)

isNamespaceAware

public boolean isNamespaceAware()

setValidating

public void setValidating(boolean validating)

isValidating

public boolean isValidating()