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
Fields Modifier and Type Field Description protected ValidatorConfig
mConfig
Current configurations for this factoryprotected static SAXParserFactory
sSaxFactory
-
Constructor Summary
Constructors Modifier Constructor Description protected
BaseSchemaFactory(String schemaType)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
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 classorg.codehaus.stax2.validation.XMLValidationSchemaFactory
-
setProperty
public boolean setProperty(String propName, Object value)
- Specified by:
setProperty
in classorg.codehaus.stax2.validation.XMLValidationSchemaFactory
-
getProperty
public Object getProperty(String propName)
- Specified by:
getProperty
in 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:
createSchema
in 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:
createSchema
in classorg.codehaus.stax2.validation.XMLValidationSchemaFactory
- Throws:
XMLStreamException
-
createSchema
public org.codehaus.stax2.validation.XMLValidationSchema createSchema(URL url) throws XMLStreamException
- Specified by:
createSchema
in classorg.codehaus.stax2.validation.XMLValidationSchemaFactory
- Throws:
XMLStreamException
-
createSchema
public org.codehaus.stax2.validation.XMLValidationSchema createSchema(File f) throws XMLStreamException
- Specified by:
createSchema
in 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.
-
-