Class AgreementRoleProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.digitalservice.properties.RelationshipProperties
-
- org.odpi.openmetadata.accessservices.digitalservice.properties.AgreementRoleProperties
-
- All Implemented Interfaces:
Serializable
public class AgreementRoleProperties extends RelationshipProperties
AgreementRoleProperties describes a relationship between a role and an agreement.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AgreementRoleProperties()Default constructorAgreementRoleProperties(AgreementRoleProperties template)Copy/clone constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Compare the values of the supplied object with those stored in the current object.StringgetRoleName()Returns the name of the role from the agreement text.inthashCode()Return hash code based on properties.voidsetRoleName(String roleName)Set up the name of the role from the agreement text.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.accessservices.digitalservice.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
-
-
-
Constructor Detail
-
AgreementRoleProperties
public AgreementRoleProperties()
Default constructor
-
AgreementRoleProperties
public AgreementRoleProperties(AgreementRoleProperties template)
Copy/clone constructor.- Parameters:
template- template object to copy.
-
-
Method Detail
-
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:
toStringin classRelationshipProperties- 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:
equalsin classRelationshipProperties- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return hash code based on properties.- Overrides:
hashCodein classRelationshipProperties- Returns:
- int
-
-