Class XMLDTDDescription

    • Field Detail

      • fRootName

        protected String fRootName
      • fPossibleRoots

        protected ArrayList fPossibleRoots
    • Method Detail

      • getRootName

        public String getRootName()
        Description copied from interface: XMLDTDDescription
        Return the root name of this DTD.
        Specified by:
        getRootName in interface XMLDTDDescription
        Returns:
        the root name of this DTD or null if root name is unknown
      • setRootName

        public void setRootName​(String rootName)
        Set the root name
      • setPossibleRoots

        public void setPossibleRoots​(ArrayList possibleRoots)
        Set possible roots
      • setPossibleRoots

        public void setPossibleRoots​(Vector possibleRoots)
        Set possible roots
      • equals

        public boolean equals​(Object desc)
        Compares this grammar with the given grammar. Currently, we compare as follows: - if grammar type not equal return false immediately - try and find a common root name: - if both have roots, use them - else if one has a root, examine other's possible root's for a match; - else try all combinations - test fExpandedSystemId and fPublicId as above
        Overrides:
        equals in class Object
        Parameters:
        desc - The description of the grammar to be compared with
        Returns:
        True if they are equal, else false
      • hashCode

        public int hashCode()
        Returns the hash code of this grammar Because our .equals method is so complex, we just return a very simple hash that might avoid calls to the equals method a bit...
        Overrides:
        hashCode in class XMLResourceIdentifierImpl
        Returns:
        The hash code