Package com.ctc.wstx.dtd
Class DTDSubsetImpl
- java.lang.Object
-
- com.ctc.wstx.dtd.DTDSubset
-
- com.ctc.wstx.dtd.DTDSubsetImpl
-
-
Method Summary
-
Methods inherited from class com.ctc.wstx.dtd.DTDSubset
getSchemaType
-
-
-
-
Method Detail
-
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:
combineWithExternalSubset
in classDTDSubset
- Throws:
XMLStreamException
-
createValidator
public org.codehaus.stax2.validation.XMLValidator createValidator(org.codehaus.stax2.validation.ValidationContext ctxt) throws XMLStreamException
- Specified by:
createValidator
in interfaceorg.codehaus.stax2.validation.XMLValidationSchema
- Specified by:
createValidator
in classDTDSubset
- Throws:
XMLStreamException
-
getEntityCount
public int getEntityCount()
- Specified by:
getEntityCount
in interfaceorg.codehaus.stax2.validation.DTDValidationSchema
- Specified by:
getEntityCount
in classDTDSubset
-
getNotationCount
public int getNotationCount()
- Specified by:
getNotationCount
in interfaceorg.codehaus.stax2.validation.DTDValidationSchema
- Specified by:
getNotationCount
in classDTDSubset
-
isCachable
public boolean isCachable()
- Specified by:
isCachable
in classDTDSubset
-
getGeneralEntityMap
public HashMap<String,EntityDecl> getGeneralEntityMap()
- Specified by:
getGeneralEntityMap
in classDTDSubset
-
getGeneralEntityList
public List<EntityDecl> getGeneralEntityList()
- Specified by:
getGeneralEntityList
in classDTDSubset
-
getParameterEntityMap
public HashMap<String,EntityDecl> getParameterEntityMap()
- Specified by:
getParameterEntityMap
in classDTDSubset
-
getNotationMap
public HashMap<String,NotationDeclaration> getNotationMap()
- Specified by:
getNotationMap
in classDTDSubset
-
getNotationList
public List<NotationDeclaration> getNotationList()
- Specified by:
getNotationList
in classDTDSubset
-
getElementMap
public HashMap<PrefixedName,DTDElement> getElementMap()
- Specified by:
getElementMap
in classDTDSubset
-
isReusableWith
public boolean isReusableWith(DTDSubset intSubset)
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:
isReusableWith
in classDTDSubset
- Returns:
- True if this (external) subset refers to a parameter entity defined in passed-in internal subset.
-
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
-
-