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
- public 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
- AssetData.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
- public Integer asInt(String name)
name
- public com.fatwire.assetapi.data.BlobObject asBlob(String name)
name
- public Float asFloat(String name)
name
- public Double asDouble(String name)
name
- public Long asLong(String name)
name
- public com.fatwire.assetapi.data.AssetId asAssetId(String name)
name
- public com.fatwire.assetapi.data.BlobObject.BlobAddress asBlobAddress(String name)
name
- public 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
- com.fatwire.assetapi.common.AssetAccessException
AssetData.getImmediateParents(java.lang.String)
public List<com.fatwire.assetapi.data.AssetId> getParents() throws com.fatwire.assetapi.common.AssetAccessException
com.fatwire.assetapi.common.AssetAccessException
AssetData.getParents()
public com.fatwire.assetapi.data.AttributeData getAttributeData(String name, boolean meta)
name
- meta
- the asset attributesAssetData.getAttributeData(java.lang.String,
boolean)
public com.fatwire.mda.Dimension getLocale()
Copyright © 2010-2016 Oracle Corporation. All Rights Reserved.