Class RelationshipEndDef
- java.lang.Object
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
-
- org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.RelationshipEndDef
-
- 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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
-
Constructor Summary
Constructors Constructor Description RelationshipEndDef()Default constructor creates an empty endRelationshipEndDef(RelationshipEndDef template)Copy/clone constructor copies the supplied template into the new end.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object objectToCompare)Verify that supplied object has the same properties.RelationshipEndCardinalitygetAttributeCardinality()Return the cardinality for this end of the relationship.StringgetAttributeDescription()Return the attributeDescription of this end of the relationship.StringgetAttributeDescriptionGUID()Return the unique identifier (guid) of the glossary term that describes this RelationshipEndDef.StringgetAttributeName()Return the attribute name used to describe this end of the relationshipTypeDefLinkgetEntityType()Return the identifiers of the EntityDef describing the type of entity on this end of the relationship.inthashCode()Code for hash mapvoidsetAttributeCardinality(RelationshipEndCardinality attributeCardinality)Set up the cardinality for this end of the relationship.voidsetAttributeDescription(String attributeDescription)Set up the attributeDescription for this end of the relationship.voidsetAttributeDescriptionGUID(String attributeDescriptionGUID)Set up the unique identifier (guid) of the glossary term that describes this RelationshipEndDef.voidsetAttributeName(String attributeName)Set up the attribute name used to describe this end of the relationship.voidsetEntityType(TypeDefLink entityType)Set up the guid of the EntityDef describing the type of entity on this end of the relationship.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
getHeaderVersion, setHeaderVersion
-
-
-
-
Constructor Detail
-
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 Detail
-
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.
-
equals
public boolean equals(Object objectToCompare)
Verify that supplied object has the same properties.
-
-