com.ctc.wstx.msv
Class BaseSchemaFactory

java.lang.Object
  extended by org.codehaus.stax2.validation.XMLValidationSchemaFactory
      extended by com.ctc.wstx.msv.BaseSchemaFactory
Direct Known Subclasses:
RelaxNGSchemaFactory, W3CSchemaFactory

public abstract class BaseSchemaFactory
extends org.codehaus.stax2.validation.XMLValidationSchemaFactory

Shared base class extended by concrete schema factory implementations.


Field Summary
protected  ValidatorConfig mConfig
          Current configurations for this factory
protected static SAXParserFactory sSaxFactory
           
 
Fields inherited from class org.codehaus.stax2.validation.XMLValidationSchemaFactory
INTERNAL_ID_SCHEMA_DTD, INTERNAL_ID_SCHEMA_RELAXNG, INTERNAL_ID_SCHEMA_TREX, INTERNAL_ID_SCHEMA_W3C, mSchemaType, P_ENABLE_CACHING, P_IS_NAMESPACE_AWARE, SERVICE_DEFINITION_PATH, SYSTEM_PROPERTY_FOR_IMPL
 
Constructor Summary
protected BaseSchemaFactory(String schemaType)
           
 
Method Summary
 org.codehaus.stax2.validation.XMLValidationSchema createSchema(File f)
           
 org.codehaus.stax2.validation.XMLValidationSchema createSchema(InputStream in, String encoding, String publicId, String systemId)
           
 org.codehaus.stax2.validation.XMLValidationSchema createSchema(Reader r, String publicId, String systemId)
           
 org.codehaus.stax2.validation.XMLValidationSchema createSchema(URL url)
           
 Object getProperty(String propName)
           
protected static SAXParserFactory getSaxFactory()
          We will essentially share a singleton sax parser factory; the reason being that constructing (or, rather, locating implementation class) is bit expensive.
 boolean isPropertySupported(String propName)
           
protected abstract  org.codehaus.stax2.validation.XMLValidationSchema loadSchema(InputSource src, Object sysRef)
           
 boolean setProperty(String propName, Object value)
           
 
Methods inherited from class org.codehaus.stax2.validation.XMLValidationSchemaFactory
createSchema, createSchema, createSchema, getSchemaType, newInstance, newInstance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sSaxFactory

protected static SAXParserFactory sSaxFactory

mConfig

protected final ValidatorConfig mConfig
Current configurations for this factory

Constructor Detail

BaseSchemaFactory

protected BaseSchemaFactory(String schemaType)
Method Detail

isPropertySupported

public boolean isPropertySupported(String propName)
Specified by:
isPropertySupported in class org.codehaus.stax2.validation.XMLValidationSchemaFactory

setProperty

public boolean setProperty(String propName,
                           Object value)
Specified by:
setProperty in class org.codehaus.stax2.validation.XMLValidationSchemaFactory

getProperty

public Object getProperty(String propName)
Specified by:
getProperty in class org.codehaus.stax2.validation.XMLValidationSchemaFactory

createSchema

public org.codehaus.stax2.validation.XMLValidationSchema createSchema(InputStream in,
                                                                      String encoding,
                                                                      String publicId,
                                                                      String systemId)
                                                               throws XMLStreamException
Specified by:
createSchema in class org.codehaus.stax2.validation.XMLValidationSchemaFactory
Throws:
XMLStreamException

createSchema

public org.codehaus.stax2.validation.XMLValidationSchema createSchema(Reader r,
                                                                      String publicId,
                                                                      String systemId)
                                                               throws XMLStreamException
Specified by:
createSchema in class org.codehaus.stax2.validation.XMLValidationSchemaFactory
Throws:
XMLStreamException

createSchema

public org.codehaus.stax2.validation.XMLValidationSchema createSchema(URL url)
                                                               throws XMLStreamException
Specified by:
createSchema in class org.codehaus.stax2.validation.XMLValidationSchemaFactory
Throws:
XMLStreamException

createSchema

public org.codehaus.stax2.validation.XMLValidationSchema createSchema(File f)
                                                               throws XMLStreamException
Specified by:
createSchema in class org.codehaus.stax2.validation.XMLValidationSchemaFactory
Throws:
XMLStreamException

loadSchema

protected abstract org.codehaus.stax2.validation.XMLValidationSchema loadSchema(InputSource src,
                                                                                Object sysRef)
                                                                         throws XMLStreamException
Throws:
XMLStreamException

getSaxFactory

protected static SAXParserFactory getSaxFactory()
We will essentially share a singleton sax parser factory; the reason being that constructing (or, rather, locating implementation class) is bit expensive.



Copyright © 2011 Codehaus. All Rights Reserved.