com.fatwire.assetapi.data
Class AttributeDataImpl

java.lang.Object
  extended by com.fatwire.assetapi.data.AttributeDataImpl
All Implemented Interfaces:
AttributeData

public class AttributeDataImpl
extends java.lang.Object
implements AttributeData


Constructor Summary
AttributeDataImpl(AttributeDef def, java.lang.String attributeName, AttributeTypeEnum type, java.util.List data)
           
AttributeDataImpl(AttributeDef def, java.lang.String attributeName, AttributeTypeEnum type, java.lang.Object data)
           
AttributeDataImpl(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, AttributeTypeEnum type, java.util.List data)
           
AttributeDataImpl(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, AttributeTypeEnum type, java.lang.Object data)
           
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeDataImpl

public AttributeDataImpl(AttributeDef def,
                         java.lang.String attributeName,
                         AttributeTypeEnum type,
                         java.lang.Object data)

AttributeDataImpl

public AttributeDataImpl(AttributeDef def,
                         java.lang.String attributeName,
                         AttributeTypeEnum type,
                         java.util.List data)

AttributeDataImpl

public AttributeDataImpl(java.lang.String assettype,
                         java.lang.String subtype,
                         java.lang.String attributeName,
                         AttributeTypeEnum type,
                         java.lang.Object data)

AttributeDataImpl

public AttributeDataImpl(java.lang.String assettype,
                         java.lang.String subtype,
                         java.lang.String attributeName,
                         AttributeTypeEnum type,
                         java.util.List data)
Method Detail

getAttributeName

public java.lang.String getAttributeName()
Description copied from interface: AttributeData
Returns name of the attribute for which this instance represents data

Specified by:
getAttributeName in interface AttributeData
Returns:
name of the attribute

getType

public AttributeTypeEnum getType()
Description copied from interface: AttributeData
Indicates the type of data contained.

Specified by:
getType in interface AttributeData
Returns:
corresponding type as AttributeTypeEnum

getData

public java.lang.Object getData()
Description copied from interface: AttributeData
Returns handle to the raw data.

Specified by:
getData in interface AttributeData
Returns:
data

getAttributeDef

public AttributeDef getAttributeDef()
Description copied from interface: AttributeData
Returns attribute definition for this attribute.

Specified by:
getAttributeDef in interface AttributeData
Returns:
Attribute definition for which this instance is data for.

getDataAsList

public java.util.List getDataAsList()
Description copied from interface: AttributeData
Returns handle to data when data is multi valued.

Specified by:
getDataAsList in interface AttributeData
Returns:
list of data (for multi valued attributes)