java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.digitalbusiness.AgreementRoleProperties

public class AgreementRoleProperties extends RelationshipProperties
AgreementRoleProperties describes a relationship between a role and an agreement.
  • Constructor Details

    • AgreementRoleProperties

      public AgreementRoleProperties()
      Default constructor
    • AgreementRoleProperties

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

    • setRoleName

      public void setRoleName(String roleName)
      Set up the name of the role from the agreement text.
      Parameters:
      roleName - String name
    • getRoleName

      public String getRoleName()
      Returns the name of the role from the agreement text.
      Returns:
      String name
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class RelationshipProperties
      Returns:
      print out of variables in a JSON-style
    • equals

      public boolean equals(Object objectToCompare)
      Compare the values of the supplied object with those stored in the current object.
      Overrides:
      equals in class RelationshipProperties
      Parameters:
      objectToCompare - supplied object
      Returns:
      boolean result of comparison
    • hashCode

      public int hashCode()
      Return hash code based on properties.
      Overrides:
      hashCode in class RelationshipProperties
      Returns:
      int