|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AssetData
This interface represents an asset instance (data of a single asset). The intention of the interface is to provide a view (possibly a narrower view) of data contained in the asset.
AssetData is a combination ofAssetId
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.
Method Summary | |
---|---|
AssetId |
getAssetId()
Returns unique identification of the asset instance AssetId |
AssetTypeDef |
getAssetTypeDef()
Returns AssetTypeDef this instance is based on. |
java.util.List<AssetId> |
getAssociatedAssets(java.lang.String name)
Returns named associations by given name. |
java.util.List<AttributeData> |
getAttributeData()
Returns a list of all attribute data associated with this instance of asset |
AttributeData |
getAttributeData(java.lang.String attributeName)
Returns data associated with a given attribute. |
AttributeData |
getAttributeData(java.lang.String attributeName,
boolean isMetaAttribute)
Returns a data associated with a given attribute |
java.util.List<java.lang.String> |
getAttributeNames()
Returns List of attribute names contained in this instance of AssetData. |
java.util.List<AssetId> |
getImmediateParents(java.lang.String parentDefName)
Returns the Asset Identifiers of immediate parents, if any. |
java.util.List<AssetId> |
getParents()
Returns Asset identifiers of parent assets, if any. |
void |
setAssetId(AssetId assetId)
Sets unique identification of the asset instance AssetId |
Method Detail |
---|
AssetId getAssetId()
AssetId
java.util.List<java.lang.String> getAttributeNames()
AssetTypeDef
to get to those).AssetTypeDef getAssetTypeDef()
AssetTypeDef
this instance is based on.
AttributeData getAttributeData(java.lang.String attributeName)
attributeName
- name of the attribute
null
if no AttributeData of specified nameAttributeData getAttributeData(java.lang.String attributeName, boolean isMetaAttribute)
attributeName
- name of the attributeisMetaAttribute
- 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.java.util.List<AttributeData> getAttributeData()
java.util.List<AssetId> getAssociatedAssets(java.lang.String name)
AssetAssociationDef.UnnamedAssociationName
constant in place association name.
name
- name of the association
java.util.List<AssetId> getParents() throws AssetAccessException
AssetAccessException
- captures layer specific failures and wraps other internal exceptions.java.util.List<AssetId> getImmediateParents(java.lang.String parentDefName) throws AssetAccessException
parentDefName
- the name of the parent definition
AssetAccessException
- captures layer specific failures and wraps other internal excetpionsvoid setAssetId(AssetId assetId)
AssetId
assetId
- associated with the instance
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |