public interface ContentItem extends Map<String,Object>
The ContentItem interface provides a Map view into the model
and provides an accessor for the content item type. The content item type corresponds
to the Experience Manager cartridge type (same as "template ID"). The type can
also be accessed via the Map
interface using the key, "@type".
The type is used by the assembler to determine which configured
cartridge handler should be used to process the content item.
A ContentItem may be nested in one of two ways.
Endeca implementations represent data in one of the following categories:
Since the ContentItem is a Map, additional properties can be modified and added through the Map interface. This is especially useful for augmenting output data models without having to create another class. However, when removing, modifying or adding properties to Endeca implementations of ContentItem, care should be taken to not to use keys that start with the "@" character or any key that matches a bean property name.
ContentItem makes no guarantees about thread-safety.
Modifier and Type | Method and Description |
---|---|
String |
getType() |
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
String getType()
Copyright © 2015, Oracle and/or its affiliates. All rights reserved.