com.ibm.ecm.json
Class JSONContentClassesResponse
- 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.JSONContentClassesResponse
All implemented interfaces:
JSONArtifact, java.io.Serializable, java.lang.Cloneable, java.util.Map
- public class JSONContentClassesResponse
- extends JSONResponse
There are two ways to use this class:
- In plug-in response filters for getContentClasses. This class is actually the JSONObject passed to the response
filter, so it can be immediately cast, as in:
JSONContentClassesResponse jsonContentClassesResponse = (JSONContentClassesResponse) jsonResponse;
- In a plug-in provided repository type, to format the response JSON appropriately for the getContentClasses request.
Since:
2.0.4
See Also:
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 |
---|
JSONContentClassesResponse()
|
Method Summary
Modifier and Type | Method and Description |
---|---|
|
addContentClassDefinition(java.lang.String id,java.lang.String name,java.lang.String description,boolean allowsInstances)
Add a content class definition to the list of content classes
|
|
setParentClassDefinition(java.lang.String id,java.lang.String name,java.lang.String description,boolean allowsInstances)
Add a definition of the parent class.
|
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
JSONContentClassesResponse
- public JSONContentClassesResponse( )
Method Detail
addContentClassDefinition
- public void addContentClassDefinition( java.lang.String id,
- java.lang.String name,
- java.lang.String description,
- boolean allowsInstances)
Add a content class definition to the list of content classes
Parameters:
id
- the symbolic name of the class name
- the display name of the class description
- a description of the class (or null if no description) allowsInstances
- true if the class can have subclasses setParentClassDefinition
- public void setParentClassDefinition( java.lang.String id,
- java.lang.String name,
- java.lang.String description,
- boolean allowsInstances)
Add a definition of the parent class. This would be used primarily in cases where the getContentClasses request
was made to obtain a list of the subclasses.
Parameters:
id
- the symbolic name of the parent class name
- the display name of the parent class description
- a description of the parent class, or null if no description allowsInstances
- true if the class can have subclasses