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, mSchemaType, 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(File f) |
XMLValidationSchema |
createSchema(InputStream in,
String encoding,
String publicId,
String systemId) |
XMLValidationSchema |
createSchema(Reader r,
String publicId,
String systemId) |
XMLValidationSchema |
createSchema(URL url) |
protected XMLValidationSchema |
doCreateSchema(ReaderConfig rcfg,
InputBootstrapper bs,
String publicId,
String systemId,
URL ctxt)
The main validator construction method, called by all externally
visible methods.
|
Object |
getProperty(String propName) |
boolean |
isPropertySupported(String propName) |
boolean |
setProperty(String propName,
Object value) |
createSchema, createSchema, createSchema, getSchemaType, newInstance, newInstanceprotected final ValidatorConfig mSchemaConfig
protected final ReaderConfig mReaderConfig
public boolean isPropertySupported(String propName)
isPropertySupported in class XMLValidationSchemaFactorypublic boolean setProperty(String propName, Object value)
setProperty in class XMLValidationSchemaFactorypropName - Name of property to setvalue - Value to set property topublic Object getProperty(String propName)
getProperty in class XMLValidationSchemaFactorypublic XMLValidationSchema createSchema(InputStream in, String encoding, String publicId, String systemId) throws XMLStreamException
createSchema in class XMLValidationSchemaFactoryXMLStreamExceptionpublic XMLValidationSchema createSchema(Reader r, String publicId, String systemId) throws XMLStreamException
createSchema in class XMLValidationSchemaFactoryXMLStreamExceptionpublic XMLValidationSchema createSchema(URL url) throws XMLStreamException
createSchema in class XMLValidationSchemaFactoryXMLStreamExceptionpublic XMLValidationSchema createSchema(File f) throws XMLStreamException
createSchema in class XMLValidationSchemaFactoryXMLStreamExceptionprotected XMLValidationSchema doCreateSchema(ReaderConfig rcfg, InputBootstrapper bs, String publicId, String systemId, URL ctxt) throws XMLStreamException
XMLStreamException