|
|||||||||
| 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 of
AssetIdAttributeDataAttributeData 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()Returns the Asset Identifiers of immediate parents, if any. |
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()
AssetIdjava.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 attributenull if no AttributeData of specified name
AttributeData 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()
throws AssetAccessException
AssetAccessException - captures layer specific failures and wraps other internal excetpions
java.util.List<AssetId> getImmediateParents(java.lang.String parentDefName)
throws AssetAccessException
parentDefName - the name of the parent definitionAssetAccessException - captures layer specific failures and wraps other internal excetpionsvoid setAssetId(AssetId assetId)
AssetIdassetId - associated with the instance
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.