Package sg.dex.starfish.impl.remote
Class RemoteBundle
java.lang.Object
sg.dex.starfish.impl.AAsset
sg.dex.starfish.impl.remote.ARemoteAsset
sg.dex.starfish.impl.remote.RemoteBundle
public class RemoteBundle extends ARemoteAsset implements Bundle
Class representing an Bundle Asset managed via a remote agent.
-
Field Summary
-
Constructor Summary
Constructors Modifier Constructor Description protected
RemoteBundle(String meta, RemoteAgent remoteAgent)
-
Method Summary
Modifier and Type Method Description Bundle
add(String name, Asset asset)
API to add a new sub-asset in existing bundle.Bundle
addAll(Map<String,Asset> assetMapp)
API to create a new bundle adding all named sub-assets passed as parametersstatic RemoteBundle
create(RemoteAgent agent, String meta)
Creates a RemoteAsset with the given metadata on the specified remote agent<R extends Asset>
Rget(String name)
API to get an specific asset from an asset Bundle by asset nameMap<String,Asset>
getAll()
API to get an immutable all named sub Asset belong to asset BundleMethods inherited from class sg.dex.starfish.impl.AAsset
getAssetID, getMetadata, getMetadataString, getParamValue, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface sg.dex.starfish.Asset
getAssetID, getContent, getContentStream, getMetadata, getMetadataString, isDataAsset, isOperation
-
Constructor Details
-
Method Details
-
create
Creates a RemoteAsset with the given metadata on the specified remote agent- Parameters:
agent
- RemoteAgent on which to create the RemoteAssetmeta
- Asset metadata which must be a valid JSON string- Returns:
- RemoteAsset
-
add
Description copied from interface:Bundle
API to add a new sub-asset in existing bundle. It will add the sub-asset passed in the argument and return a new Bundle asset -
addAll
Description copied from interface:Bundle
API to create a new bundle adding all named sub-assets passed as parameters -
get
Description copied from interface:Bundle
API to get an specific asset from an asset Bundle by asset name -
getAll
Description copied from interface:Bundle
API to get an immutable all named sub Asset belong to asset Bundle
-