Package com.ctc.wstx.msv
Class BaseSchemaFactory
- java.lang.Object
-
- org.codehaus.stax2.validation.XMLValidationSchemaFactory
-
- com.ctc.wstx.msv.BaseSchemaFactory
-
- Direct Known Subclasses:
RelaxNGSchemaFactory,W3CSchemaFactory
public abstract class BaseSchemaFactory extends org.codehaus.stax2.validation.XMLValidationSchemaFactoryShared base class extended by concrete schema factory implementations.
-
-
Field Summary
Fields Modifier and Type Field Description protected ValidatorConfigmConfigCurrent configurations for this factoryprotected static SAXParserFactorysSaxFactory
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseSchemaFactory(String schemaType)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description org.codehaus.stax2.validation.XMLValidationSchemacreateSchema(File f)org.codehaus.stax2.validation.XMLValidationSchemacreateSchema(InputStream in, String encoding, String publicId, String systemId)org.codehaus.stax2.validation.XMLValidationSchemacreateSchema(Reader r, String publicId, String systemId)org.codehaus.stax2.validation.XMLValidationSchemacreateSchema(URL url)ObjectgetProperty(String propName)protected static SAXParserFactorygetSaxFactory()We will essentially share a singleton sax parser factory; the reason being that constructing (or, rather, locating implementation class) is bit expensive.booleanisPropertySupported(String propName)protected abstract org.codehaus.stax2.validation.XMLValidationSchemaloadSchema(InputSource src, Object sysRef)booleansetProperty(String propName, Object value)
-
-
-
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:
isPropertySupportedin classorg.codehaus.stax2.validation.XMLValidationSchemaFactory
-
setProperty
public boolean setProperty(String propName, Object value)
- Specified by:
setPropertyin classorg.codehaus.stax2.validation.XMLValidationSchemaFactory
-
getProperty
public Object getProperty(String propName)
- Specified by:
getPropertyin classorg.codehaus.stax2.validation.XMLValidationSchemaFactory
-
createSchema
public org.codehaus.stax2.validation.XMLValidationSchema createSchema(InputStream in, String encoding, String publicId, String systemId) throws XMLStreamException
- Specified by:
createSchemain classorg.codehaus.stax2.validation.XMLValidationSchemaFactory- Throws:
XMLStreamException
-
createSchema
public org.codehaus.stax2.validation.XMLValidationSchema createSchema(Reader r, String publicId, String systemId) throws XMLStreamException
- Specified by:
createSchemain classorg.codehaus.stax2.validation.XMLValidationSchemaFactory- Throws:
XMLStreamException
-
createSchema
public org.codehaus.stax2.validation.XMLValidationSchema createSchema(URL url) throws XMLStreamException
- Specified by:
createSchemain classorg.codehaus.stax2.validation.XMLValidationSchemaFactory- Throws:
XMLStreamException
-
createSchema
public org.codehaus.stax2.validation.XMLValidationSchema createSchema(File f) throws XMLStreamException
- Specified by:
createSchemain classorg.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.
-
-