com.ctc.wstx.msv
public abstract class BaseSchemaFactory extends XMLValidationSchemaFactory
Modifier and Type | Field and Description |
---|---|
protected ValidatorConfig |
mConfig
Current configurations for this factory
|
protected static javax.xml.parsers.SAXParserFactory |
sSaxFactory |
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
Modifier | Constructor and Description |
---|---|
protected |
BaseSchemaFactory(java.lang.String schemaType) |
Modifier and Type | Method and Description |
---|---|
XMLValidationSchema |
createSchema(java.io.File f) |
XMLValidationSchema |
createSchema(java.io.InputStream in,
java.lang.String encoding,
java.lang.String publicId,
java.lang.String systemId) |
XMLValidationSchema |
createSchema(java.io.Reader r,
java.lang.String publicId,
java.lang.String systemId) |
XMLValidationSchema |
createSchema(java.net.URL url) |
java.lang.Object |
getProperty(java.lang.String propName) |
protected static javax.xml.parsers.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(java.lang.String propName) |
protected abstract XMLValidationSchema |
loadSchema(org.xml.sax.InputSource src,
java.lang.Object sysRef) |
boolean |
setProperty(java.lang.String propName,
java.lang.Object value) |
createSchema, createSchema, createSchema, getSchemaType, newInstance, newInstance
protected static javax.xml.parsers.SAXParserFactory sSaxFactory
protected final ValidatorConfig mConfig
public boolean isPropertySupported(java.lang.String propName)
isPropertySupported
in class XMLValidationSchemaFactory
public boolean setProperty(java.lang.String propName, java.lang.Object value)
setProperty
in class XMLValidationSchemaFactory
propName
- Name of property to setvalue
- Value to set property topublic java.lang.Object getProperty(java.lang.String propName)
getProperty
in class XMLValidationSchemaFactory
public XMLValidationSchema createSchema(java.io.InputStream in, java.lang.String encoding, java.lang.String publicId, java.lang.String systemId) throws javax.xml.stream.XMLStreamException
createSchema
in class XMLValidationSchemaFactory
javax.xml.stream.XMLStreamException
public XMLValidationSchema createSchema(java.io.Reader r, java.lang.String publicId, java.lang.String systemId) throws javax.xml.stream.XMLStreamException
createSchema
in class XMLValidationSchemaFactory
javax.xml.stream.XMLStreamException
public XMLValidationSchema createSchema(java.net.URL url) throws javax.xml.stream.XMLStreamException
createSchema
in class XMLValidationSchemaFactory
javax.xml.stream.XMLStreamException
public XMLValidationSchema createSchema(java.io.File f) throws javax.xml.stream.XMLStreamException
createSchema
in class XMLValidationSchemaFactory
javax.xml.stream.XMLStreamException
protected abstract XMLValidationSchema loadSchema(org.xml.sax.InputSource src, java.lang.Object sysRef) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
protected static javax.xml.parsers.SAXParserFactory getSaxFactory()