Class OpenMetadataRelationshipEndDef

java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataRelationshipEndDef

public class OpenMetadataRelationshipEndDef extends OpenMetadataTypeDefElementHeader
OpenMetadataRelationshipEndDef describes the type of the entity and the attribute information for one end of a OpenMetadataRelationshipDef.
  • Constructor Details

    • OpenMetadataRelationshipEndDef

      public OpenMetadataRelationshipEndDef()
      Default constructor creates an empty end
    • OpenMetadataRelationshipEndDef

      public OpenMetadataRelationshipEndDef(OpenMetadataRelationshipEndDef template)
      Copy/clone constructor copies the supplied template into the new end.
      Parameters:
      template - OpenMetadataRelationshipEndDef
  • Method Details

    • getEntityType

      public OpenMetadataTypeDefLink getEntityType()
      Return the identifiers of the OpenMetadataEntityDef describing the type of entity on this end of the relationship.
      Returns:
      OpenMetadataTypeDefLink unique identifiers
    • setEntityType

      public void setEntityType(OpenMetadataTypeDefLink entityType)
      Set up the guid of the OpenMetadataEntityDef describing the type of entity on this end of the relationship.
      Parameters:
      entityType - OpenMetadataTypeDefLink unique identifiers for the entity's type
    • getAttributeName

      public String getAttributeName()
      Return the attribute name used to describe this end of the relationship
      Returns:
      String name for the attribute
    • setAttributeName

      public void setAttributeName(String attributeName)
      Set up the attribute name used to describe this end of the relationship.
      Parameters:
      attributeName - String name for the attribute
    • getAttributeCardinality

      public OpenMetadataRelationshipEndCardinality getAttributeCardinality()
      Return the cardinality for this end of the relationship.
      Returns:
      OpenMetadataRelationshipEndCardinality Enum
    • setAttributeCardinality

      public void setAttributeCardinality(OpenMetadataRelationshipEndCardinality attributeCardinality)
      Set up the cardinality for this end of the relationship.
      Parameters:
      attributeCardinality - OpenMetadataRelationshipEndCardinality Enum
    • getAttributeDescription

      public String getAttributeDescription()
      Return the attributeDescription of this end of the relationship.
      Returns:
      String attributeDescription
    • setAttributeDescription

      public void setAttributeDescription(String attributeDescription)
      Set up the attributeDescription for this end of the relationship.
      Parameters:
      attributeDescription - String
    • getAttributeDescriptionGUID

      public String getAttributeDescriptionGUID()
      Return the unique identifier (guid) of the glossary term that describes this OpenMetadataRelationshipEndDef.
      Returns:
      String guid
    • setAttributeDescriptionGUID

      public void setAttributeDescriptionGUID(String attributeDescriptionGUID)
      Set up the unique identifier (guid) of the glossary term that describes this OpenMetadataRelationshipEndDef.
      Parameters:
      attributeDescriptionGUID - String guid
    • toString

      public String toString()
      Standard toString method.
      Overrides:
      toString in class Object
      Returns:
      JSON style attributeDescription of variables.
    • equals

      public boolean equals(Object objectToCompare)
      Verify that supplied object has the same properties.
      Overrides:
      equals in class Object
      Parameters:
      objectToCompare - object to test
      Returns:
      result
    • hashCode

      public int hashCode()
      Code for hash map
      Overrides:
      hashCode in class Object
      Returns:
      hashcode