|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AttributeData
This interface represents data that is associated with an attribute.
The name of the attribute can be accessed usingAttributeData.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 |
Method Summary | |
---|---|
void |
addData(java.lang.Object data)
append a data to the AttributeData list if the attribute is multi-valued. |
AttributeDef |
getAttributeDef()
Returns attribute definition for this attribute. |
java.lang.String |
getAttributeName()
Returns name of the attribute for which this instance represents data |
java.lang.Object |
getData()
Returns handle to the raw data. |
java.util.List |
getDataAsList()
Returns handle to data when data is multi valued. |
AttributeTypeEnum |
getType()
Indicates the type of data contained. |
void |
removeData(java.lang.Object data)
remove a data from the attribute |
void |
setData(java.lang.Object data)
sets data to the AttributeData |
void |
setDataAsList(java.util.List data)
sets data aslist to the AttributeData |
Method Detail |
---|
java.lang.String getAttributeName()
AttributeTypeEnum getType()
java.lang.Object getData()
AttributeDef getAttributeDef()
java.util.List getDataAsList()
void setData(java.lang.Object data)
data
- data to addvoid setDataAsList(java.util.List data)
data
- data to addvoid addData(java.lang.Object data)
data
- data to addvoid removeData(java.lang.Object data)
data
- the data to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |