com.ibm.ecm.json
Class JSONClassDefinitionResponse
- 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.JSONClassDefinitionResponse
All implemented interfaces:
JSONArtifact, java.io.Serializable, java.lang.Cloneable, java.util.Map
- public class JSONClassDefinitionResponse
- extends JSONResponse
This class structures the JSON used to represent a class definition response. This responses is returned for a
openClass request for a particular content class. It describes the classes attributes and other information about the
class.
There are two ways to use this class:
- In plug-in response filters for openClass. This class is actually the JSONObject passed to the response filter,
so it can be immediately cast, as in:
JSONClassDefinitionResponse jsonClassDefinitionResponse = (JSONClassDefinitionResponse) jsonResponse;
- In a plug-in provided repository type, to format the response JSON appropriately for the openClass 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
- void
|
addAttributeDefinition(java.lang.String id,java.lang.String name,java.lang.String type,boolean multiValue,boolean readOnly,boolean system,java.lang.Object defaultValue,java.lang.Object minValue,java.lang.Object maxValue,int maxLength)
|
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
JSONClassDefinitionResponse
- public JSONClassDefinitionResponse(
)
Method Detail
addAttributeDefinition
- public void addAttributeDefinition(
java.lang.String id,
- java.lang.String name,
- java.lang.String type,
- boolean multiValue,
- boolean readOnly,
- boolean system,
- java.lang.Object defaultValue,
- java.lang.Object minValue,
- java.lang.Object maxValue,
- int maxLength)