Class AttributeTypeDef
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.AttributeTypeDef
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
CollectionDef,EnumDef,PrimitiveDef
The AttributeTypeDef class is used to identify the type of an attribute. These can be:
- PrimitiveDef
- CollectionDef
- EnumDef
- See Also:
-
Field Summary
Fields inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.typedefs.TypeDefElementHeader
CURRENT_TYPE_DEF_HEADER_VERSION -
Method Summary
Modifier and TypeMethodDescriptionabstract AttributeTypeDefDelegate the process of cloning to the subclass.booleanValidate that an object is equal depending on their stored values.Return the category of the TypeDef.Return the short description of this AttributeTypeDef.Return the unique identifier of the glossary term that describes this AttributeTypeDef.Return the URL to the wiki page that gives more information for this type.getGUID()Return the unique identifier for this TypeDef.getName()Return the type name for this TypeDef.longReturn the version of the AttributeTypeDef.Return the version name, which is a more of a human readable form of the version number.inthashCode()Return a hash code based on the values of this object.voidsetCategory(AttributeTypeDefCategory category) Set up the category of the TypeDef.voidsetDescription(String description) Set up the short description of this AttributeTypeDef.voidsetDescriptionGUID(String descriptionGUID) Set up the unique identifier of the glossary term that describes this AttributeTypeDef.voidsetDescriptionWiki(String descriptionWiki) Set up the URL to the wiki page that gives more information for this type.voidSet up the unique identifier for this TypeDef.voidSet up the type name for this TypeDef.voidsetVersion(long version) Set up the version of the AttributeTypeDef.voidsetVersionName(String versionName) Set up the version name, which is a more of a human readable form of the version number.toString()Standard toString method.Methods inherited from class org.odpi.openmetadata.repositoryservices.connectors.stores.metadatacollectionstore.properties.RepositoryElementHeader
getHeaderVersion, setHeaderVersion
-
Method Details
-
cloneFromSubclass
Delegate the process of cloning to the subclass.- Returns:
- subclass of AttributeTypeDef
-
getVersion
public long getVersion()Return the version of the AttributeTypeDef. Versions are created when an AttributeTypeDef'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 AttributeTypeDef. Versions are created when an AttributeTypeDef'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 TypeDef.- Returns:
- AttributeTypeDefCategory enum
-
setCategory
Set up the category of the TypeDef.- Parameters:
category- AttributeTypeDefCategory enum
-
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
-
getDescription
Return the short description of this AttributeTypeDef.- Returns:
- String description
-
setDescription
Set up the short description of this AttributeTypeDef.- Parameters:
description- String description
-
getDescriptionGUID
Return the unique identifier of the glossary term that describes this AttributeTypeDef. Null means there is no known glossary term.- Returns:
- String guid
-
setDescriptionGUID
Set up the unique identifier of the glossary term that describes this AttributeTypeDef. Null means there is no known glossary term.- Parameters:
descriptionGUID- String guid
-
getDescriptionWiki
Return the URL to the wiki page that gives more information for this type.- Returns:
- url string
-
setDescriptionWiki
Set up the URL to the wiki page that gives more information for this type.- Parameters:
descriptionWiki- url string
-
toString
Standard toString method. -
equals
Validate that an object is equal depending on their stored values.- Overrides:
equalsin classRepositoryElementHeader- Parameters:
objectToCompare- object- Returns:
- boolean result
-
hashCode
public int hashCode()Return a hash code based on the values of this object.- Overrides:
hashCodein classRepositoryElementHeader- Returns:
- in hash code
-