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
public final class DTDSubsetImpl
- extends DTDSubset
The default implementation of DTDSubset
Fields inherited from interface org.codehaus.stax2.validation.XMLValidationSchema |
SCHEMA_ID_DTD, SCHEMA_ID_RELAXNG, SCHEMA_ID_TREX, SCHEMA_ID_W3C_SCHEMA |
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)
|
org.codehaus.stax2.validation.XMLValidator |
createValidator(org.codehaus.stax2.validation.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 org.codehaus.stax2.validation.XMLValidator createValidator(org.codehaus.stax2.validation.ValidationContext ctxt)
throws XMLStreamException
- Specified by:
createValidator
in interface org.codehaus.stax2.validation.XMLValidationSchema
- Specified by:
createValidator
in class DTDSubset
- Throws:
XMLStreamException
getEntityCount
public int getEntityCount()
- Specified by:
getEntityCount
in interface org.codehaus.stax2.validation.DTDValidationSchema
- Specified by:
getEntityCount
in class DTDSubset
getNotationCount
public int getNotationCount()
- Specified by:
getNotationCount
in interface org.codehaus.stax2.validation.DTDValidationSchema
- Specified by:
getNotationCount
in class DTDSubset
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 © 2011 Codehaus. All Rights Reserved.