Class OpenMetadataRelationshipEndDef
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataRelationshipEndDef
OpenMetadataRelationshipEndDef describes the type of the entity and the attribute information for one end of a OpenMetadataRelationshipDef.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionDefault constructor creates an empty endCopy/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 OpenMetadataRelationshipEndDef.Return the attribute name used to describe this end of the relationshipReturn the identifiers of the OpenMetadataEntityDef describing the type of entity on this end of the relationship.int
hashCode()
Code for hash mapvoid
setAttributeCardinality
(OpenMetadataRelationshipEndCardinality 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 OpenMetadataRelationshipEndDef.void
setAttributeName
(String attributeName) Set up the attribute name used to describe this end of the relationship.void
setEntityType
(OpenMetadataTypeDefLink entityType) Set up the guid of the OpenMetadataEntityDef describing the type of entity on this end of the relationship.toString()
Standard toString method.
-
Constructor Details
-
OpenMetadataRelationshipEndDef
public OpenMetadataRelationshipEndDef()Default constructor creates an empty end -
OpenMetadataRelationshipEndDef
Copy/clone constructor copies the supplied template into the new end.- Parameters:
template
- OpenMetadataRelationshipEndDef
-
-
Method Details
-
getEntityType
Return the identifiers of the OpenMetadataEntityDef describing the type of entity on this end of the relationship.- Returns:
- OpenMetadataTypeDefLink unique identifiers
-
setEntityType
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
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:
- OpenMetadataRelationshipEndCardinality Enum
-
setAttributeCardinality
Set up the cardinality for this end of the relationship.- Parameters:
attributeCardinality
- OpenMetadataRelationshipEndCardinality 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 OpenMetadataRelationshipEndDef.- Returns:
- String guid
-
setAttributeDescriptionGUID
Set up the unique identifier (guid) of the glossary term that describes this OpenMetadataRelationshipEndDef.- Parameters:
attributeDescriptionGUID
- String guid
-
toString
Standard toString method. -
equals
Verify that supplied object has the same properties. -
hashCode
public int hashCode()Code for hash map
-