com.ibm.ecm.json
Class JSONItemAttributesResponse
- java.lang.Object
- java.util.AbstractMap<K,V>
- java.util.HashMap
- com.ibm.json.java.JSONObject
- com.ibm.ecm.json.JSONResponse
- com.ibm.ecm.json.JSONItemAttributesResponse
All implemented interfaces:
JSONArtifact, java.io.Serializable, java.lang.Cloneable, java.util.Map
- public class JSONItemAttributesResponse
- extends JSONResponse
This class structures the JSON used to represent an item info response. This responses is returned for an openItem
request for a particular content item. It describes the item's properties and other details available from the
content server (without having to actually retrieve any content resource related to the item).
There are two ways to use this class:
- In plug-in response filters for openItem. This class is actually the JSONObject passed to the response filter, so
it can be immediately cast, as in:
JSONItemAttributesResponse jsonItemAttributesResponse = (JSONItemAttributesResponse) jsonResponse;
- In a plug-in provided repository type, to format the response JSON appropriately for the openItem request.
Since:
2.0.3
See Also:
Nested Class Summary
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Constructor Summary
Method Summary
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toString |
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail
JSONItemAttributesResponse
- public JSONItemAttributesResponse(
)
Method Detail
addAttribute
- public void addAttribute(java.lang.String id,
- java.lang.Object value)
addSystemProperty
- public void addSystemProperty(java.lang.String id,
- java.lang.Object value)