Package com.ctc.wstx.dtd
Class DTDSubsetImpl
java.lang.Object
com.ctc.wstx.dtd.DTDSubset
com.ctc.wstx.dtd.DTDSubsetImpl
- All Implemented Interfaces:
org.codehaus.stax2.validation.DTDValidationSchema,org.codehaus.stax2.validation.XMLValidationSchema
The default implementation of
DTDSubset-
Field Summary
Fields inherited from interface org.codehaus.stax2.validation.XMLValidationSchema
SCHEMA_ID_DTD, SCHEMA_ID_RELAXNG, SCHEMA_ID_TREX, SCHEMA_ID_W3C_SCHEMA -
Method Summary
Modifier and TypeMethodDescriptioncombineWithExternalSubset(InputProblemReporter rep, DTDSubset extSubset) Method that will combine definitions from internal and external subsets, producing a single DTD set.static DTDSubsetImplconstructInstance(boolean cachable, HashMap<String, EntityDecl> genEnt, Set<String> refdGEs, HashMap<String, EntityDecl> paramEnt, Set<String> refdPEs, HashMap<String, NotationDeclaration> notations, HashMap<PrefixedName, DTDElement> elements, boolean fullyValidating) org.codehaus.stax2.validation.XMLValidatorcreateValidator(org.codehaus.stax2.validation.ValidationContext ctxt) intintbooleanbooleanisReusableWith(DTDSubset intSubset) Method used in determining whether cached external subset instance can be used with specified internal subset.static voidthrowElementException(DTDElement oldElem, Location loc) static voidthrowNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl) toString()Methods inherited from class com.ctc.wstx.dtd.DTDSubset
getSchemaType
-
Method Details
-
constructInstance
public static DTDSubsetImpl constructInstance(boolean cachable, HashMap<String, EntityDecl> genEnt, Set<String> refdGEs, HashMap<String, EntityDecl> paramEnt, Set<String> refdPEs, HashMap<String, NotationDeclaration> notations, HashMap<PrefixedName, DTDElement> elements, boolean fullyValidating) -
combineWithExternalSubset
public DTDSubset combineWithExternalSubset(InputProblemReporter rep, DTDSubset extSubset) throws XMLStreamException Method that will combine definitions from internal and external subsets, producing a single DTD set.- Specified by:
combineWithExternalSubsetin classDTDSubset- Throws:
XMLStreamException
-
createValidator
public org.codehaus.stax2.validation.XMLValidator createValidator(org.codehaus.stax2.validation.ValidationContext ctxt) throws XMLStreamException - Specified by:
createValidatorin interfaceorg.codehaus.stax2.validation.XMLValidationSchema- Specified by:
createValidatorin classDTDSubset- Throws:
XMLStreamException
-
getEntityCount
public int getEntityCount()- Specified by:
getEntityCountin interfaceorg.codehaus.stax2.validation.DTDValidationSchema- Specified by:
getEntityCountin classDTDSubset
-
getNotationCount
public int getNotationCount()- Specified by:
getNotationCountin interfaceorg.codehaus.stax2.validation.DTDValidationSchema- Specified by:
getNotationCountin classDTDSubset
-
isCachable
public boolean isCachable()- Specified by:
isCachablein classDTDSubset
-
getGeneralEntityMap
- Specified by:
getGeneralEntityMapin classDTDSubset
-
getGeneralEntityList
- Specified by:
getGeneralEntityListin classDTDSubset
-
getParameterEntityMap
- Specified by:
getParameterEntityMapin classDTDSubset
-
getNotationMap
- Specified by:
getNotationMapin classDTDSubset
-
getNotationList
- Specified by:
getNotationListin classDTDSubset
-
getElementMap
- Specified by:
getElementMapin classDTDSubset
-
isReusableWith
Method used in determining whether cached external subset instance can be used with specified internal subset. If ext. subset references any parameter/general entities int subset (re-)defines, it can not; otherwise it can be used.- Specified by:
isReusableWithin classDTDSubset- Returns:
- True if this (external) subset refers to a parameter entity defined in passed-in internal subset.
-
toString
-
throwNotationException
public static void throwNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl) throws XMLStreamException - Throws:
XMLStreamException
-
throwElementException
public static void throwElementException(DTDElement oldElem, Location loc) throws XMLStreamException - Throws:
XMLStreamException
-