com.ctc.wstx.dtd
public abstract class DTDSubset extends java.lang.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 java.util.HashMap |
getElementMap() |
abstract int |
getEntityCount() |
abstract java.util.List |
getGeneralEntityList() |
abstract java.util.HashMap |
getGeneralEntityMap() |
abstract int |
getNotationCount() |
abstract java.util.List |
getNotationList() |
abstract java.util.HashMap |
getNotationMap() |
abstract java.util.HashMap |
getParameterEntityMap() |
java.lang.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 javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException
public abstract XMLValidator createValidator(ValidationContext ctxt) throws javax.xml.stream.XMLStreamException
createValidator
in interface XMLValidationSchema
javax.xml.stream.XMLStreamException
public java.lang.String getSchemaType()
XMLValidationSchema
getSchemaType
in interface XMLValidationSchema
XMLValidationSchema.SCHEMA_ID_DTD
).public abstract int getEntityCount()
getEntityCount
in interface DTDValidationSchema
public abstract int getNotationCount()
getNotationCount
in interface DTDValidationSchema
public abstract boolean isCachable()
public abstract boolean isReusableWith(DTDSubset intSubset)
public abstract java.util.HashMap getGeneralEntityMap()
public abstract java.util.List getGeneralEntityList()
public abstract java.util.HashMap getParameterEntityMap()
public abstract java.util.HashMap getNotationMap()
public abstract java.util.List getNotationList()
public abstract java.util.HashMap getElementMap()