Class RelationshipDef
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.TypeDefLink
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefSummary
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef
org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.RelationshipDef
- All Implemented Interfaces:
Serializable
RelationshipDef describes the type of a relationship. A relationships links two entities together.
The RelationshipDef defines the types of those entities in the RelationshipEndDefs. It also
defines if this relationship allows classifications to propagate through it.
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef
createdBy, createTime, description, descriptionGUID, descriptionWiki, externalStandardMappings, initialStatus, options, origin, propertiesDefinition, superType, updatedBy, updateTime, validInstanceStatusList
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefSummary
category, version, versionName
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefLink
guid, name, replacedByTypeGUID, replacedByTypeName, status
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
ConstructorDescriptionMinimal constructor builds an empty RelationshipDefRelationshipDef
(RelationshipDef templateTypeDef) Copy/clone constructor creates a copy of the supplied template.RelationshipDef
(TypeDefCategory category, String guid, String name, long version, String versionName) Typical constructor is passed the properties of the typedef's super class being constructed. -
Method Summary
Modifier and TypeMethodDescriptionDelegate the process of cloning to the subclass.boolean
Validate that an object is equal depending on their stored values.Return the details associated with the first end of the relationship.Return the details associated with the second end of the relationship.boolean
Return whether multiple relationships of this type are allowed between the same two entities.Return the rule that determines if classifications are propagated across this relationship.int
hashCode()
Return a hash code based on the values of this object.void
setEndDef1
(RelationshipEndDef endDef1) Set up the details associated with the first end of the relationship.void
setEndDef2
(RelationshipEndDef endDef2) Set up the details associated with the second end of the relationship.void
setMultiLink
(boolean multiLink) Set up whether multiple relationships of this type are allowed between the same two entities.void
setPropagationRule
(ClassificationPropagationRule propagationRule) Set up the rule that determines if classifications are propagated across this relationship.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef
getCreatedBy, getCreateTime, getDescription, getDescriptionGUID, getDescriptionWiki, getExternalStandardMappings, getInitialStatus, getOptions, getOrigin, getPropertiesDefinition, getSuperType, getUpdatedBy, getUpdateTime, getValidInstanceStatusList, setCreatedBy, setCreateTime, setDescription, setDescriptionGUID, setDescriptionWiki, setExternalStandardMappings, setInitialStatus, setOptions, setOrigin, setPropertiesDefinition, setSuperType, setUpdatedBy, setUpdateTime, setValidInstanceStatusList
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefSummary
getCategory, getVersion, getVersionName, setCategory, setVersion, setVersionName
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefLink
getGUID, getName, getReplacedByTypeGUID, getReplacedByTypeName, getStatus, setGUID, setName, setReplacedByTypeGUID, setReplacedByTypeName, setStatus
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Constructor Details
-
RelationshipDef
public RelationshipDef()Minimal constructor builds an empty RelationshipDef -
RelationshipDef
public RelationshipDef(TypeDefCategory category, String guid, String name, long version, String versionName) Typical constructor is passed the properties of the typedef's super class being constructed.- Parameters:
category
- category of this TypeDefguid
- unique id for the TypeDefname
- unique name for the TypeDefversion
- active version number for the TypeDefversionName
- name for the active version of the TypeDef
-
RelationshipDef
Copy/clone constructor creates a copy of the supplied template.- Parameters:
templateTypeDef
- template to copy
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclass
in classTypeDef
- Returns:
- subclass of TypeDef
-
getPropagationRule
Return the rule that determines if classifications are propagated across this relationship.- Returns:
- ClassificationPropagationRule Enum
-
setPropagationRule
Set up the rule that determines if classifications are propagated across this relationship.- Parameters:
propagationRule
- ClassificationPropagationRule Enum
-
getEndDef1
Return the details associated with the first end of the relationship.- Returns:
- endDef1 RelationshipEndDef
-
setEndDef1
Set up the details associated with the first end of the relationship.- Parameters:
endDef1
- RelationshipEndDef
-
getEndDef2
Return the details associated with the second end of the relationship.- Returns:
- endDef2 RelationshipEndDef
-
setEndDef2
Set up the details associated with the second end of the relationship.- Parameters:
endDef2
- RelationshipEndDef
-
getMultiLink
public boolean getMultiLink()Return whether multiple relationships of this type are allowed between the same two entities.- Returns:
- boolean flag
-
setMultiLink
public void setMultiLink(boolean multiLink) Set up whether multiple relationships of this type are allowed between the same two entities.- Parameters:
multiLink
- boolean flag
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values. -
hashCode
public int hashCode()Return a hash code based on the values of this object.
-