Class DefaultHandlers.StringHandler
java.lang.Object
com.ubs.backend.annotations.json.handlers.DefaultHandlers.StringHandler
- All Implemented Interfaces:
ElementHandler
- Enclosing class:
- DefaultHandlers
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
StringHandler
public StringHandler()
-
-
Method Details
-
handle
Converts a String 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
-
getType
- Specified by:
getTypein interfaceElementHandler- Returns:
- the Type of the Handler (STRING)
- See Also:
JSONType
-
canHandle
- Specified by:
canHandlein interfaceElementHandler- Parameters:
o- the object to check- Returns:
- if the Object is instance of a String
-