|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.fatwire.assetapi.data.AttributeDataImpl
public class AttributeDataImpl
Default implementation of AttributeData
interface
Constructor Summary | |
---|---|
AttributeDataImpl(AttributeDef def,
java.lang.String attributeName,
AttributeTypeEnum type,
java.util.List data)
Constructs an AttributeData with attribute def, name, type and a list of data |
|
AttributeDataImpl(AttributeDef def,
java.lang.String attributeName,
AttributeTypeEnum type,
java.lang.Object data)
Constructs an AttributeData with attribute def, name, type and data |
|
AttributeDataImpl(java.lang.String assettype,
java.lang.String subtype,
java.lang.String attributeName,
AttributeTypeEnum type,
java.util.List data)
Constructs an AttributeData with assettype, subtype, name, type and a list of data |
|
AttributeDataImpl(java.lang.String assettype,
java.lang.String subtype,
java.lang.String attributeName,
AttributeTypeEnum type,
java.lang.Object data)
Constructs an AttributeData with assettype, subtype, name, type and data |
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 |
setAttributeDef(AttributeDef attributeDef)
Sets the AttributeDef for this AttributeData |
void |
setData(java.lang.Object data)
sets data to the AttributeData |
void |
setDataAsList(java.util.List data)
sets data aslist to the AttributeData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AttributeDataImpl(AttributeDef def, java.lang.String attributeName, AttributeTypeEnum type, java.lang.Object data)
def
- the Attribute DefinitionattributeName
- the name of the attributetype
- the type of the attributedata
- the data for the attributepublic AttributeDataImpl(AttributeDef def, java.lang.String attributeName, AttributeTypeEnum type, java.util.List data)
def
- the Attribute DefinitionattributeName
- the name of the attributetype
- the type of the attributedata
- the data for the attributepublic AttributeDataImpl(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, AttributeTypeEnum type, java.lang.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(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, AttributeTypeEnum type, java.util.List data)
assettype
- the asset typesubtype
- the asset subtypeattributeName
- the name of the attributetype
- the type of the attributedata
- the data for the attributeMethod Detail |
---|
public void setAttributeDef(AttributeDef attributeDef)
attributeDef
- the AttributeDefpublic java.lang.String getAttributeName()
AttributeData
getAttributeName
in interface AttributeData
public AttributeTypeEnum getType()
AttributeData
getType
in interface AttributeData
public java.lang.Object getData()
AttributeData
getData
in interface AttributeData
public AttributeDef getAttributeDef()
AttributeData
getAttributeDef
in interface AttributeData
public java.util.List getDataAsList()
AttributeData
getDataAsList
in interface AttributeData
public void setData(java.lang.Object data)
AttributeData
setData
in interface AttributeData
data
- data to addpublic void setDataAsList(java.util.List data)
AttributeData
setDataAsList
in interface AttributeData
data
- data to addpublic void addData(java.lang.Object data)
AttributeData
addData
in interface AttributeData
data
- data to addpublic void removeData(java.lang.Object data)
AttributeData
removeData
in interface AttributeData
data
- the data to remove
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |