All Implemented Interfaces:
Serializable

public class RelationshipEndDef extends TypeDefElementHeader
RelationshipEndDef describes the type of the entity and the attribute information for one end of a RelationshipDef.
See Also:
  • Constructor Details

    • RelationshipEndDef

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

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

    • getEntityType

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

      public void setEntityType(TypeDefLink entityType)
      Set up the guid of the EntityDef describing the type of entity on this end of the relationship.
      Parameters:
      entityType - TypeDefLink 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 RelationshipEndCardinality getAttributeCardinality()
      Return the cardinality for this end of the relationship.
      Returns:
      RelationshipEndCardinality Enum
    • setAttributeCardinality

      public void setAttributeCardinality(RelationshipEndCardinality attributeCardinality)
      Set up the cardinality for this end of the relationship.
      Parameters:
      attributeCardinality - RelationshipEndCardinality 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 RelationshipEndDef.
      Returns:
      String guid
    • setAttributeDescriptionGUID

      public void setAttributeDescriptionGUID(String attributeDescriptionGUID)
      Set up the unique identifier (guid) of the glossary term that describes this RelationshipEndDef.
      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 RepositoryElementHeader
      Parameters:
      objectToCompare - object to test
      Returns:
      result
    • hashCode

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