Class AgreementRoleProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.digitalbusiness.AgreementRoleProperties
AgreementRoleProperties describes a relationship between a role and an agreement.
-
Constructor Summary
ConstructorDescriptionDefault constructorCopy/clone constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Compare the values of the supplied object with those stored in the current object.Returns the name of the role from the agreement text.int
hashCode()
Return hash code based on properties.void
setRoleName
(String roleName) Set up the name of the role from the agreement text.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
Constructor Details
-
AgreementRoleProperties
public AgreementRoleProperties()Default constructor -
AgreementRoleProperties
Copy/clone constructor.- Parameters:
template
- template object to copy.
-
-
Method Details
-
setRoleName
Set up the name of the role from the agreement text.- Parameters:
roleName
- String name
-
getRoleName
Returns the name of the role from the agreement text.- Returns:
- String name
-
toString
Standard toString method.- Overrides:
toString
in classRelationshipProperties
- Returns:
- print out of variables in a JSON-style
-
equals
Compare the values of the supplied object with those stored in the current object.- Overrides:
equals
in classRelationshipProperties
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Return hash code based on properties.- Overrides:
hashCode
in classRelationshipProperties
- Returns:
- int
-