Class RelationshipAdviceAnnotation
java.lang.Object
org.odpi.openmetadata.frameworks.surveyaction.properties.PropertyBase
org.odpi.openmetadata.frameworks.surveyaction.properties.Annotation
org.odpi.openmetadata.frameworks.surveyaction.properties.DataFieldAnnotation
org.odpi.openmetadata.frameworks.surveyaction.properties.RelationshipAdviceAnnotation
RelationshipAdviceAnnotation is used to record a recommendation that a new relationship should be made from this data field to another
object in the open metadata types.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.surveyaction.properties.PropertyBase
CURRENT_AUDIT_HEADER_VERSION
-
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.Return the unique identifier of the object to connect to.Return the properties that should be stored in the relationship.Return the type of relationship to create.int
hashCode()
Create a hash code for this element type.void
setRelatedEntityGUID
(String relatedEntityGUID) Set up the unique identifier of the object to connect to.void
setRelationshipProperties
(Map<String, String> relationshipProperties) Set up the properties that should be stored in the relationship.void
setRelationshipTypeName
(String relationshipTypeName) Set up the type of relationship to create.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.frameworks.surveyaction.properties.Annotation
getAdditionalProperties, getAnalysisStep, getAnnotationStatus, getAnnotationSubjects, getAnnotationType, getConfidenceLevel, getExplanation, getExpression, getJsonProperties, getReviewComment, getReviewDate, getSteward, getSummary, setAdditionalProperties, setAnalysisStep, setAnnotationStatus, setAnnotationSubjects, setAnnotationType, setConfidenceLevel, setExplanation, setExpression, setJsonProperties, setReviewComment, setReviewDate, setSteward, setSummary
Methods inherited from class org.odpi.openmetadata.frameworks.surveyaction.properties.PropertyBase
getElementHeader, getExtendedProperties, getHeaderVersion, getOpenMetadataTypeName, setElementHeader, setExtendedProperties, setHeaderVersion, setOpenMetadataTypeName
-
Constructor Details
-
RelationshipAdviceAnnotation
public RelationshipAdviceAnnotation()Default constructor -
RelationshipAdviceAnnotation
Copy/clone constructor- Parameters:
template
- object to copy
-
-
Method Details
-
getRelatedEntityGUID
Return the unique identifier of the object to connect to.- Returns:
- string guid
-
setRelatedEntityGUID
Set up the unique identifier of the object to connect to.- Parameters:
relatedEntityGUID
- string guid
-
getRelationshipTypeName
Return the type of relationship to create.- Returns:
- type name
-
setRelationshipTypeName
Set up the type of relationship to create.- Parameters:
relationshipTypeName
- type name
-
getRelationshipProperties
Return the properties that should be stored in the relationship.- Returns:
- map of property names to property values
-
setRelationshipProperties
Set up the properties that should be stored in the relationship.- Parameters:
relationshipProperties
- map of property names to property values
-
toString
Standard toString method.- Overrides:
toString
in classDataFieldAnnotation
- 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 classAnnotation
- Parameters:
objectToCompare
- supplied object- Returns:
- boolean result of comparison
-
hashCode
public int hashCode()Create a hash code for this element type.- Overrides:
hashCode
in classAnnotation
- Returns:
- int hash code
-