Class IDRefs

    • Method Detail

      • setValue

        public void setValue​(String stValue)
        Description copied from class: NCName
        validates the data and sets the value for the object.
        Overrides:
        setValue in class NCName
        Parameters:
        stValue - String value
      • equals

        public boolean equals​(Object object)
        IDREFs can be equal without having identical ordering because they represent a set of references. Hence we have to compare values here as a set, not a list.
        Overrides:
        equals in class NormalizedString
        Parameters:
        object - an Object value
        Returns:
        a boolean value
      • hashCode

        public int hashCode()
        Returns the sum of the hashcodes of the underlying idrefs, an operation which is not sensitive to ordering.
        Overrides:
        hashCode in class NormalizedString
        Returns:
        an int value