public abstract class AttributeTypeDef extends TypeDefElementHeader
| Modifier and Type | Field and Description |
|---|---|
protected AttributeTypeDefCategory |
category |
protected String |
description |
protected String |
descriptionGUID |
protected String |
guid |
protected String |
name |
protected long |
version |
protected String |
versionName |
CURRENT_TYPE_DEF_HEADER_VERSION| Modifier | Constructor and Description |
|---|---|
protected |
AttributeTypeDef()
Default constructor
|
protected |
AttributeTypeDef(AttributeTypeDef template)
Copy/clone constructor copies the values from the supplied template.
|
protected |
AttributeTypeDef(AttributeTypeDefCategory category)
Minimal constructor is passed the category of the attribute type.
|
protected |
AttributeTypeDef(AttributeTypeDefCategory category,
String guid,
String name)
Typical constructor is passed the values that describe the type.
|
| Modifier and Type | Method and Description |
|---|---|
abstract AttributeTypeDef |
cloneFromSubclass()
Delegate the process of cloning to the subclass.
|
boolean |
equals(Object object)
Validated that the GUID, name and version number of a AttributeTypeDef are equal.
|
AttributeTypeDefCategory |
getCategory()
Return the category of the TypeDef.
|
String |
getDescription()
Return the short description of this AttributeTypeDef.
|
String |
getDescriptionGUID()
Return the unique identifier of the glossary term that describes this AttributeTypeDef.
|
String |
getGUID()
Return the unique identifier for this TypeDef.
|
String |
getName()
Return the type name for this TypeDef.
|
long |
getVersion()
Return the version of the AttributeTypeDef.
|
String |
getVersionName()
Return the version name, which is a more of a human readable form of the version number.
|
int |
hashCode()
Using the GUID as a hashcode.
|
void |
setCategory(AttributeTypeDefCategory category)
Set up the category of the TypeDef.
|
void |
setDescription(String description)
Set up the short description of this AttributeTypeDef.
|
void |
setDescriptionGUID(String descriptionGUID)
Set up the unique identifier of the glossary term that describes this AttributeTypeDef.
|
void |
setGUID(String guid)
Set up the unique identifier for this TypeDef.
|
void |
setName(String name)
Set up the type name for this TypeDef.
|
void |
setVersion(long version)
Set up the version of the AttributeTypeDef.
|
void |
setVersionName(String versionName)
Set up the version name, which is a more of a human readable form of the version number.
|
String |
toString()
Standard toString method.
|
getHeaderVersion, setHeaderVersionprotected long version
protected String versionName
protected AttributeTypeDefCategory category
protected String guid
protected String name
protected String description
protected String descriptionGUID
protected AttributeTypeDef()
protected AttributeTypeDef(AttributeTypeDefCategory category)
category - category of this TypeDefprotected AttributeTypeDef(AttributeTypeDefCategory category, String guid, String name)
category - category of this TypeDefguid - unique id for the TypeDefname - unique name for the TypeDefprotected AttributeTypeDef(AttributeTypeDef template)
template - AttributeTypeDefpublic abstract AttributeTypeDef cloneFromSubclass()
public long getVersion()
public void setVersion(long version)
version - long version numberpublic String getVersionName()
public void setVersionName(String versionName)
versionName - String version namepublic AttributeTypeDefCategory getCategory()
public void setCategory(AttributeTypeDefCategory category)
category - AttributeTypeDefCategory enumpublic String getGUID()
public void setGUID(String guid)
guid - String guidpublic String getName()
public void setName(String name)
name - String namepublic String getDescription()
public void setDescription(String description)
description - String descriptionpublic String getDescriptionGUID()
public void setDescriptionGUID(String descriptionGUID)
descriptionGUID - String guidpublic String toString()
public boolean equals(Object object)
Copyright © 2018–2019 ODPi. All rights reserved.