Class GlossaryTermRelationship
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetmanager.properties.RelationshipProperties
-
- org.odpi.openmetadata.accessservices.assetmanager.properties.GlossaryTermRelationship
-
- All Implemented Interfaces:
Serializable
public class GlossaryTermRelationship extends RelationshipProperties
GlossaryTermRelationship describes a type of relationship between two glossary terms in a glossary.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GlossaryTermRelationship()Default constructorGlossaryTermRelationship(GlossaryTermRelationship 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 description for the relationship.StringgetExpression()Returns the expression that describes the relationship.StringgetSource()Returns the id of the source of the knowledge of the relationship.GlossaryTermRelationshipStatusgetStatus()Returns whether this relationship should be used.StringgetSteward()Returns the name of the steward who assigned the relationship (or approved the discovered value).inthashCode()Return hash code based on properties.voidsetDescription(String description)Set up description of the relationship.voidsetExpression(String expression)Set up the expression that describes the relationship.voidsetSource(String source)Set up the id of the source of the knowledge of the relationship.voidsetStatus(GlossaryTermRelationshipStatus status)Set up whether this relationship should be used.voidsetSteward(String steward)Set up the id of the steward who assigned the relationship (or approved the discovered value).StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.accessservices.assetmanager.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
-
-
-
Constructor Detail
-
GlossaryTermRelationship
public GlossaryTermRelationship()
Default constructor
-
GlossaryTermRelationship
public GlossaryTermRelationship(GlossaryTermRelationship template)
Copy/clone constructor.- Parameters:
template- template object to copy.
-
-
Method Detail
-
setExpression
public void setExpression(String expression)
Set up the expression that describes the relationship.- Parameters:
expression- String name
-
getExpression
public String getExpression()
Returns the expression that describes the relationship.- Returns:
- String name
-
setDescription
public void setDescription(String description)
Set up description of the relationship.- Parameters:
description- String
-
getDescription
public String getDescription()
Return the description for the relationship.- Returns:
- String description
-
setStatus
public void setStatus(GlossaryTermRelationshipStatus status)
Set up whether this relationship should be used.- Parameters:
status- status enum (draft, active, deprecated, obsolete, other)
-
getStatus
public GlossaryTermRelationshipStatus getStatus()
Returns whether this relationship should be used.- Returns:
- status enum (draft, active, deprecated, obsolete, other)
-
setSteward
public void setSteward(String steward)
Set up the id of the steward who assigned the relationship (or approved the discovered value).- Parameters:
steward- user id or name of steward
-
getSteward
public String getSteward()
Returns the name of the steward who assigned the relationship (or approved the discovered value).- Returns:
- user id or name of steward
-
setSource
public void setSource(String source)
Set up the id of the source of the knowledge of the relationship.- Parameters:
source- String id
-
getSource
public String getSource()
Returns the id of the source of the knowledge of the relationship.- Returns:
- String id
-
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
-
-