Class GovernanceLink
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.ElementHeader
-
- org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.ElementStub
-
- org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.GovernanceLink
-
- All Implemented Interfaces:
Serializable
public class GovernanceLink extends ElementStub
GovernanceLink is used to show a relationship between different governance definitions of the same type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GovernanceLink()Default ConstructorGovernanceLink(ElementStub template)Copy/clone Constructor - the resulting object.GovernanceLink(GovernanceLink template)Copy/clone Constructor - the resulting object.
-
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 description of why these two governance definitions are linked.inthashCode()Return has code based on properties.voidsetDescription(String description)Set up the description of why these two governance definitions are linked.StringtoString()JSON-style toString.-
Methods inherited from class org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.ElementStub
getUniqueName, setUniqueName
-
Methods inherited from class org.odpi.openmetadata.accessservices.governanceprogram.metadataelements.ElementHeader
getClassifications, getGUID, getOrigin, getType, getVersions, setClassifications, setGUID, setOrigin, setType, setVersions
-
-
-
-
Constructor Detail
-
GovernanceLink
public GovernanceLink()
Default Constructor
-
GovernanceLink
public GovernanceLink(GovernanceLink template)
Copy/clone Constructor - the resulting object.- Parameters:
template- object being copied
-
GovernanceLink
public GovernanceLink(ElementStub template)
Copy/clone Constructor - the resulting object.- Parameters:
template- object being copied
-
-
Method Detail
-
getDescription
public String getDescription()
Return the description of why these two governance definitions are linked.- Returns:
- string description
-
setDescription
public void setDescription(String description)
Set up the description of why these two governance definitions are linked.- Parameters:
description- string description
-
toString
public String toString()
JSON-style toString.- Overrides:
toStringin classElementStub- Returns:
- list of properties and their values.
-
equals
public boolean equals(Object objectToCompare)
Compare the values of the supplied object with those stored in the current object.- Overrides:
equalsin classElementStub- Parameters:
objectToCompare- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()
Return has code based on properties.- Overrides:
hashCodein classElementStub- Returns:
- int
-
-