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