Package com.merative.acd.v1.util
Class CustomCollection
- java.lang.Object
-
- com.merative.acd.v1.util.CustomDeserializer
-
- com.merative.acd.v1.util.CustomCollection
-
public class CustomCollection extends CustomDeserializer
CustomCollection To deserialize the response. This class is manually written and not generated from swagger codegen.
-
-
Constructor Summary
Constructors Constructor Description CustomCollection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomCollectionconvertToCustomCollection(java.lang.Object annotation)Converts annotation to collection.java.util.List<CustomCollection>convertToCustomCollectionList(java.util.List<java.lang.Object> listAnnotation)Retrieves collection list for annotation list.CustomCollectionget(int key)Retrieves collection by position.CustomCollectionget(java.lang.String key)Retrieves collection by key.java.util.List<CustomCollection>getList(java.lang.String key)Retrieve list of collections by key.com.google.gson.JsonElementgetObject()Retrieves element within collection.java.lang.StringgetValue(java.lang.String key)Retrieves value for key.voidsetObject(com.google.gson.JsonElement tempobj)Sets element within collection.-
Methods inherited from class com.merative.acd.v1.util.CustomDeserializer
convertJsonObject, convertObject
-
-
-
-
Method Detail
-
getObject
public com.google.gson.JsonElement getObject()
Retrieves element within collection.- Returns:
- json object
-
setObject
public void setObject(com.google.gson.JsonElement tempobj)
Sets element within collection.- Parameters:
tempobj- object to add to collection
-
get
public CustomCollection get(java.lang.String key) throws ParameterNotAvailableException
Retrieves collection by key.- Parameters:
key- object key to retrieve- Returns:
- the
CustomCollection - Throws:
ParameterNotAvailableException
-
get
public CustomCollection get(int key) throws IndexNotAvailableException
Retrieves collection by position.- Parameters:
key- object position to retrieve- Returns:
- the
CustomCollection - Throws:
IndexNotAvailableException
-
getList
public java.util.List<CustomCollection> getList(java.lang.String key) throws ParameterNotAvailableException, IllegalMethodException
Retrieve list of collections by key.- Parameters:
key- key for retrieval- Returns:
- the
CustomCollectionlist - Throws:
ParameterNotAvailableExceptionIllegalMethodException
-
getValue
public java.lang.String getValue(java.lang.String key) throws ParameterNotAvailableExceptionRetrieves value for key.- Parameters:
key- value key- Returns:
- the
String - Throws:
ParameterNotAvailableException
-
convertToCustomCollectionList
public java.util.List<CustomCollection> convertToCustomCollectionList(java.util.List<java.lang.Object> listAnnotation)
Retrieves collection list for annotation list.- Parameters:
listAnnotation- annotation list for retrieval- Returns:
- the
CustomCollectionlist
-
convertToCustomCollection
public CustomCollection convertToCustomCollection(java.lang.Object annotation)
Converts annotation to collection.- Parameters:
annotation- annotation to convert- Returns:
- the
CustomCollection
-
-