public class StringToObjectConverter extends Object
Constructor and Description |
---|
StringToObjectConverter() |
Modifier and Type | Method and Description |
---|---|
Object |
convertFromString(String pType,
String pValue)
Deserialize a string representation to an object for a given type
|
static String |
convertSpecialStringTags(String pValue)
For GET requests, where operation arguments and values to write are given in
string representation as part of the URL, certain special tags are used to indicate
special values:
[null] for indicating a null value
"" for indicating an empty string
This method converts these tags to the proper value. |
Object |
prepareValue(String pExpectedClassName,
Object pValue)
Prepare a value from a either a given object or its string representation.
|
public Object prepareValue(String pExpectedClassName, Object pValue)
pExpectedClassName
- type name of the expected typepValue
- value to either take directly or to convert from its string representation.public static String convertSpecialStringTags(String pValue)
[null]
for indicating a null value""
for indicating an empty stringpValue
- the string value to check for a tagCopyright © 2017. All rights reserved.