public class TemplateAsset extends Object
 
 TemplateAsset asset = ...;
 String name = asset.asString("name");
 
 | Constructor and Description | 
|---|
TemplateAsset(com.fatwire.assetapi.data.AssetData delegate)  | 
| Modifier and Type | Method and Description | 
|---|---|
com.fatwire.assetapi.data.AssetId | 
asAssetId(String name)  | 
com.fatwire.assetapi.data.BlobObject | 
asBlob(String name)  | 
com.fatwire.assetapi.data.BlobObject.BlobAddress | 
asBlobAddress(String name)  | 
Date | 
asDate(String name)  | 
Double | 
asDouble(String name)  | 
Float | 
asFloat(String name)  | 
Integer | 
asInt(String name)  | 
List<?> | 
asList(String name)  | 
Long | 
asLong(String name)  | 
String | 
asString(String name)  | 
boolean | 
equals(Object obj)  | 
com.fatwire.assetapi.data.AssetId | 
getAssetId()  | 
com.fatwire.assetapi.def.AssetTypeDef | 
getAssetTypeDef()  | 
com.fatwire.assetapi.data.AssetId | 
getAssociatedAsset(String name)  | 
List<com.fatwire.assetapi.data.AssetId> | 
getAssociatedAssets(String name)  | 
Object | 
getAttribute(String name)  | 
com.fatwire.assetapi.data.AttributeData | 
getAttributeData(String name,
                boolean meta)  | 
List<String> | 
getAttributeNames()
Get all the attribute names. 
 | 
com.fatwire.assetapi.data.AssetData | 
getDelegate()  | 
List<com.fatwire.assetapi.data.AssetId> | 
getImmediateParents(String name)  | 
com.fatwire.mda.Dimension | 
getLocale()  | 
Object | 
getMetaAttribute(String name)  | 
List<String> | 
getMetaAttributeNames()
Gets all the names of the meta attributes. 
 | 
List<com.fatwire.assetapi.data.AssetId> | 
getParents()  | 
String | 
getSubtype()  | 
com.fatwire.assetapi.def.AttributeTypeEnum | 
getType(String name)
Get the type of the attribute. 
 | 
int | 
hashCode()  | 
boolean | 
isAttribute(String name)
Checks if the asset has an attribute by the provided name. 
 | 
boolean | 
isSingleValued(String name)  | 
String | 
toString()  | 
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 © 2016–2017. All rights reserved.