public interface StringBinder
Modifier and Type | Method and Description |
---|---|
<T> T |
convertFromString(Class<T> output,
String object)
Convert a String to the given target class
|
<T> T |
convertFromString(Class<T> output,
String object,
Class<? extends Annotation> qualifier)
Convert a String to the given target class
|
<S> String |
convertToString(Class<S> input,
Object object)
Convert an object which is an instance of source class to String
|
<S> String |
convertToString(Class<S> input,
Object object,
Class<? extends Annotation> qualifier)
Convert an object which is an instance of source class to String
|
String |
convertToString(Object object)
Convert an object to String
This method infers the source type for the conversion from the runtime type of object.
|
String |
convertToString(Object object,
Class<? extends Annotation> qualifier)
Convert an object to String
This method infers the source type for the conversion from the runtime type of object.
|
<T> T convertFromString(Class<T> output, String object)
T
- The type of the target classoutput
- The target class to convert the object toobject
- The String to be converted<T> T convertFromString(Class<T> output, String object, Class<? extends Annotation> qualifier)
T
- The type of the target classoutput
- The target class to convert the object toobject
- The String to be convertedqualifier
- The qualifier for which the binding must be registeredString convertToString(Object object)
object
- The object to be convertedString convertToString(Object object, Class<? extends Annotation> qualifier)
object
- The object to be convertedqualifier
- The qualifier for which the binding must be registered<S> String convertToString(Class<S> input, Object object)
S
- The type of the input classinput
- The class of the object to be convertedobject
- The object to be converted<S> String convertToString(Class<S> input, Object object, Class<? extends Annotation> qualifier)
S
- The type of the input classinput
- The class of the object to be convertedobject
- The object to be convertedqualifier
- Match the converter with the given qualifierCopyright © 2010–2018 Jadira Systems. All rights reserved.