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
  • Field Details

    • mIsCachable

      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.
    • mFullyValidating

      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.
    • mHasNsDefaults

      final boolean mHasNsDefaults
      Flag that indicates whether any of the elements declarared has any attribute default values for namespace pseudo-attributes.
    • mGeneralEntities

      final HashMap<String,EntityDecl> mGeneralEntities
      Map (name-to-EntityDecl) of general entity declarations (internal, external) for this DTD subset.
    • mGeneralEntityList

      transient volatile List<EntityDecl> mGeneralEntityList
      Lazily instantiated List that contains all notations from mGeneralEntities (preferably in their declaration order; depends on whether platform, ie. JDK version, has insertion-ordered Maps available), used by DTD event Objects.
    • mRefdGEs

      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.

    • mDefinedPEs

      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.
    • mRefdPEs

      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.

    • mNotations

      final HashMap<String,NotationDeclaration> mNotations
      Map (name-to-NotationDecl) that this subset has defined.
    • mNotationList

      transient List<NotationDeclaration> mNotationList
      Lazily instantiated List that contains all notations from mNotations (preferably in their declaration order; depends on whether platform, ie. JDK version, has insertion-ordered Maps available), used by DTD event Objects.
    • mElements

      final HashMap<PrefixedName,DTDElement> mElements
  • Constructor Details

  • Method Details