public class ScatteredAsset extends AbstractMap<String,Object> implements Serializable
Map
methods.
This class implements Serializable interface so the object can be serialized
if needed. The serialization use-case is the best use-case for this class.
The AssetMapAdapter
is a better candidate to use if you are
interested in accessing attribute data as a Map, for instance in a expression
language like JSP EL.AssetMapAdapter
,
Serialized FormAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ScatteredAsset(com.fatwire.assetapi.data.AssetData delegate)
Reads all the attributes, in case of name collisions meta attributes take
precedence.
|
ScatteredAsset(com.fatwire.assetapi.data.AssetData delegate,
boolean meta,
String... attributes)
This constructor checks if the attributes are meta attributes and based
on the passed in meta asks for the meta value.
|
ScatteredAsset(com.fatwire.assetapi.data.AssetData delegate,
String... attributes)
This constructor checks if the attributes are meta attributes and if so,
asks for the meta value.
|
Modifier and Type | Method and Description |
---|---|
Set<Map.Entry<String,Object>> |
entrySet() |
com.fatwire.assetapi.data.AssetId |
getAssetId() |
public ScatteredAsset(com.fatwire.assetapi.data.AssetData delegate, String... attributes)
delegate
- attributes
- the names of attributes to load the data from into
memorypublic ScatteredAsset(com.fatwire.assetapi.data.AssetData delegate)
delegate
- public ScatteredAsset(com.fatwire.assetapi.data.AssetData delegate, boolean meta, String... attributes)
delegate
- meta
- true if the attributes are meta attributesattributes
- the names of attributes to load the data from into
memoryCopyright © 2010-2016 Oracle Corporation. All Rights Reserved.