| Modifier and Type | Field and Description |
|---|---|
(package private) java.util.HashMap<java.lang.String,EntityDecl> |
mDefinedPEs
Map (name-to-WEntityDeclaration) that contains all parameter entities
defined by this subset.
|
(package private) java.util.HashMap<PrefixedName,DTDElement> |
mElements |
(package private) boolean |
mFullyValidating
Whether this subset has full validation information; and
consequently whether it will do actual validation, or just allow
access to type information, notations, entities, and add default
attribute values.
|
(package private) java.util.HashMap<java.lang.String,EntityDecl> |
mGeneralEntities
Map (name-to-EntityDecl) of general entity declarations (internal,
external) for this DTD subset.
|
(package private) java.util.List<EntityDecl> |
mGeneralEntityList
Lazily instantiated List that contains all notations from
mGeneralEntities (preferably in their declaration order; depends
on whether platform, ie. |
(package private) boolean |
mHasNsDefaults
Flag that indicates whether any of the elements declarared
has any attribute default values for namespace pseudo-attributes.
|
(package private) boolean |
mIsCachable
Whether this subset is cachable.
|
(package private) java.util.List<javax.xml.stream.events.NotationDeclaration> |
mNotationList
Lazily instantiated List that contains all notations from
mNotations (preferably in their declaration order; depends
on whether platform, ie. |
(package private) java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> |
mNotations
Map (name-to-NotationDecl) that this subset has defined.
|
(package private) java.util.Set<java.lang.String> |
mRefdGEs
Set of names of general entities references by this subset.
|
(package private) java.util.Set<java.lang.String> |
mRefdPEs
Set of names of parameter entities references by this subset.
|
| Modifier | Constructor and Description |
|---|---|
private |
DTDSubsetImpl(boolean cachable,
java.util.HashMap<java.lang.String,EntityDecl> genEnt,
java.util.Set<java.lang.String> refdGEs,
java.util.HashMap<java.lang.String,EntityDecl> paramEnt,
java.util.Set<java.lang.String> peRefs,
java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> notations,
java.util.HashMap<PrefixedName,DTDElement> elements,
boolean fullyValidating) |
| Modifier and Type | Method and Description |
|---|---|
private static void |
checkNotations(java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> fromInt,
java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> fromExt) |
private void |
combineElements(InputProblemReporter rep,
java.util.HashMap<PrefixedName,DTDElement> intElems,
java.util.HashMap<PrefixedName,DTDElement> extElems)
Method that will try to merge in elements defined in the external
subset, into internal subset; it will also check for redeclarations
when doing this, as it's invalid to redeclare elements.
|
private static <K,V> void |
combineMaps(java.util.Map<K,V> m1,
java.util.Map<K,V> m2)
Note: The first Map argument WILL be modified; second one
not.
|
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,
java.util.HashMap<java.lang.String,EntityDecl> genEnt,
java.util.Set<java.lang.String> refdGEs,
java.util.HashMap<java.lang.String,EntityDecl> paramEnt,
java.util.Set<java.lang.String> refdPEs,
java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> notations,
java.util.HashMap<PrefixedName,DTDElement> elements,
boolean fullyValidating) |
org.codehaus.stax2.validation.XMLValidator |
createValidator(org.codehaus.stax2.validation.ValidationContext ctxt) |
java.util.HashMap<PrefixedName,DTDElement> |
getElementMap() |
int |
getEntityCount() |
java.util.List<EntityDecl> |
getGeneralEntityList() |
java.util.HashMap<java.lang.String,EntityDecl> |
getGeneralEntityMap() |
int |
getNotationCount() |
java.util.List<javax.xml.stream.events.NotationDeclaration> |
getNotationList() |
java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> |
getNotationMap() |
java.util.HashMap<java.lang.String,EntityDecl> |
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,
javax.xml.stream.Location loc) |
static void |
throwNotationException(javax.xml.stream.events.NotationDeclaration oldDecl,
javax.xml.stream.events.NotationDeclaration newDecl) |
java.lang.String |
toString() |
getSchemaTypefinal boolean mIsCachable
final boolean mFullyValidating
final boolean mHasNsDefaults
final java.util.HashMap<java.lang.String,EntityDecl> mGeneralEntities
transient volatile java.util.List<EntityDecl> mGeneralEntityList
mGeneralEntities (preferably in their declaration order; depends
on whether platform, ie. JDK version, has insertion-ordered
Maps available), used by DTD event Objects.final java.util.Set<java.lang.String> mRefdGEs
Needed for determinining if external subset materially depends on definitions from internal subset; if so, such subset is not cachable. This also means that information is not stored for non-cachable instance.
final java.util.HashMap<java.lang.String,EntityDecl> mDefinedPEs
final java.util.Set<java.lang.String> mRefdPEs
Needed for determinining if external subset materially depends on definitions from internal subset; if so, such subset is not cachable. This also means that information is not stored for non-cachable instance.
final java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> mNotations
transient java.util.List<javax.xml.stream.events.NotationDeclaration> mNotationList
mNotations (preferably in their declaration order; depends
on whether platform, ie. JDK version, has insertion-ordered
Maps available), used by DTD event Objects.final java.util.HashMap<PrefixedName,DTDElement> mElements
private DTDSubsetImpl(boolean cachable,
java.util.HashMap<java.lang.String,EntityDecl> genEnt,
java.util.Set<java.lang.String> refdGEs,
java.util.HashMap<java.lang.String,EntityDecl> paramEnt,
java.util.Set<java.lang.String> peRefs,
java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> notations,
java.util.HashMap<PrefixedName,DTDElement> elements,
boolean fullyValidating)
public static DTDSubsetImpl constructInstance(boolean cachable, java.util.HashMap<java.lang.String,EntityDecl> genEnt, java.util.Set<java.lang.String> refdGEs, java.util.HashMap<java.lang.String,EntityDecl> paramEnt, java.util.Set<java.lang.String> refdPEs, java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> notations, java.util.HashMap<PrefixedName,DTDElement> elements, boolean fullyValidating)
public DTDSubset combineWithExternalSubset(InputProblemReporter rep, DTDSubset extSubset) throws javax.xml.stream.XMLStreamException
combineWithExternalSubset in class DTDSubsetjavax.xml.stream.XMLStreamExceptionpublic org.codehaus.stax2.validation.XMLValidator createValidator(org.codehaus.stax2.validation.ValidationContext ctxt)
throws javax.xml.stream.XMLStreamException
createValidator in interface org.codehaus.stax2.validation.XMLValidationSchemacreateValidator in class DTDSubsetjavax.xml.stream.XMLStreamExceptionpublic int getEntityCount()
getEntityCount in interface org.codehaus.stax2.validation.DTDValidationSchemagetEntityCount in class DTDSubsetpublic int getNotationCount()
getNotationCount in interface org.codehaus.stax2.validation.DTDValidationSchemagetNotationCount in class DTDSubsetpublic boolean isCachable()
isCachable in class DTDSubsetpublic java.util.HashMap<java.lang.String,EntityDecl> getGeneralEntityMap()
getGeneralEntityMap in class DTDSubsetpublic java.util.List<EntityDecl> getGeneralEntityList()
getGeneralEntityList in class DTDSubsetpublic java.util.HashMap<java.lang.String,EntityDecl> getParameterEntityMap()
getParameterEntityMap in class DTDSubsetpublic java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> getNotationMap()
getNotationMap in class DTDSubsetpublic java.util.List<javax.xml.stream.events.NotationDeclaration> getNotationList()
getNotationList in class DTDSubsetpublic java.util.HashMap<PrefixedName,DTDElement> getElementMap()
getElementMap in class DTDSubsetpublic boolean isReusableWith(DTDSubset intSubset)
isReusableWith in class DTDSubsetpublic java.lang.String toString()
toString in class java.lang.Objectpublic static void throwNotationException(javax.xml.stream.events.NotationDeclaration oldDecl,
javax.xml.stream.events.NotationDeclaration newDecl)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionpublic static void throwElementException(DTDElement oldElem, javax.xml.stream.Location loc) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprivate static <K,V> void combineMaps(java.util.Map<K,V> m1,
java.util.Map<K,V> m2)
Note: The first Map argument WILL be modified; second one not. Caller needs to ensure this is acceptable.
private void combineElements(InputProblemReporter rep, java.util.HashMap<PrefixedName,DTDElement> intElems, java.util.HashMap<PrefixedName,DTDElement> extElems) throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamExceptionprivate static void checkNotations(java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> fromInt,
java.util.HashMap<java.lang.String,javax.xml.stream.events.NotationDeclaration> fromExt)
throws javax.xml.stream.XMLStreamException
javax.xml.stream.XMLStreamException