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 |
CURRENT_TYPE_DEF_HEADER_VERSION| Constructor and Description |
|---|
TypeDefLink()
Default constructor
|
TypeDefLink(String guid,
String name)
Typical constructor is passed the unique identifier and name of the typedef being constructed.
|
TypeDefLink(TypeDefLink template)
Copy/clone constructor copies the values from the supplied template.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object object)
Validated that the GUID, name and version number of a TypeDef are equal.
|
String |
getGUID()
Return the unique identifier for this TypeDef.
|
String |
getName()
Return the type name for this TypeDef.
|
int |
hashCode()
Using the GUID as a hashcode.
|
void |
setGUID(String guid)
Set up the unique identifier for this TypeDef.
|
void |
setName(String name)
Set up the type name for this TypeDef.
|
String |
toString()
Standard toString method.
|
getHeaderVersion, setHeaderVersionpublic TypeDefLink()
public TypeDefLink(String guid, String name)
guid - unique id for the TypeDefname - unique name for the TypeDefpublic 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 String toString()
public boolean equals(Object object)
Copyright © 2018–2019 ODPi. All rights reserved.