Class OpenMetadataTypeDefLink
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefLink
- Direct Known Subclasses:
OpenMetadataTypeDefSummary
The OpenMetadataTypeDefLink holds basic identifying information used to link one OpenMetadataTypeDef 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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected String
protected String
protected String
protected String
protected OpenMetadataTypeDefStatus
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorCopy/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 OpenMetadataTypeDef.getName()
Return the type name for this OpenMetadataTypeDef.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 OpenMetadataTypeDef.void
Set up the type name for this OpenMetadataTypeDef.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
(OpenMetadataTypeDefStatus status) Set up the status of this type.toString()
Standard toString method.
-
Field Details
-
guid
-
name
-
status
-
replacedByTypeGUID
-
replacedByTypeName
-
-
Constructor Details
-
OpenMetadataTypeDefLink
public OpenMetadataTypeDefLink()Default constructor -
OpenMetadataTypeDefLink
Copy/clone constructor copies the values from the supplied template.- Parameters:
template
- OpenMetadataTypeDefLink
-
-
Method Details
-
getGUID
Return the unique identifier for this OpenMetadataTypeDef.- Returns:
- String guid
-
setGUID
Set up the unique identifier for this OpenMetadataTypeDef.- Parameters:
guid
- String guid
-
getName
Return the type name for this OpenMetadataTypeDef. 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 OpenMetadataTypeDef. 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. -
hashCode
public int hashCode()Return a hash code based on the values of this object.
-