Class RelationshipDef
- java.lang.Object
-
- 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
public class RelationshipDef extends TypeDef
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef
createdBy, createTime, description, descriptionGUID, 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
Constructors Constructor Description RelationshipDef()Minimal 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TypeDefcloneFromSubclass()Delegate the process of cloning to the subclass.booleanequals(Object objectToCompare)Validate that an object is equal depending on their stored values.RelationshipEndDefgetEndDef1()Return the details associated with the first end of the relationship.RelationshipEndDefgetEndDef2()Return the details associated with the second end of the relationship.ClassificationPropagationRulegetPropagationRule()Return the rule that determines if classifications are propagated across this relationship.inthashCode()Return a hash code based on the values of this object.voidsetEndDef1(RelationshipEndDef endDef1)Set up the details associated with the first end of the relationship.voidsetEndDef2(RelationshipEndDef endDef2)Set up the details associated with the second end of the relationship.voidsetPropagationRule(ClassificationPropagationRule propagationRule)Set up the rule that determines if classifications are propagated across this relationship.StringtoString()Standard toString method.-
Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDef
getCreatedBy, getCreateTime, getDescription, getDescriptionGUID, getExternalStandardMappings, getInitialStatus, getOptions, getOrigin, getPropertiesDefinition, getSuperType, getUpdatedBy, getUpdateTime, getValidInstanceStatusList, setCreatedBy, setCreateTime, setDescription, setDescriptionGUID, 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.typedefs.TypeDefElementHeader
getHeaderVersion, setHeaderVersion
-
-
-
-
Constructor Detail
-
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
public RelationshipDef(RelationshipDef templateTypeDef)
Copy/clone constructor creates a copy of the supplied template.- Parameters:
templateTypeDef- template to copy
-
-
Method Detail
-
cloneFromSubclass
public TypeDef cloneFromSubclass()
Delegate the process of cloning to the subclass.- Specified by:
cloneFromSubclassin classTypeDef- Returns:
- subclass of TypeDef
-
getPropagationRule
public ClassificationPropagationRule getPropagationRule()
Return the rule that determines if classifications are propagated across this relationship.- Returns:
- ClassificationPropagationRule Enum
-
setPropagationRule
public void setPropagationRule(ClassificationPropagationRule propagationRule)
Set up the rule that determines if classifications are propagated across this relationship.- Parameters:
propagationRule- ClassificationPropagationRule Enum
-
getEndDef1
public RelationshipEndDef getEndDef1()
Return the details associated with the first end of the relationship.- Returns:
- endDef1 RelationshipEndDef
-
setEndDef1
public void setEndDef1(RelationshipEndDef endDef1)
Set up the details associated with the first end of the relationship.- Parameters:
endDef1- RelationshipEndDef
-
getEndDef2
public RelationshipEndDef getEndDef2()
Return the details associated with the second end of the relationship.- Returns:
- endDef2 RelationshipEndDef
-
setEndDef2
public void setEndDef2(RelationshipEndDef endDef2)
Set up the details associated with the second end of the relationship.- Parameters:
endDef2- RelationshipEndDef
-
toString
public String toString()
Standard toString method.
-
equals
public boolean equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.
-
-