Class SemanticAssignmentProperties
java.lang.Object
org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
org.odpi.openmetadata.frameworks.openmetadata.properties.governance.SemanticAssignmentProperties
SemanticAssignmentProperties links an element to a glossary term to indicate that the glossary term describes its meaning.
-
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.int
Return the level of confidence that the relationship is correct.Return the name/description of the creator of the relationship.Return the description for the relationship.Returns the expression that describes the relationship.Returns the id of the source of the knowledge of the relationship.Returns whether this relationship should be used.Returns the id of the steward who assigned the relationship (or approved the discovered value).int
hashCode()
Return hash code based on properties.void
setConfidence
(int confidence) Set up the level of confidence that the relationship is correct.void
setCreatedBy
(String createdBy) Set up the name/description of the creator of the relationship.void
setDescription
(String description) Set up description of the relationship.void
setExpression
(String expression) Set up the expression that describes the relationship.void
Set up the id of the source of the knowledge of the relationship.void
Set up whether this relationship should be used.void
setSteward
(String steward) Set up the id of the steward who assigned the relationship (or approved the discovered value).toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.openmetadata.properties.RelationshipProperties
getEffectiveFrom, getEffectiveTo, getExtendedProperties, setEffectiveFrom, setEffectiveTo, setExtendedProperties
-
Constructor Details
-
SemanticAssignmentProperties
public SemanticAssignmentProperties()Default constructor -
SemanticAssignmentProperties
Copy/clone constructor.- Parameters:
template
- template object to copy.
-
-
Method Details
-
setExpression
Set up the expression that describes the relationship.- Parameters:
expression
- String name
-
getExpression
Returns the expression that describes the relationship.- Returns:
- String name
-
setDescription
Set up description of the relationship.- Parameters:
description
- String
-
getDescription
Return the description for the relationship.- Returns:
- String description
-
setStatus
Set up whether this relationship should be used.- Parameters:
status
- status enum
-
getStatus
Returns whether this relationship should be used.- Returns:
- status enum
-
getConfidence
public int getConfidence()Return the level of confidence that the relationship is correct. 0 means unassigned. Typical assigned values are usually between 1-100 as a percentage scale.- Returns:
- int
-
setConfidence
public void setConfidence(int confidence) Set up the level of confidence that the relationship is correct. 0 means unassigned. Typical assigned values are usually between 1-100 as a percentage scale.- Parameters:
confidence
- int
-
getCreatedBy
Return the name/description of the creator of the relationship. The relationship includes the userId of the creator, so this field is for a more business friendly name.- Returns:
- string name
-
setCreatedBy
Set up the name/description of the creator of the relationship. The relationship includes the userId of the creator, so this field is for a more business friendly name.- Parameters:
createdBy
- string name
-
setSteward
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
Returns the id of the steward who assigned the relationship (or approved the discovered value).- Returns:
- user id or name of steward
-
setSource
Set up the id of the source of the knowledge of the relationship.- Parameters:
source
- String id
-
getSource
Returns the id of the source of the knowledge of the relationship.- Returns:
- String id
-
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
-