@Exported
public interface AssetData
AssetId
AttributeData
AttributeData
represents data for a given attribute. A given instance of AssetData may not contain
data for all attributes. List of attribute names whose data is part of an AssetData instance can be obtained by
invoking AssetData.getAttributeNames()
.
Attributes for which data exists in an AssetData instance is determined by how the
instance of AssetData was obtained. See AssetDataManager
for ways to obtain an instance of AssetData.Modifier and Type | Method and Description |
---|---|
AssetId |
getAssetId()
Returns unique identification of the asset instance
AssetId . |
AssetTypeDef |
getAssetTypeDef()
Returns
AssetTypeDef this instance is based on. |
List<AssetId> |
getAssociatedAssets(String name)
Returns named associations by given name.
|
List<AttributeData> |
getAttributeData()
Returns a list of all attribute data associated with this instance of asset.
|
AttributeData |
getAttributeData(String attributeName)
Returns data associated with a given attribute.
|
AttributeData |
getAttributeData(String attributeName,
boolean isMetaAttribute)
Returns a data associated with a given attribute.
|
List<String> |
getAttributeNames()
Returns List of attribute names contained in this instance of AssetData.
|
List<AssetId> |
getImmediateParents()
Returns the Asset Identifiers of immediate parents, if any.
|
List<AssetId> |
getImmediateParents(String parentDefName)
Returns the Asset Identifiers of immediate parents, if any.
|
List<AssetId> |
getParents()
Returns Asset identifiers of parent assets, if any.
|
AssetId |
getTreeNodeParentAssetId()
Returns the parent asset in the tree node.
|
void |
setAssetId(AssetId assetId)
Sets unique identification of the asset instance
AssetId . |
AssetId getAssetId()
AssetId
.List<String> getAttributeNames()
AssetTypeDef
to get to those).AssetTypeDef getAssetTypeDef()
AssetTypeDef
this instance is based on.AttributeData getAttributeData(String attributeName)
attributeName
- name of the attribute.null
if there is no AttributeData of the specified name.AttributeData getAttributeData(String attributeName, boolean isMetaAttribute)
attributeName
- name of the attribute.isMetaAttribute
- whether attribute is user defined, or it is system defined (for flex asset only).null
if no AttributeData of specified name and specified user defined
or not property.List<AttributeData> getAttributeData()
List<AssetId> getAssociatedAssets(String name)
AssetAssociationDef.UnnamedAssociationName
constant in place association name.name
- name of the associationList<AssetId> getParents() throws AssetAccessException
AssetAccessException
- captures layer specific failures and wraps other internal exceptions.List<AssetId> getImmediateParents() throws AssetAccessException
AssetAccessException
- captures layer specific failures and wraps other internal excetpionsList<AssetId> getImmediateParents(String parentDefName) throws AssetAccessException
parentDefName
- the name of the parent definition.AssetAccessException
- captures layer specific failures and wraps other internal exceptions.AssetId getTreeNodeParentAssetId()