public class TemplateAsset extends Object
It has casting accessors for values of the different attribute types.
It must be noted that naming conflicts between flex attribute names and meta attribute names are resolved by giving the meta attribute preference.
TemplateAsset asset = ...;
String name = asset.asString("name");
Constructor and Description |
---|
TemplateAsset(com.fatwire.assetapi.data.AssetData delegate)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
com.fatwire.assetapi.data.AssetId |
asAssetId(String name)
Deprecated.
|
com.fatwire.assetapi.data.BlobObject |
asBlob(String name)
Deprecated.
|
com.fatwire.assetapi.data.BlobObject.BlobAddress |
asBlobAddress(String name)
Deprecated.
|
Date |
asDate(String name)
Deprecated.
|
Double |
asDouble(String name)
Deprecated.
|
Float |
asFloat(String name)
Deprecated.
|
Integer |
asInt(String name)
Deprecated.
|
List<?> |
asList(String name)
Deprecated.
|
Long |
asLong(String name)
Deprecated.
|
String |
asString(String name)
Deprecated.
|
boolean |
equals(Object obj)
Deprecated.
|
com.fatwire.assetapi.data.AssetId |
getAssetId()
Deprecated.
|
com.fatwire.assetapi.def.AssetTypeDef |
getAssetTypeDef()
Deprecated.
|
com.fatwire.assetapi.data.AssetId |
getAssociatedAsset(String name)
Deprecated.
|
List<com.fatwire.assetapi.data.AssetId> |
getAssociatedAssets(String name)
Deprecated.
|
Object |
getAttribute(String name)
Deprecated.
|
com.fatwire.assetapi.data.AttributeData |
getAttributeData(String name,
boolean meta)
Deprecated.
|
List<String> |
getAttributeNames()
Deprecated.
Get all the attribute names.
|
com.fatwire.assetapi.data.AssetData |
getDelegate()
Deprecated.
|
List<com.fatwire.assetapi.data.AssetId> |
getImmediateParents(String name)
Deprecated.
|
com.fatwire.mda.Dimension |
getLocale()
Deprecated.
|
Object |
getMetaAttribute(String name)
Deprecated.
|
List<String> |
getMetaAttributeNames()
Deprecated.
Gets all the names of the meta attributes.
|
List<com.fatwire.assetapi.data.AssetId> |
getParents()
Deprecated.
|
String |
getSubtype()
Deprecated.
|
com.fatwire.assetapi.def.AttributeTypeEnum |
getType(String name)
Deprecated.
Get the type of the attribute.
|
int |
hashCode()
Deprecated.
|
boolean |
isAttribute(String name)
Deprecated.
Checks if the asset has an attribute by the provided name.
|
boolean |
isSingleValued(String name)
Deprecated.
|
String |
toString()
Deprecated.
|
public TemplateAsset(com.fatwire.assetapi.data.AssetData delegate)
delegate
- asset datapublic com.fatwire.assetapi.data.AssetData getDelegate()
public com.fatwire.assetapi.data.AssetId getAssetId()
AssetData.getAssetId()
public String getSubtype()
public com.fatwire.assetapi.def.AssetTypeDef getAssetTypeDef()
AssetData.getAssetTypeDef()
public List<com.fatwire.assetapi.data.AssetId> getAssociatedAssets(String name)
name
- name of the associationAssetData.getAssociatedAssets(java.lang.String)
public com.fatwire.assetapi.data.AssetId getAssociatedAsset(String name)
name
- name of the associationAssetData.getAssociatedAssets(java.lang.String)
public Object getAttribute(String name)
name
- attribute nameAssetData.getAttributeData(java.lang.String,
boolean)
public Object getMetaAttribute(String name)
name
- the name of the attribute.AssetData.getAttributeData(java.lang.String,
boolean)
public boolean isSingleValued(String name)
name
- attribute namepublic List<?> asList(String name)
name
- attribute namepublic Integer asInt(String name)
name
- attribute namepublic Date asDate(String name)
name
- attribute namepublic com.fatwire.assetapi.data.BlobObject asBlob(String name)
name
- attribute namepublic Float asFloat(String name)
name
- attribute namepublic Double asDouble(String name)
name
- attribute namepublic Long asLong(String name)
name
- attribute namepublic com.fatwire.assetapi.data.AssetId asAssetId(String name)
name
- attribute namepublic String asString(String name)
name
- attribute namepublic com.fatwire.assetapi.data.BlobObject.BlobAddress asBlobAddress(String name)
name
- attribute namepublic List<String> getAttributeNames()
AssetData.getAttributeNames()
public com.fatwire.assetapi.def.AttributeTypeEnum getType(String name)
name
- the name of the attributepublic boolean isAttribute(String name)
name
- the name of trhe attributes.public List<String> getMetaAttributeNames()
AssetData.getAttributeNames()
public List<com.fatwire.assetapi.data.AssetId> getImmediateParents(String name) throws com.fatwire.assetapi.common.AssetAccessException
name
- attribute namecom.fatwire.assetapi.common.AssetAccessException
- asset exceptionAssetData.getImmediateParents(java.lang.String)
public List<com.fatwire.assetapi.data.AssetId> getParents() throws com.fatwire.assetapi.common.AssetAccessException
com.fatwire.assetapi.common.AssetAccessException
- asset exceptionAssetData.getParents()
public com.fatwire.assetapi.data.AttributeData getAttributeData(String name, boolean meta)
name
- attribute namemeta
- the asset attributesAssetData.getAttributeData(java.lang.String,
boolean)
public com.fatwire.mda.Dimension getLocale()
Copyright © 2010–2017. All rights reserved.