@Exported public class AttributeDataImpl extends Object implements AttributeData
AttributeData interface| Constructor and Description |
|---|
AttributeDataImpl(AttributeDef def,
String attributeName,
AttributeTypeEnum type,
List data)
Constructs an AttributeData with attribute def, name, type and a list of data
|
AttributeDataImpl(AttributeDef def,
String attributeName,
AttributeTypeEnum type,
Object data)
Constructs an AttributeData with attribute def, name, type and data
|
AttributeDataImpl(String assettype,
String subtype,
String attributeName,
AttributeTypeEnum type,
List data)
Constructs an AttributeData with assettype, subtype, name, type and a list of data
|
AttributeDataImpl(String assettype,
String subtype,
String attributeName,
AttributeTypeEnum type,
Object data)
Constructs an AttributeData with assettype, subtype, name, type and data
|
| 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 |
setAttributeDef(AttributeDef attributeDef)
Sets the AttributeDef for this AttributeData
|
void |
setData(Object data)
sets data to the AttributeData
|
void |
setDataAsList(List data)
sets data aslist to the AttributeData
|
String |
toString() |
public AttributeDataImpl(AttributeDef def, String attributeName, AttributeTypeEnum type, Object data)
def - the Attribute DefinitionattributeName - the name of the attributetype - the type of the attributedata - the data for the attributepublic AttributeDataImpl(AttributeDef def, String attributeName, AttributeTypeEnum type, List data)
def - the Attribute DefinitionattributeName - the name of the attributetype - the type of the attributedata - the data for the attributepublic AttributeDataImpl(String assettype, String subtype, String attributeName, AttributeTypeEnum type, Object data)
assettype - the asset typesubtype - the asset subtypeattributeName - the name of the attributetype - the type of the attributedata - the data for the attributepublic AttributeDataImpl(String assettype, String subtype, String attributeName, AttributeTypeEnum type, List data)
assettype - the asset typesubtype - the asset subtypeattributeName - the name of the attributetype - the type of the attributedata - the data for the attributepublic void setAttributeDef(AttributeDef attributeDef)
attributeDef - the AttributeDefpublic String getAttributeName()
AttributeDatagetAttributeName in interface AttributeDatapublic AttributeTypeEnum getType()
AttributeDatagetType in interface AttributeDatapublic Object getData()
AttributeDatagetData in interface AttributeDatapublic AttributeDef getAttributeDef()
AttributeDatagetAttributeDef in interface AttributeDatapublic List getDataAsList()
AttributeDatagetDataAsList in interface AttributeDatapublic void setData(Object data)
AttributeDatasetData in interface AttributeDatadata - data to addpublic void setDataAsList(List data)
AttributeDatasetDataAsList in interface AttributeDatadata - data to addpublic void addData(Object data)
AttributeDataaddData in interface AttributeDatadata - data to addpublic void removeData(Object data)
AttributeDataremoveData in interface AttributeDatadata - the data to remove