Class RelationshipAdviceAnnotation

  • All Implemented Interfaces:
    java.io.Serializable

    public class RelationshipAdviceAnnotation
    extends DataFieldAnnotation
    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.
    See Also:
    Serialized Form
    • Constructor Detail

      • RelationshipAdviceAnnotation

        public RelationshipAdviceAnnotation()
        Default constructor
      • RelationshipAdviceAnnotation

        public RelationshipAdviceAnnotation​(RelationshipAdviceAnnotation template)
        Copy/clone constructor
        Parameters:
        template - object to copy
    • Method Detail

      • getRelatedEntityGUID

        public java.lang.String getRelatedEntityGUID()
        Return the unique identifier of the object to connect to.
        Returns:
        string guid
      • setRelatedEntityGUID

        public void setRelatedEntityGUID​(java.lang.String relatedEntityGUID)
        Set up the unique identifier of the object to connect to.
        Parameters:
        relatedEntityGUID - string guid
      • getRelationshipTypeName

        public java.lang.String getRelationshipTypeName()
        Return the type of relationship to create.
        Returns:
        type name
      • setRelationshipTypeName

        public void setRelationshipTypeName​(java.lang.String relationshipTypeName)
        Set up the type of relationship to create.
        Parameters:
        relationshipTypeName - type name
      • getRelationshipProperties

        public java.util.Map<java.lang.String,​java.lang.String> getRelationshipProperties()
        Return the properties that should be stored in the relationship.
        Returns:
        map of property names to property values
      • setRelationshipProperties

        public void setRelationshipProperties​(java.util.Map<java.lang.String,​java.lang.String> relationshipProperties)
        Set up the properties that should be stored in the relationship.
        Parameters:
        relationshipProperties - map of property names to property values
      • toString

        public java.lang.String toString()
        Standard toString method.
        Overrides:
        toString in class DataFieldAnnotation
        Returns:
        print out of variables in a JSON-style
      • equals

        public boolean equals​(java.lang.Object objectToCompare)
        Compare the values of the supplied object with those stored in the current object.
        Overrides:
        equals in class Annotation
        Parameters:
        objectToCompare - supplied object
        Returns:
        boolean result of comparison
      • hashCode

        public int hashCode()
        Create a hash code for this element type.
        Overrides:
        hashCode in class Annotation
        Returns:
        int hash code