Class OpenMetadataAttributeTypeDef
java.lang.Object
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataAttributeTypeDef
- Direct Known Subclasses:
OpenMetadataCollectionDef
,OpenMetadataEnumDef
,OpenMetadataPrimitiveDef
The OpenMetadataAttributeTypeDef class is used to identify the type of an attribute. These can be:
- OpenMetadataPrimitiveDef
- OpenMetadataCollectionDef
- OpenMetadataEnumDef
-
Field Summary
Modifier and TypeFieldDescriptionprotected OpenMetadataAttributeTypeDefCategory
protected String
protected String
protected String
protected String
protected long
protected String
Fields inherited from class org.odpi.openmetadata.frameworks.governanceaction.properties.OpenMetadataTypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructorprotected
Copy/clone constructor copies the values from the supplied template.protected
Minimal constructor is passed the category of the attribute type.protected
OpenMetadataAttributeTypeDef
(OpenMetadataAttributeTypeDefCategory category, String guid, String name) Typical constructor is passed the values that describe the type. -
Method Summary
Modifier and TypeMethodDescriptionabstract OpenMetadataAttributeTypeDef
Delegate the process of cloning to the subclass.boolean
Validate that an object is equal depending on their stored values.Return the category of the OpenMetadataTypeDef.Return the short description of this OpenMetadataAttributeTypeDef.Return the unique identifier of the glossary term that describes this OpenMetadataAttributeTypeDef.getGUID()
Return the unique identifier for this OpenMetadataTypeDef.getName()
Return the type name for this OpenMetadataTypeDef.long
Return the version of the OpenMetadataAttributeTypeDef.Return the version name, which is a more of a human readable form of the version number.int
hashCode()
Return a hash code based on the values of this object.void
Set up the category of the OpenMetadataTypeDef.void
setDescription
(String description) Set up the short description of this OpenMetadataAttributeTypeDef.void
setDescriptionGUID
(String descriptionGUID) Set up the unique identifier of the glossary term that describes this OpenMetadataAttributeTypeDef.void
Set up the unique identifier for this OpenMetadataTypeDef.void
Set up the type name for this OpenMetadataTypeDef.void
setVersion
(long version) Set up the version of the OpenMetadataAttributeTypeDef.void
setVersionName
(String versionName) Set up the version name, which is a more of a human readable form of the version number.toString()
Standard toString method.
-
Field Details
-
version
protected long version -
versionName
-
category
-
guid
-
name
-
description
-
descriptionGUID
-
-
Constructor Details
-
OpenMetadataAttributeTypeDef
protected OpenMetadataAttributeTypeDef()Default constructor -
OpenMetadataAttributeTypeDef
Minimal constructor is passed the category of the attribute type. Note that since OpenMetadataAttributeTypeDef is an abstract class, this method can only be called from a subclass.- Parameters:
category
- category of this OpenMetadataTypeDef
-
OpenMetadataAttributeTypeDef
protected OpenMetadataAttributeTypeDef(OpenMetadataAttributeTypeDefCategory category, String guid, String name) Typical constructor is passed the values that describe the type. Note that since OpenMetadataAttributeTypeDef is an abstract class, this method can only be called from a subclass.- Parameters:
category
- category of this OpenMetadataTypeDefguid
- unique id for the OpenMetadataTypeDefname
- unique name for the OpenMetadataTypeDef
-
OpenMetadataAttributeTypeDef
Copy/clone constructor copies the values from the supplied template. Note that since OpenMetadataAttributeTypeDef is an abstract class, this method can only be called from a subclass.- Parameters:
template
- OpenMetadataAttributeTypeDef
-
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Returns:
- subclass of OpenMetadataAttributeTypeDef
-
getVersion
public long getVersion()Return the version of the OpenMetadataAttributeTypeDef. Versions are created when an OpenMetadataAttributeTypeDef's properties are changed. If a description is updated, then this does not create a new version.- Returns:
- String version number
-
setVersion
public void setVersion(long version) Set up the version of the OpenMetadataAttributeTypeDef. Versions are created when an OpenMetadataAttributeTypeDef's properties are changed. If a description is updated, then this does not create a new version.- Parameters:
version
- long version number
-
getVersionName
Return the version name, which is a more of a human readable form of the version number. It can be used to show whether the change is a minor or major update.- Returns:
- String version name
-
setVersionName
Set up the version name, which is a more of a human readable form of the version number. It can be used to show whether the change is a minor or major update.- Parameters:
versionName
- String version name
-
getCategory
Return the category of the OpenMetadataTypeDef.- Returns:
- OpenMetadataAttributeTypeDefCategory enum
-
setCategory
Set up the category of the OpenMetadataTypeDef.- Parameters:
category
- OpenMetadataAttributeTypeDefCategory enum
-
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
-
getDescription
Return the short description of this OpenMetadataAttributeTypeDef.- Returns:
- String description
-
setDescription
Set up the short description of this OpenMetadataAttributeTypeDef.- Parameters:
description
- String description
-
getDescriptionGUID
Return the unique identifier of the glossary term that describes this OpenMetadataAttributeTypeDef. Null means there is no known glossary term.- Returns:
- String guid
-
setDescriptionGUID
Set up the unique identifier of the glossary term that describes this OpenMetadataAttributeTypeDef. Null means there is no known glossary term.- Parameters:
descriptionGUID
- String guid
-
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.
-