A lazily-evaluated, read-only map view over a content item asset, resolving field values, relations and core metadata by property name for use in templates. The keys "uniqueId", "name" and "notes" return asset metadata directly. Any other key is matched against the asset's content type field definitions and rendered through the asset manager; if no field matches, it falls back to a relation lookup, returning either a single related asset resource or a list of them. Values are cached after first lookup. All mutating Map operations are unsupported.
Implements: Map
Properties
| Property | Returns | Description |
|---|---|---|
| empty | boolean | Not supported: this view resolves values on demand by key rather than holding a fixed key set, so it cannot report emptiness. |
Methods
get(Object key)
Returns: Object
Resolves a single value for this asset by property name: "uniqueId", "name" and "notes" return asset metadata directly, a matching content type field is rendered through the asset manager, and anything else falls back to a relation lookup, returning a related asset resource, a list of them, or an empty string if there are no matching relations.
| Parameter | Description |
|---|---|
key | the property name to resolve, may be null |
isEmpty()
Returns: boolean
Not supported: this view resolves values on demand by key rather than holding a fixed key set, so it cannot report emptiness.
containsKey(Object key)
Returns: boolean
Whether this asset resolves a non-null value for the given property name, delegating to get(key).
| Parameter | Description |
|---|---|
key | the property name to check |