Class RelationshipEndDef
java.lang.Object
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.RelationshipEndDef
- All Implemented Interfaces:
Serializable
RelationshipEndDef describes the type of the entity and the attribute information for one end of a RelationshipDef.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor creates an empty endRelationshipEndDef
(RelationshipEndDef template) Copy/clone constructor copies the supplied template into the new end. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Verify that supplied object has the same properties.Return the cardinality for this end of the relationship.Return the attributeDescription of this end of the relationship.Return the unique identifier (guid) of the glossary term that describes this RelationshipEndDef.Return the attribute name used to describe this end of the relationshipReturn the identifiers of the EntityDef describing the type of entity on this end of the relationship.int
hashCode()
Code for hash mapvoid
setAttributeCardinality
(RelationshipEndCardinality attributeCardinality) Set up the cardinality for this end of the relationship.void
setAttributeDescription
(String attributeDescription) Set up the attributeDescription for this end of the relationship.void
setAttributeDescriptionGUID
(String attributeDescriptionGUID) Set up the unique identifier (guid) of the glossary term that describes this RelationshipEndDef.void
setAttributeName
(String attributeName) Set up the attribute name used to describe this end of the relationship.void
setEntityType
(TypeDefLink entityType) Set up the guid of the EntityDef describing the type of entity on this end of the relationship.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
RelationshipEndDef
public RelationshipEndDef()Default constructor creates an empty end -
RelationshipEndDef
Copy/clone constructor copies the supplied template into the new end.- Parameters:
template
- RelationshipEndDef
-
-
Method Details
-
getEntityType
Return the identifiers of the EntityDef describing the type of entity on this end of the relationship.- Returns:
- TypeDefLink unique identifiers
-
setEntityType
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
Return the attribute name used to describe this end of the relationship- Returns:
- String name for the attribute
-
setAttributeName
Set up the attribute name used to describe this end of the relationship.- Parameters:
attributeName
- String name for the attribute
-
getAttributeCardinality
Return the cardinality for this end of the relationship.- Returns:
- RelationshipEndCardinality Enum
-
setAttributeCardinality
Set up the cardinality for this end of the relationship.- Parameters:
attributeCardinality
- RelationshipEndCardinality Enum
-
getAttributeDescription
Return the attributeDescription of this end of the relationship.- Returns:
- String attributeDescription
-
setAttributeDescription
Set up the attributeDescription for this end of the relationship.- Parameters:
attributeDescription
- String
-
getAttributeDescriptionGUID
Return the unique identifier (guid) of the glossary term that describes this RelationshipEndDef.- Returns:
- String guid
-
setAttributeDescriptionGUID
Set up the unique identifier (guid) of the glossary term that describes this RelationshipEndDef.- Parameters:
attributeDescriptionGUID
- String guid
-
toString
Standard toString method. -
equals
Verify that supplied object has the same properties.- Overrides:
equals
in classRepositoryElementHeader
- Parameters:
objectToCompare
- object to test- Returns:
- result
-
hashCode
public int hashCode()Code for hash map- Overrides:
hashCode
in classRepositoryElementHeader
- Returns:
- hashcode
-