com.ctc.wstx.dtd
Class DTDSubsetImpl
java.lang.Object
com.ctc.wstx.dtd.DTDSubset
com.ctc.wstx.dtd.DTDSubsetImpl
- All Implemented Interfaces:
- DTDValidationSchema, XMLValidationSchema
public final class DTDSubsetImpl
- extends DTDSubset
The default implementation of DTDSubset
|
Method Summary |
DTDSubset |
combineWithExternalSubset(InputProblemReporter rep,
DTDSubset extSubset)
Method that will combine definitions from internal and external subsets,
producing a single DTD set. |
static DTDSubsetImpl |
constructInstance(boolean cachable,
HashMap genEnt,
Set refdGEs,
HashMap paramEnt,
Set refdPEs,
HashMap notations,
HashMap elements,
boolean fullyValidating)
|
XMLValidator |
createValidator(ValidationContext ctxt)
|
HashMap |
getElementMap()
|
int |
getEntityCount()
|
List |
getGeneralEntityList()
|
HashMap |
getGeneralEntityMap()
|
int |
getNotationCount()
|
List |
getNotationList()
|
HashMap |
getNotationMap()
|
HashMap |
getParameterEntityMap()
|
boolean |
isCachable()
|
boolean |
isReusableWith(DTDSubset intSubset)
Method used in determining whether cached external subset instance
can be used with specified internal subset. |
static void |
throwElementException(DTDElement oldElem,
Location loc)
|
static void |
throwNotationException(NotationDeclaration oldDecl,
NotationDeclaration newDecl)
|
String |
toString()
|
constructInstance
public static DTDSubsetImpl constructInstance(boolean cachable,
HashMap genEnt,
Set refdGEs,
HashMap paramEnt,
Set refdPEs,
HashMap notations,
HashMap 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 class DTDSubset
- Throws:
XMLStreamException
createValidator
public XMLValidator createValidator(ValidationContext ctxt)
throws XMLStreamException
- Specified by:
createValidator in interface XMLValidationSchema- Specified by:
createValidator in class DTDSubset
- Throws:
XMLStreamException
getEntityCount
public int getEntityCount()
- Specified by:
getEntityCount in interface DTDValidationSchema- Specified by:
getEntityCount in class DTDSubset
- Returns:
- Number of general (non-parameter) entities (of all types)
declared in this DTD
schema (in subsets [internal, external] included)
getNotationCount
public int getNotationCount()
- Specified by:
getNotationCount in interface DTDValidationSchema- Specified by:
getNotationCount in class DTDSubset
- Returns:
- Number of notations declared in this DTD
schema (in subsets [internal, external] included)
isCachable
public boolean isCachable()
- Specified by:
isCachable in class DTDSubset
getGeneralEntityMap
public HashMap getGeneralEntityMap()
- Specified by:
getGeneralEntityMap in class DTDSubset
getGeneralEntityList
public List getGeneralEntityList()
- Specified by:
getGeneralEntityList in class DTDSubset
getParameterEntityMap
public HashMap getParameterEntityMap()
- Specified by:
getParameterEntityMap in class DTDSubset
getNotationMap
public HashMap getNotationMap()
- Specified by:
getNotationMap in class DTDSubset
getNotationList
public List getNotationList()
- Specified by:
getNotationList in class DTDSubset
getElementMap
public HashMap getElementMap()
- Specified by:
getElementMap in class DTDSubset
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 class DTDSubset
- Returns:
- True if this (external) subset refers to a parameter entity
defined in passed-in internal subset.
toString
public String toString()
- Overrides:
toString in class Object
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
Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.