DTDSubset
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final HashMap | mDefinedPEs
Map (name-to-WEntityDeclaration) that contains all parameter entities defined by this subset. |
| pack-priv final HashMap | |
| pack-priv final 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. |
| pack-priv final HashMap | mGeneralEntities
Map (name-to-EntityDecl) of general entity declarations (internal, external) for this DTD subset. |
| pack-priv transient volatile List | mGeneralEntityList
Lazily instantiated List that contains all notations from
|
| pack-priv final boolean | mHasNsDefaults
Flag that indicates whether any of the elements declarared has any attribute default values for namespace pseudo-attributes. |
| pack-priv final boolean | mIsCachable
Whether this subset is cachable. |
| pack-priv transient List | mNotationList
Lazily instantiated List that contains all notations from
|
| pack-priv final HashMap | mNotations
Map (name-to-NotationDecl) that this subset has defined. |
| pack-priv final Set | mRefdGEs
Set of names of general entities references by this subset. |
| pack-priv final Set | mRefdPEs
Set of names of parameter entities references by this subset. |
| Access | Constructor and Description |
|---|---|
| private | DTDSubsetImpl(boolean cachable, HashMap<String, EntityDecl> genEnt, Set<String> refdGEs, HashMap<String, EntityDecl> paramEnt, Set<String> peRefs, HashMap<String, NotationDeclaration> notations, HashMap<PrefixedName, DTDElement> elements, boolean fullyValidating)
|
| Modifier and Type | Method and Description |
|---|---|
| private static void | checkNotations(HashMap<String, NotationDeclaration> fromInt, HashMap<String, NotationDeclaration> fromExt)
|
| private void | combineElements(InputProblemReporter rep, HashMap<PrefixedName, DTDElement> intElems, 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(Map<K, V> m1, Map<K, V> m2)
Note The first Map argument WILL be modified; second one not. |
| public DTDSubset | combineWithExternalSubset(InputProblemReporter rep, DTDSubset extSubset)
Implements abstract com. Method that will combine definitions from internal and external subsets, producing a single DTD set. |
| 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)
|
| public XMLValidator | createValidator(ValidationContext ctxt)
Implements abstract com. Implements org.
|
| public HashMap | |
| public int | getEntityCount()
Implements abstract com. Implements org.
|
| public List | |
| public HashMap | |
| public int | getNotationCount()
Implements abstract com. Implements org.
|
| public synchronized List | |
| public HashMap | |
| public HashMap | |
| public boolean | |
| public boolean | Returns: True if this (external) subset refers to a parameter entity defined in passed-in internal subset.Implements abstract com. Method used in determining whether cached external subset instance can be used with specified internal subset. |
| public static void | |
| public static void | |
| public String |
| mDefinedPEs | back to summary |
|---|---|
| pack-priv final HashMap<String, EntityDecl> mDefinedPEs Map (name-to-WEntityDeclaration) that contains all parameter entities defined by this subset. May be empty if such information will not be needed for use; for example, external subset's definitions are needed, nor are combined DTD set's. | |
| mElements | back to summary |
|---|---|
| pack-priv final HashMap<PrefixedName, DTDElement> mElements | |
| mFullyValidating | back to summary |
|---|---|
| pack-priv final 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. | |
| mGeneralEntities | back to summary |
|---|---|
| pack-priv final HashMap<String, EntityDecl> mGeneralEntities Map (name-to-EntityDecl) of general entity declarations (internal, external) for this DTD subset. | |
| mGeneralEntityList | back to summary |
|---|---|
| pack-priv transient volatile List<EntityDecl> mGeneralEntityList Lazily instantiated List that contains all notations from
| |
| mHasNsDefaults | back to summary |
|---|---|
| pack-priv final boolean mHasNsDefaults Flag that indicates whether any of the elements declarared has any attribute default values for namespace pseudo-attributes. | |
| mIsCachable | back to summary |
|---|---|
| pack-priv final boolean mIsCachable Whether this subset is cachable. Only those external subsets that do not refer to PEs defined by internal subsets (or GEs via default attribute value expansion) are cachable. | |
| mNotationList | back to summary |
|---|---|
| pack-priv transient List<NotationDeclaration> mNotationList Lazily instantiated List that contains all notations from
| |
| mNotations | back to summary |
|---|---|
| pack-priv final HashMap<String, NotationDeclaration> mNotations Map (name-to-NotationDecl) that this subset has defined. | |
| mRefdGEs | back to summary |
|---|---|
| pack-priv final Set<String> mRefdGEs Set of names of general entities references by this subset. Note that only those GEs that are referenced by default attribute value definitions count, since GEs in text content are only expanded when reading documents, but attribute default values are expanded when reading DTD subset itself. 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. | |
| mRefdPEs | back to summary |
|---|---|
| pack-priv final Set<String> mRefdPEs Set of names of parameter entities references by this subset. Needed when determinining if external subset materially depends on definitions from internal subset, which is needed to know when caching external subsets. 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. | |
| DTDSubsetImpl | back to summary |
|---|---|
| private DTDSubsetImpl(boolean cachable, HashMap<String, EntityDecl> genEnt, Set<String> refdGEs, HashMap<String, EntityDecl> paramEnt, Set<String> peRefs, HashMap<String, NotationDeclaration> notations, HashMap<PrefixedName, DTDElement> elements, boolean fullyValidating) | |
| checkNotations | back to summary |
|---|---|
| private static void checkNotations(HashMap<String, NotationDeclaration> fromInt, HashMap<String, NotationDeclaration> fromExt) throws XMLStreamException | |
| combineElements | back to summary |
|---|---|
| private void combineElements(InputProblemReporter rep, HashMap<PrefixedName, DTDElement> intElems, HashMap<PrefixedName, DTDElement> extElems) throws XMLStreamException 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. Care has to be taken to only check actual redeclarations: placeholders should not cause problems. | |
| combineMaps | back to summary |
|---|---|
| private static <K, V> void combineMaps(Map<K, V> m1, Map<K, V> m2) Note The first Map argument WILL be modified; second one not. Caller needs to ensure this is acceptable. | |
| combineWithExternalSubset | back to summary |
|---|---|
| public DTDSubset combineWithExternalSubset(InputProblemReporter rep, DTDSubset extSubset) throws XMLStreamException Implements abstract com. Method that will combine definitions from internal and external subsets, producing a single DTD set.
| |
| constructInstance | back to summary |
|---|---|
| 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) | |
| createValidator | back to summary |
|---|---|
| public XMLValidator createValidator(ValidationContext ctxt) throws XMLStreamException Implements abstract com. Implements org.
| |
| getElementMap | back to summary |
|---|---|
| public HashMap Implements abstract com.
| |
| getEntityCount | back to summary |
|---|---|
| public int getEntityCount() Implements abstract com. Implements org.
| |
| getGeneralEntityList | back to summary |
|---|---|
| public List Implements abstract com.
| |
| getGeneralEntityMap | back to summary |
|---|---|
| public HashMap Implements abstract com.
| |
| getNotationCount | back to summary |
|---|---|
| public int getNotationCount() Implements abstract com. Implements org.
| |
| getNotationList | back to summary |
|---|---|
| public synchronized List Implements abstract com.
| |
| getNotationMap | back to summary |
|---|---|
| public HashMap Implements abstract com.
| |
| getParameterEntityMap | back to summary |
|---|---|
| public HashMap Implements abstract com.
| |
| isCachable | back to summary |
|---|---|
| public boolean isCachable() Implements abstract com.
| |
| isReusableWith | back to summary |
|---|---|
| public boolean isReusableWith(DTDSubset intSubset) Implements abstract com. 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.
| |
| throwElementException | back to summary |
|---|---|
| public static void throwElementException(DTDElement oldElem, Location loc) throws XMLStreamException | |
| throwNotationException | back to summary |
|---|---|
| public static void throwNotationException(NotationDeclaration oldDecl, NotationDeclaration newDecl) throws XMLStreamException | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |