Package com.ctc.wstx.dtd
Class DTDSchemaFactory
java.lang.Object
org.codehaus.stax2.validation.XMLValidationSchemaFactory
com.ctc.wstx.dtd.DTDSchemaFactory
public class DTDSchemaFactory
extends org.codehaus.stax2.validation.XMLValidationSchemaFactory
Factory for creating DTD validator schema objects (shareable stateless
"blueprints" for creating actual validators).
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ReaderConfig
This configuration object is used (instead of a more specific one) since the actual DTD reader uses such configuration object.(package private) static final SymbolTable
'Root' symbol table, used for creating actual symbol table instances, but never as is.protected final ValidatorConfig
Current configurations for this factoryFields inherited from class org.codehaus.stax2.validation.XMLValidationSchemaFactory
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ReaderConfig
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) protected org.codehaus.stax2.validation.XMLValidationSchema
doCreateSchema
(ReaderConfig rcfg, InputBootstrapper bs, String publicId, String systemIdStr, URL ctxt) The main validator construction method, called by all externally visible methods.getProperty
(String propName) boolean
isPropertySupported
(String propName) boolean
setProperty
(String propName, Object value) Methods inherited from class org.codehaus.stax2.validation.XMLValidationSchemaFactory
createSchema, createSchema, createSchema, getSchemaType, newInstance, newInstance
-
Field Details
-
mRootSymbols
'Root' symbol table, used for creating actual symbol table instances, but never as is. -
mSchemaConfig
Current configurations for this factory -
mReaderConfig
This configuration object is used (instead of a more specific one) since the actual DTD reader uses such configuration object.
-
-
Constructor Details
-
DTDSchemaFactory
public DTDSchemaFactory()
-
-
Method Details
-
isPropertySupported
- Specified by:
isPropertySupported
in classorg.codehaus.stax2.validation.XMLValidationSchemaFactory
-
setProperty
- Specified by:
setProperty
in classorg.codehaus.stax2.validation.XMLValidationSchemaFactory
-
getProperty
- 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
-
doCreateSchema
protected org.codehaus.stax2.validation.XMLValidationSchema doCreateSchema(ReaderConfig rcfg, InputBootstrapper bs, String publicId, String systemIdStr, URL ctxt) throws XMLStreamException The main validator construction method, called by all externally visible methods.- Throws:
XMLStreamException
-
createPrivateReaderConfig
-