@Exported
public interface AttributeData
AttributeData.getAttributeName(). AttributeData.getData() returns data
associated with the attribute, the return type for which is based in the type of attribute. Type can be inspected
using AttributeData.getType().
The following table maps CS types to the Java types that AttributeData.getData() returns.
| CS Data type | Java Type |
| INT | Integer |
| FLOAT | Double |
| STRING | String |
| DATE | Date |
| MONEY | Double |
| LONG | Long |
| LARGE_TEXT | String |
| ASSET | AssetId |
| BLOB | BlobObject |
| Modifier and Type | Method and Description |
|---|---|
void |
addData(Object data)
Appends data to the AttributeData list if the attribute is multi-valued.
|
AttributeDef |
getAttributeDef()
Returns attribute definition for this attribute.
|
String |
getAttributeName()
Returns name of the attribute for which this instance represents data
|
Object |
getData()
Returns handle to the raw data.
|
List |
getDataAsList()
Returns handle to data when data is multi valued.
|
AttributeTypeEnum |
getType()
Indicates the type of data contained.
|
void |
removeData(Object data)
remove a data from the attribute
|
void |
setData(Object data)
sets data to the AttributeData
|
void |
setDataAsList(List data)
sets data aslist to the AttributeData
|
String getAttributeName()
AttributeTypeEnum getType()
Object getData()
AttributeDef getAttributeDef()
List getDataAsList()
void setData(Object data)
data - data to addvoid setDataAsList(List data)
data - data to addvoid addData(Object data)
data - data to addvoid removeData(Object data)
data - the data to remove