Class DefaultHandlers.ListHandler
java.lang.Object
com.ubs.backend.annotations.json.handlers.DefaultHandlers.ListHandler
- All Implemented Interfaces:
ElementHandler
- Enclosing class:
- DefaultHandlers
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ListHandler
public ListHandler()
-
-
Method Details
-
handle
Converts a List into a String for a JSON Object- Specified by:
handlein interfaceElementHandler- Parameters:
o- the Object to convert- Returns:
- the Converted JSON String
- Throws:
ElementTypeException- if the Object cannot be convertedJSONParser.JsonSerializationException
-
getType
- Specified by:
getTypein interfaceElementHandler- Returns:
- the Type of the Handler (LIST)
- See Also:
JSONType
-
canHandle
- Specified by:
canHandlein interfaceElementHandler- Parameters:
o- the object to check- Returns:
- if the Object is an instance of List
-