public class Reference extends Object implements Serializable, Cloneable
Reference is used to set and return the objects referenced by a container.| Constructor and Description |
|---|
Reference() |
Reference(String label,
String description,
ReferenceType refType,
String name) |
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Makes a deep copy of the object.
|
boolean |
equals(Object obj)
Use this method for checking equality between the current object and the
provided one.
|
String |
getDescription()
Returns a string specifying a display-only description for the reference.
|
String |
getLabel()
Returns a string specifying a display-only label for the reference.
|
String |
getName()
Returns name of object.
|
ReferenceType |
getReferenceType()
Returns union that defines either an internal or external reference
depending on its datatype,which is either 0
(
Constants.ARREF_DATA_ARSREF) or
1 (Constants.ARREF_DATA_EXTREF). |
int |
hashCode()
Returns the hash code value for this instance of the current class.
|
void |
setDescription(String desc)
Sets a character string specifying a display-only description for the reference.
|
void |
setLabel(String label)
Sets a character string specifying a display-only label for the reference.
|
void |
setName(String name)
Sets name of object.
|
void |
setReferenceType(ReferenceType type) |
String |
toString()
Returns a string description of the object.
|
public Reference()
public Reference(String label, String description, ReferenceType refType, String name)
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedExceptionpublic String getLabel()
public void setLabel(String label)
Constants.ARMAX_CON_LABEL_LEN (255 bytes).public String getDescription()
public void setDescription(String desc)
Constants.ARMAX_CON_DESCRIPTION_LEN (2000 bytes).public ReferenceType getReferenceType()
Constants.ARREF_DATA_ARSREF) or
1 (Constants.ARREF_DATA_EXTREF).public void setReferenceType(ReferenceType type)
public String getName()
public void setName(String name)
public boolean equals(Object obj)
public int hashCode()
? Copyright 2013 BMC Software, Inc.