Class Modification

    • Constructor Detail

      • Modification

        public Modification​(ModificationType modificationType,
                            Attribute attribute)
        Creates a new modification with the provided information.
        Parameters:
        modificationType - The modification type for this modification.
        attribute - The attribute for this modification.
      • Modification

        public Modification​(ModificationType modificationType,
                            Attribute attribute,
                            boolean isInternal)
        Creates a new modification with the provided information.
        Parameters:
        modificationType - The modification type for this modification.
        attribute - The attribute for this modification.
        isInternal - Indicates whether this is an internal modification and therefore should not be subject to no-user-modification and related checks.
    • Method Detail

      • getModificationType

        public ModificationType getModificationType()
        Retrieves the modification type for this modification.
        Returns:
        The modification type for this modification.
      • getAttribute

        public Attribute getAttribute()
        Retrieves the attribute for this modification.
        Returns:
        The attribute for this modification.
      • isInternal

        public boolean isInternal()
        Indicates whether this is modification was created by internal processing and should not be subject to no-user-modification and related checks.
        Returns:
        true if this is an internal modification, or false if not.
      • setInternal

        public void setInternal​(boolean isInternal)
        Specifies whether this modification was created by internal processing and should not be subject to no-user-modification and related checks.
        Parameters:
        isInternal - Specifies whether this modification was created by internal processing and should not be subject to no-user-modification and related checks.
      • equals

        public boolean equals​(Object o)
        Indicates whether the provided object is equal to this modification. It will only be considered equal if the object is a modification with the same modification type and an attribute that is equal to this modification.
        Overrides:
        equals in class Object
        Parameters:
        o - The object for which to make the determination.
        Returns:
        true if the provided object is a modification that is equal to this modification, or false if not.
      • hashCode

        public int hashCode()
        Retrieves the hash code for this modification. The hash code returned will be the hash code for the attribute included in this modification.
        Overrides:
        hashCode in class Object
        Returns:
        The hash code for this modification.
      • toString

        public String toString()
        Retrieves a one-line string representation of this modification.
        Overrides:
        toString in class Object
        Returns:
        A one-line string representation of this modification.