public class TypeDefLink extends TypeDefElementHeader
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.
| Modifier and Type | Field and Description |
|---|---|
protected String |
guid |
protected String |
name |
protected String |
replacedByTypeGUID |
protected String |
replacedByTypeName |
protected TypeDefStatus |
status |
CURRENT_TYPE_DEF_HEADER_VERSION| Constructor and Description |
|---|
TypeDefLink()
Default constructor
|
TypeDefLink(TypeDefLink template)
Copy/clone constructor copies the values from the supplied template.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object objectToCompare)
Validate that an object is equal depending on their stored values.
|
String |
getGUID()
Return the unique identifier for this TypeDef.
|
String |
getName()
Return the type name for this TypeDef.
|
String |
getReplacedByTypeGUID()
If the type has been replaced, this contains the GUID of the new type.
|
String |
getReplacedByTypeName()
If the type has been renamed, this contains the name of the new type.
|
TypeDefStatus |
getStatus()
Return the status of this attribute.
|
int |
hashCode()
Return a hash code based on the values of this object.
|
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 |
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.
|
String |
toString()
Standard toString method.
|
getHeaderVersion, setHeaderVersionprotected String guid
protected String name
protected TypeDefStatus status
protected String replacedByTypeGUID
protected String replacedByTypeName
public TypeDefLink()
public TypeDefLink(TypeDefLink template)
template - TypeDefLinkpublic String getGUID()
public void setGUID(String guid)
guid - String guidpublic String getName()
public void setName(String name)
name - String namepublic TypeDefStatus getStatus()
public void setStatus(TypeDefStatus status)
status - status (null means ACTIVE)public String getReplacedByTypeGUID()
public void setReplacedByTypeGUID(String replacedByTypeGUID)
replacedByTypeGUID - new type GUIDpublic String getReplacedByTypeName()
public void setReplacedByTypeName(String replacedByTypeName)
replacedByTypeName - new type namepublic String toString()
public boolean equals(Object objectToCompare)
Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.