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.XMLValidationSchemaFactory
Shared base class extended by concrete schema factory implementations.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ValidatorConfigCurrent configurations for this factoryprotected static SAXParserFactoryFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.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) getProperty(String propName) protected static SAXParserFactoryWe 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) Methods inherited from class org.codehaus.stax2.validation.XMLValidationSchemaFactory
createSchema, createSchema, createSchema, getSchemaType, newInstance, newInstance
-
Field Details
-
sSaxFactory
-
mConfig
Current configurations for this factory
-
-
Constructor Details
-
BaseSchemaFactory
-
-
Method Details
-
isPropertySupported
- Specified by:
isPropertySupportedin classorg.codehaus.stax2.validation.XMLValidationSchemaFactory
-
setProperty
- Specified by:
setPropertyin classorg.codehaus.stax2.validation.XMLValidationSchemaFactory
-
getProperty
- 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
We will essentially share a singleton sax parser factory; the reason being that constructing (or, rather, locating implementation class) is bit expensive.
-