|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
com.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 attribute
public 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 attribute
public 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 attribute
public 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 attribute| Method Detail |
|---|
public void setAttributeDef(AttributeDef attributeDef)
attributeDef - the AttributeDefpublic java.lang.String getAttributeName()
AttributeDatagetAttributeName in interface AttributeDatapublic AttributeTypeEnum getType()
AttributeDatagetType in interface AttributeDatapublic java.lang.Object getData()
AttributeDatagetData in interface AttributeDatapublic AttributeDef getAttributeDef()
AttributeDatagetAttributeDef in interface AttributeDatapublic java.util.List getDataAsList()
AttributeDatagetDataAsList in interface AttributeDatapublic void setData(java.lang.Object data)
AttributeDatasetData in interface AttributeDatadata - data to addpublic void setDataAsList(java.util.List data)
AttributeDatasetDataAsList in interface AttributeDatadata - data to addpublic void addData(java.lang.Object data)
AttributeDataaddData in interface AttributeDatadata - data to addpublic void removeData(java.lang.Object data)
AttributeDataremoveData in interface AttributeDatadata - the data to remove
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.