Class DefaultHandlers.EnumerationHandlerOrdinal
java.lang.Object
com.ubs.backend.annotations.json.handlers.DefaultHandlers.EnumerationHandlerOrdinal
- All Implemented Interfaces:
ElementHandler
- Enclosing class:
- DefaultHandlers
public static class DefaultHandlers.EnumerationHandlerOrdinal
extends Object
implements ElementHandler
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EnumerationHandlerOrdinal
public EnumerationHandlerOrdinal()
-
-
Method Details
-
handle
Converts a JSONAnnotated Object 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 converted (ordinal)JSONParser.JsonSerializationException
-
getType
- Specified by:
getTypein interfaceElementHandler- Returns:
- the Type of the Handler (ENUMERATED_ORDINAL)
- See Also:
JSONType
-
canHandle
- Specified by:
canHandlein interfaceElementHandler- Parameters:
o- the object to check- Returns:
- if the Object is an Enum
-