Class ReferenceValueAssignment


public class ReferenceValueAssignment extends ReferenceValue
ReferenceValueAssignment describes the link to a valid value for a referenceable via a ReferenceValueAssignment relationship. This relationship is used to tag the referenceable with the valid value as a means of either classifying or describing its meaning.
  • Constructor Details

    • ReferenceValueAssignment

      public ReferenceValueAssignment()
      Default constructor
    • ReferenceValueAssignment

      public ReferenceValueAssignment(ReferenceValueAssignment template)
      Copy clone constructor
      Parameters:
      template - object to copy
  • Method Details

    • getValidValue

      public ValidValue getValidValue()
      Returns the properties of the valid value used in the assignment.
      Returns:
      properties of the valid value
    • setValidValue

      public void setValidValue(ValidValue validValue)
      Set up the properties of the valid value used in the assignment.
      Parameters:
      validValue - properties of the asset
    • toString

      public String toString()
      JSON-style toString
      Overrides:
      toString in class ReferenceValue
      Returns:
      return string containing the property names and values
    • equals

      public boolean equals(Object objectToCompare)
      Return comparison result based on the content of the properties.
      Overrides:
      equals in class ReferenceValue
      Parameters:
      objectToCompare - test object
      Returns:
      result of comparison
    • hashCode

      public int hashCode()
      Return hash code for this object
      Overrides:
      hashCode in class ReferenceValue
      Returns:
      int hash code