public class DTDSchemaFactory extends XMLValidationSchemaFactory
Due to close coupling of XML and DTD, some of the functionality implemented (like that of reading internal subsets embedded in XML documents) is only accessible by core Woodstox. The externally accessible
Modifier and Type | Field and Description |
---|---|
protected ReaderConfig |
mReaderConfig
This configuration object is used (instead of a more specific one)
since the actual DTD reader uses such configuration object.
|
protected ValidatorConfig |
mSchemaConfig
Current configurations for this factory
|
INTERNAL_ID_SCHEMA_DTD, INTERNAL_ID_SCHEMA_RELAXNG, INTERNAL_ID_SCHEMA_TREX, INTERNAL_ID_SCHEMA_W3C, P_ENABLE_CACHING, P_IS_NAMESPACE_AWARE, SERVICE_DEFINITION_PATH, SYSTEM_PROPERTY_FOR_IMPL
Constructor and Description |
---|
DTDSchemaFactory() |
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) |
protected XMLValidationSchema |
doCreateSchema(ReaderConfig rcfg,
InputBootstrapper bs,
java.lang.String publicId,
java.lang.String systemId,
java.net.URL ctxt)
The main validator construction method, called by all externally
visible methods.
|
java.lang.Object |
getProperty(java.lang.String propName) |
boolean |
isPropertySupported(java.lang.String propName) |
boolean |
setProperty(java.lang.String propName,
java.lang.Object value) |
createSchema, createSchema, createSchema, newInstance, newInstance
protected final ValidatorConfig mSchemaConfig
protected final ReaderConfig mReaderConfig
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 XMLValidationSchema doCreateSchema(ReaderConfig rcfg, InputBootstrapper bs, java.lang.String publicId, java.lang.String systemId, java.net.URL ctxt) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException