Class PeerDefinitionProperties
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceprogram.properties.RelationshipProperties
-
- org.odpi.openmetadata.accessservices.governanceprogram.properties.PeerDefinitionProperties
-
- All Implemented Interfaces:
Serializable
public class PeerDefinitionProperties extends RelationshipProperties
PeerDefinitionProperties provides a details of how two governance definitions are related.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PeerDefinitionProperties()Default constructorPeerDefinitionProperties(PeerDefinitionProperties 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.StringgetDescription()Return the reason why the governance definitions are related.inthashCode()Return has code based on properties.voidsetDescription(String description)Set up the reason why the governance definitions are related.StringtoString()JSON-style toString-
Methods inherited from class org.odpi.openmetadata.accessservices.governanceprogram.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
-
-
-
Constructor Detail
-
PeerDefinitionProperties
public PeerDefinitionProperties()
Default constructor
-
PeerDefinitionProperties
public PeerDefinitionProperties(PeerDefinitionProperties template)
Copy/clone constructor- Parameters:
template- object to copy
-
-
Method Detail
-
getDescription
public String getDescription()
Return the reason why the governance definitions are related.- Returns:
- description
-
setDescription
public void setDescription(String description)
Set up the reason why the governance definitions are related.- Parameters:
description- description
-
toString
public String toString()
JSON-style toString- Overrides:
toStringin classRelationshipProperties- Returns:
- return string containing the property names and values
-
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 has code based on properties.- Overrides:
hashCodein classRelationshipProperties- Returns:
- int
-
-