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 XMLValidationSchemaFactory
Shared base class extended by concrete schema factory implementations.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
sSaxFactory
protected static javax.xml.parsers.SAXParserFactory sSaxFactory
mConfig
protected final ValidatorConfig mConfig
- Current configurations for this factory
BaseSchemaFactory
protected BaseSchemaFactory()
isPropertySupported
public boolean isPropertySupported(java.lang.String propName)
- Specified by:
isPropertySupported in class XMLValidationSchemaFactory
setProperty
public boolean setProperty(java.lang.String propName,
java.lang.Object value)
- Specified by:
setProperty in class XMLValidationSchemaFactory
- Parameters:
propName - Name of property to setvalue - Value to set property to
- Returns:
- True if setting succeeded; false if property was recognized
but could not be changed to specified value, or if it was not
recognized but the implementation did not throw an exception.
getProperty
public java.lang.Object getProperty(java.lang.String propName)
- Specified by:
getProperty in class XMLValidationSchemaFactory
createSchema
public XMLValidationSchema createSchema(java.io.InputStream in,
java.lang.String encoding,
java.lang.String publicId,
java.lang.String systemId)
throws javax.xml.stream.XMLStreamException
- Specified by:
createSchema in class XMLValidationSchemaFactory
- Throws:
javax.xml.stream.XMLStreamException
createSchema
public XMLValidationSchema createSchema(java.io.Reader r,
java.lang.String publicId,
java.lang.String systemId)
throws javax.xml.stream.XMLStreamException
- Specified by:
createSchema in class XMLValidationSchemaFactory
- Throws:
javax.xml.stream.XMLStreamException
createSchema
public XMLValidationSchema createSchema(java.net.URL url)
throws javax.xml.stream.XMLStreamException
- Specified by:
createSchema in class XMLValidationSchemaFactory
- Throws:
javax.xml.stream.XMLStreamException
createSchema
public XMLValidationSchema createSchema(java.io.File f)
throws javax.xml.stream.XMLStreamException
- Specified by:
createSchema in class XMLValidationSchemaFactory
- Throws:
javax.xml.stream.XMLStreamException
loadSchema
protected abstract XMLValidationSchema loadSchema(org.xml.sax.InputSource src,
java.lang.Object sysRef)
throws javax.xml.stream.XMLStreamException
- Throws:
javax.xml.stream.XMLStreamException
getSaxFactory
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.