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.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOG |
| 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() |
clear, clone, containsKey, containsValue, equals, get, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic ScatteredAsset(com.fatwire.assetapi.data.AssetData delegate,
String... attributes)
delegate - asset data objectattributes - the names of attributes to load the data from into
memorypublic ScatteredAsset(com.fatwire.assetapi.data.AssetData delegate)
delegate - asset data objectpublic ScatteredAsset(com.fatwire.assetapi.data.AssetData delegate,
boolean meta,
String... attributes)
delegate - asset data objectmeta - true if the attributes are meta attributesattributes - the names of attributes to load the data from into
memoryCopyright © 2016–2017. All rights reserved.