public abstract class DTDSubset extends Object implements DTDValidationSchema
XMLValidationSchema, as well
as specifies extended Woodstox-specific interface for accessing
DTD-specific things like entity expansions and notation properties.
API is separated from its implementation to reduce coupling; for example, it is possible to have DTD subset implementations that do not implement validation logics, just entity expansion.
SCHEMA_ID_DTD, SCHEMA_ID_RELAXNG, SCHEMA_ID_TREX, SCHEMA_ID_W3C_SCHEMA| Modifier | Constructor and Description |
|---|---|
protected |
DTDSubset() |
| Modifier and Type | Method and Description |
|---|---|
abstract DTDSubset |
combineWithExternalSubset(InputProblemReporter rep,
DTDSubset extSubset)
Method that will combine definitions from this internal subset with
definitions from passed-in external subset, producing a new combined
DTDSubset instance.
|
abstract XMLValidator |
createValidator(ValidationContext ctxt) |
abstract HashMap |
getElementMap() |
abstract int |
getEntityCount() |
abstract List |
getGeneralEntityList() |
abstract HashMap |
getGeneralEntityMap() |
abstract int |
getNotationCount() |
abstract List |
getNotationList() |
abstract HashMap |
getNotationMap() |
abstract HashMap |
getParameterEntityMap() |
String |
getSchemaType()
Returns type of this schema.
|
abstract boolean |
isCachable() |
abstract boolean |
isReusableWith(DTDSubset intSubset)
Method used in determining whether cached external subset instance
can be used with specified internal subset.
|
public abstract DTDSubset combineWithExternalSubset(InputProblemReporter rep, DTDSubset extSubset) throws XMLStreamException
XMLStreamExceptionpublic abstract XMLValidator createValidator(ValidationContext ctxt) throws XMLStreamException
createValidator in interface XMLValidationSchemaXMLStreamExceptionpublic String getSchemaType()
XMLValidationSchemagetSchemaType in interface XMLValidationSchemaXMLValidationSchema.SCHEMA_ID_DTD).public abstract int getEntityCount()
getEntityCount in interface DTDValidationSchemapublic abstract int getNotationCount()
getNotationCount in interface DTDValidationSchemapublic abstract boolean isCachable()
public abstract boolean isReusableWith(DTDSubset intSubset)
public abstract HashMap getGeneralEntityMap()
public abstract List getGeneralEntityList()
public abstract HashMap getParameterEntityMap()
public abstract HashMap getNotationMap()
public abstract List getNotationList()
public abstract HashMap getElementMap()