com.fatwire.assetapi.data
Class AttributeDataFactory

java.lang.Object
  extended by com.fatwire.assetapi.data.AttributeDataFactory

public final class AttributeDataFactory
extends java.lang.Object


Method Summary
static AttributeData newArrayAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.util.List data)
          Create an attribute data of type array with a list of data
static AttributeData newAssetAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.lang.Long id)
          Create an attribute of type asset with asset type, subtype and asset id
protected static AttributeData newAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, AttributeTypeEnum type, java.util.List data)
          Create an attribute data with attribute type specified
protected static AttributeData newAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, AttributeTypeEnum type, java.lang.Object data)
          Create an attribute data with attribute type specified
static AttributeData newBlobData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, BlobObject data)
          Create an attribute data of type blob
static AttributeData newBlobData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.util.List data)
          Create an attribute data of type blob
static AttributeData newDateAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.util.Date data)
          Create an attribute data of type Date
static AttributeData newDateAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.util.List<java.util.Date> data)
          Create an attribute data of type Date
static AttributeData newFloatAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.lang.Float data)
          Create an attribute data of type Float Create an attribute data of type Long
static AttributeData newFloatAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.util.List<java.lang.Float> data)
          Create an attribute data of type Float Create an attribute data of type Long
static AttributeData newLargeTextAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.util.List<java.lang.String> data)
          Create an attribute data of type Large Text
static AttributeData newLargeTextAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.lang.String data)
          Create an attribute data of type Large Text
static AttributeData newListAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.util.List data)
          Create an attribute data of type list with a list of data
static AttributeData newLongAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.util.List<java.lang.Long> data)
          Create an attribute data of type Long Create an attribute data of type Long
static AttributeData newLongAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.lang.Long data)
          Create an attribute data of type Long
static AttributeData newMoneyAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.lang.Float data)
          Create an attribute data of type Money Create an attribute data of type Long
static AttributeData newMoneyAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.util.List<java.lang.Float> data)
          Create an attribute data of type Float
static AttributeData newOneOfAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.lang.Object data)
          Create an attribute data of type one of with a list of data
static AttributeData newStringAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.util.List<java.lang.String> data)
          Create attribute data type of String
static AttributeData newStringAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.lang.String data)
          Create attribute data type of String
static AttributeData newStructAttributeData(java.lang.String assettype, java.lang.String subtype, java.lang.String attributeName, java.util.List data)
          Create an attribute data of type struct with a list of data
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newStringAttributeData

public static AttributeData newStringAttributeData(java.lang.String assettype,
                                                   java.lang.String subtype,
                                                   java.lang.String attributeName,
                                                   java.lang.String data)
Create attribute data type of String

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the String data that the attribute contains
Returns:
Attribute Data

newStringAttributeData

public static AttributeData newStringAttributeData(java.lang.String assettype,
                                                   java.lang.String subtype,
                                                   java.lang.String attributeName,
                                                   java.util.List<java.lang.String> data)
Create attribute data type of String

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the String data that the attribute contains
Returns:
Attribute Data

newDateAttributeData

public static AttributeData newDateAttributeData(java.lang.String assettype,
                                                 java.lang.String subtype,
                                                 java.lang.String attributeName,
                                                 java.util.Date data)
Create an attribute data of type Date

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the Date data that the attribute contains
Returns:
Attribute Data

newDateAttributeData

public static AttributeData newDateAttributeData(java.lang.String assettype,
                                                 java.lang.String subtype,
                                                 java.lang.String attributeName,
                                                 java.util.List<java.util.Date> data)
Create an attribute data of type Date

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the data that the attribute contains
Returns:
Attribute Data

newLongAttributeData

public static AttributeData newLongAttributeData(java.lang.String assettype,
                                                 java.lang.String subtype,
                                                 java.lang.String attributeName,
                                                 java.lang.Long data)
Create an attribute data of type Long

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the Long data that the attribute contains
Returns:
Attribute Data

newLongAttributeData

public static AttributeData newLongAttributeData(java.lang.String assettype,
                                                 java.lang.String subtype,
                                                 java.lang.String attributeName,
                                                 java.util.List<java.lang.Long> data)
Create an attribute data of type Long Create an attribute data of type Long

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the Long data that the attribute contains
Returns:
Attribute Data

newFloatAttributeData

public static AttributeData newFloatAttributeData(java.lang.String assettype,
                                                  java.lang.String subtype,
                                                  java.lang.String attributeName,
                                                  java.lang.Float data)
Create an attribute data of type Float Create an attribute data of type Long

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the Float data that the attribute contains
Returns:
Attribute Data

newFloatAttributeData

public static AttributeData newFloatAttributeData(java.lang.String assettype,
                                                  java.lang.String subtype,
                                                  java.lang.String attributeName,
                                                  java.util.List<java.lang.Float> data)
Create an attribute data of type Float Create an attribute data of type Long

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the Float data that the attribute contains
Returns:
Attribute Data

newMoneyAttributeData

public static AttributeData newMoneyAttributeData(java.lang.String assettype,
                                                  java.lang.String subtype,
                                                  java.lang.String attributeName,
                                                  java.lang.Float data)
Create an attribute data of type Money Create an attribute data of type Long

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the Money data that the attribute contains
Returns:
Attribute Data

newMoneyAttributeData

public static AttributeData newMoneyAttributeData(java.lang.String assettype,
                                                  java.lang.String subtype,
                                                  java.lang.String attributeName,
                                                  java.util.List<java.lang.Float> data)
Create an attribute data of type Float

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the Money data that the attribute contains
Returns:
Attribute Data

newLargeTextAttributeData

public static AttributeData newLargeTextAttributeData(java.lang.String assettype,
                                                      java.lang.String subtype,
                                                      java.lang.String attributeName,
                                                      java.lang.String data)
Create an attribute data of type Large Text

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the large String data that the attribute contains
Returns:
Attribute Data

newLargeTextAttributeData

public static AttributeData newLargeTextAttributeData(java.lang.String assettype,
                                                      java.lang.String subtype,
                                                      java.lang.String attributeName,
                                                      java.util.List<java.lang.String> data)
Create an attribute data of type Large Text

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the large String data that the attribute contains
Returns:
Attribute Data

newAssetAttributeData

public static AttributeData newAssetAttributeData(java.lang.String assettype,
                                                  java.lang.String subtype,
                                                  java.lang.String attributeName,
                                                  java.lang.Long id)
Create an attribute of type asset with asset type, subtype and asset id

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
id - - the asset id that the attribute contains
Returns:
attribute date of type AttributeData

newArrayAttributeData

public static AttributeData newArrayAttributeData(java.lang.String assettype,
                                                  java.lang.String subtype,
                                                  java.lang.String attributeName,
                                                  java.util.List data)
Create an attribute data of type array with a list of data

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the data list
Returns:
attribute date of type AttributeData

newListAttributeData

public static AttributeData newListAttributeData(java.lang.String assettype,
                                                 java.lang.String subtype,
                                                 java.lang.String attributeName,
                                                 java.util.List data)
Create an attribute data of type list with a list of data

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the data list
Returns:
attribute date of type AttributeData

newStructAttributeData

public static AttributeData newStructAttributeData(java.lang.String assettype,
                                                   java.lang.String subtype,
                                                   java.lang.String attributeName,
                                                   java.util.List data)
Create an attribute data of type struct with a list of data

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the data list
Returns:
attribute date of type AttributeData

newOneOfAttributeData

public static AttributeData newOneOfAttributeData(java.lang.String assettype,
                                                  java.lang.String subtype,
                                                  java.lang.String attributeName,
                                                  java.lang.Object data)
Create an attribute data of type one of with a list of data

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the data list
Returns:
attribute date of type AttributeData

newBlobData

public static AttributeData newBlobData(java.lang.String assettype,
                                        java.lang.String subtype,
                                        java.lang.String attributeName,
                                        BlobObject data)
Create an attribute data of type blob

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the BlobObject data
Returns:
attribute date of type AttributeData

newBlobData

public static AttributeData newBlobData(java.lang.String assettype,
                                        java.lang.String subtype,
                                        java.lang.String attributeName,
                                        java.util.List data)
Create an attribute data of type blob

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
data - - the BlobObject list
Returns:
attribute date of type AttributeData

newAttributeData

protected static AttributeData newAttributeData(java.lang.String assettype,
                                                java.lang.String subtype,
                                                java.lang.String attributeName,
                                                AttributeTypeEnum type,
                                                java.lang.Object data)
Create an attribute data with attribute type specified

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
type - the type of the data that the attribute data contains
data - - the BlobObject data
Returns:
attribute date of type AttributeData

newAttributeData

protected static AttributeData newAttributeData(java.lang.String assettype,
                                                java.lang.String subtype,
                                                java.lang.String attributeName,
                                                AttributeTypeEnum type,
                                                java.util.List data)
Create an attribute data with attribute type specified

Parameters:
assettype - - the type of the asset
subtype - - the subtype of the asset
attributeName - - the name of the attribute
type - the type of the data that the attribute data contains
data - - the BlobObject data
Returns:
attribute date of type AttributeData