Class TypeDefLink
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
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TypeDefSummary
The TypeDefLink holds basic identifying information used to link one TypeDef to another. It is used in
the definition of types, ie in the TypeDefs themselves. Examples include linking a classification to an
entity, identifying super types and defining the entities at either end of a relationship.
TypeDefs are identified using both the guid and the type name. Both should be unique and most processing is with the type name because that is easiest for people to work with. The guid provides a means to check the identity of the types since it is easy to introduce two types with the same name in the distributed model.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected TypeDefStatus
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorTypeDefLink
(TypeDefLink template) Copy/clone constructor copies the values from the supplied template. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Validate that an object is equal depending on their stored values.getGUID()
Return the unique identifier for this TypeDef.getName()
Return the type name for this TypeDef.If the type has been replaced, this contains the GUID of the new type.If the type has been renamed, this contains the name of the new type.Return the status of this attribute.int
hashCode()
Return a hash code based on the values of this object.void
Set up the unique identifier for this TypeDef.void
Set up the type name for this TypeDef.void
setReplacedByTypeGUID
(String replacedByTypeGUID) If the type has been replaced, this contains the GUID of the new type.void
setReplacedByTypeName
(String replacedByTypeName) If the type has been renamed, this contains the name of the new type.void
setStatus
(TypeDefStatus status) Set up the status of this type.toString()
Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Field Details
-
guid
-
name
-
status
-
replacedByTypeGUID
-
replacedByTypeName
-
-
Constructor Details
-
TypeDefLink
public TypeDefLink()Default constructor -
TypeDefLink
Copy/clone constructor copies the values from the supplied template.- Parameters:
template
- TypeDefLink
-
-
Method Details
-
getGUID
Return the unique identifier for this TypeDef.- Returns:
- String guid
-
setGUID
Set up the unique identifier for this TypeDef.- Parameters:
guid
- String guid
-
getName
Return the type name for this TypeDef. In simple environments, the type name is unique but where metadata repositories from different vendors are in operation it is possible that 2 types may have a name clash. The GUID is the reliable unique identifier.- Returns:
- String name
-
setName
Set up the type name for this TypeDef. In simple environments, the type name is unique but where metadata repositories from different vendors are in operation it is possible that 2 types may have a name clash. The GUID is the reliable unique identifier.- Parameters:
name
- String name
-
getStatus
Return the status of this attribute.- Returns:
- status (null means ACTIVE)
-
setStatus
Set up the status of this type.- Parameters:
status
- status (null means ACTIVE)
-
getReplacedByTypeGUID
If the type has been replaced, this contains the GUID of the new type.- Returns:
- new type GUID
-
setReplacedByTypeGUID
If the type has been replaced, this contains the GUID of the new type.- Parameters:
replacedByTypeGUID
- new type GUID
-
getReplacedByTypeName
If the type has been renamed, this contains the name of the new type.- Returns:
- new type name
-
setReplacedByTypeName
If the type has been renamed, this contains the name of the new type.- Parameters:
replacedByTypeName
- new type name
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values.- Overrides:
equals
in classRepositoryElementHeader
- Parameters:
objectToCompare
- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCode
in classRepositoryElementHeader
- Returns:
- in hash code
-