com.ibm.ecm.json

Class JSONClassDefinitionResponse

  1. java.lang.Object
  2. extended byjava.util.AbstractMap<K,V>
  3. extended byjava.util.HashMap
  4. extended bycom.ibm.json.java.JSONObject
  5. extended bycom.ibm.ecm.json.JSONResponse
  6. extended bycom.ibm.ecm.json.JSONClassDefinitionResponse
All implemented interfaces:
JSONArtifact, java.io.Serializable, java.lang.Cloneable, java.util.Map

  1. public class JSONClassDefinitionResponse
  2. 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:

  1. 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;
     
  2. In a plug-in provided repository type, to format the response JSON appropriately for the openClass request.
Since:
2.0.3
See Also:
Serialized Form

Nested Class Summary

Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>

Constructor Summary

Constructor and Description
JSONClassDefinitionResponse()

Method Summary

Modifier and Type Method and Description
  1. 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)
Methods inherited from class com.ibm.ecm.json.JSONResponse
addErrorMessage, addInfoMessage, addWarningMessage, hasErrors
Methods inherited from class com.ibm.json.java.JSONObject
isValidObject, isValidType, parse, parse, parse, put, serialize, serialize, serialize, serialize, serialize, serialize, toString
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, putAll, remove, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
equals, hashCode

Constructor Detail

JSONClassDefinitionResponse

  1. public JSONClassDefinitionResponse( )

Method Detail

addAttributeDefinition

  1. public void addAttributeDefinition( java.lang.String id,
  2. java.lang.String name,
  3. java.lang.String type,
  4. boolean multiValue,
  5. boolean readOnly,
  6. boolean system,
  7. java.lang.Object defaultValue,
  8. java.lang.Object minValue,
  9. java.lang.Object maxValue,
  10. int maxLength)