Top Description Fields Constructors Methods
com.ctc.wstx.dtd

public Class DTDSchemaFactory

extends XMLValidationSchemaFactory
Class Inheritance
Annotations
@ServiceProvider:XMLValidationSchemaFactory
Imports
java.io.*, java.net.URL, javax.xml.stream.*, aQute.bnd.annotation.spi.ServiceProvider, org.codehaus.stax2.validation.*, com.ctc.wstx.api.ReaderConfig, .ValidatorConfig, com.ctc.wstx.cfg.XmlConsts, com.ctc.wstx.exc.WstxIOException, com.ctc.wstx.io.*, com.ctc.wstx.util.DefaultXmlSymbolTable, .SymbolTable, .URLUtil

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

Modifier and TypeField and Description
protected final ReaderConfig
mReaderConfig

This configuration object is used (instead of a more specific one) since the actual DTD reader uses such configuration object.

pack-priv static final SymbolTable
mRootSymbols

'Root' symbol table, used for creating actual symbol table instances, but never as is.

protected final ValidatorConfig
mSchemaConfig

Current configurations for this factory

Inherited from org.codehaus.stax2.validation.XMLValidationSchemaFactory:
INTERNAL_ID_SCHEMA_DTDINTERNAL_ID_SCHEMA_RELAXNGINTERNAL_ID_SCHEMA_TREXINTERNAL_ID_SCHEMA_W3CmSchemaTypeP_ENABLE_CACHINGP_IS_NAMESPACE_AWARESERVICE_DEFINITION_PATHSYSTEM_PROPERTY_FOR_IMPL

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private ReaderConfig
public XMLValidationSchema
public XMLValidationSchema
public XMLValidationSchema
public XMLValidationSchema
protected XMLValidationSchema
doCreateSchema(ReaderConfig rcfg, InputBootstrapper bs, String publicId, String systemIdStr, URL ctxt)

The main validator construction method, called by all externally visible methods.

public Object
public boolean
public boolean
setProperty(String
Name of property to set
propName
,
Object
Value to set property to
value
)

Implements abstract org.codehaus.stax2.validation.XMLValidationSchemaFactory.setProperty.

Inherited from org.codehaus.stax2.validation.XMLValidationSchemaFactory:
createSchemacreateSchemacreateSchemagetSchemaTypenewInstancenewInstance

Field Detail

mReaderConfigback to summary
protected final ReaderConfig mReaderConfig

This configuration object is used (instead of a more specific one) since the actual DTD reader uses such configuration object.

mRootSymbolsback to summary
pack-priv static final SymbolTable mRootSymbols

'Root' symbol table, used for creating actual symbol table instances, but never as is.

mSchemaConfigback to summary
protected final ValidatorConfig mSchemaConfig

Current configurations for this factory

Constructor Detail

DTDSchemaFactoryback to summary
public DTDSchemaFactory()

Method Detail

createPrivateReaderConfigback to summary
private ReaderConfig createPrivateReaderConfig()
createSchemaback to summary
public XMLValidationSchema createSchema(InputStream in, String encoding, String publicId, String systemId) throws XMLStreamException

Implements abstract org.codehaus.stax2.validation.XMLValidationSchemaFactory.createSchema.

Annotations
@Override
createSchemaback to summary
public XMLValidationSchema createSchema(Reader r, String publicId, String systemId) throws XMLStreamException

Implements abstract org.codehaus.stax2.validation.XMLValidationSchemaFactory.createSchema.

Annotations
@Override
createSchemaback to summary
public XMLValidationSchema createSchema(URL url) throws XMLStreamException

Implements abstract org.codehaus.stax2.validation.XMLValidationSchemaFactory.createSchema.

Annotations
@SuppressWarnings:resource
@Override
createSchemaback to summary
public XMLValidationSchema createSchema(File f) throws XMLStreamException

Implements abstract org.codehaus.stax2.validation.XMLValidationSchemaFactory.createSchema.

Annotations
@SuppressWarnings:resource
@Override
doCreateSchemaback to summary
protected 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.

Annotations
@SuppressWarnings:resource
getPropertyback to summary
public Object getProperty(String propName)

Implements abstract org.codehaus.stax2.validation.XMLValidationSchemaFactory.getProperty.

Annotations
@Override
isPropertySupportedback to summary
public boolean isPropertySupported(String propName)

Implements abstract org.codehaus.stax2.validation.XMLValidationSchemaFactory.isPropertySupported.

Annotations
@Override
setPropertyback to summary
public boolean setProperty(String propName, Object value)

Implements abstract org.codehaus.stax2.validation.XMLValidationSchemaFactory.setProperty.

Parameters
propName:String

Doc from org.codehaus.stax2.validation.XMLValidationSchemaFactory.setProperty.

Name of property to set

value:Object

Doc from org.codehaus.stax2.validation.XMLValidationSchemaFactory.setProperty.

Value to set property to

Returns:boolean

Doc from org.codehaus.stax2.validation.XMLValidationSchemaFactory.setProperty.

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.

Annotations
@Override