This method does the reverse operation of the createValue method. The returned string is not necessarily the canonical representation. Also note that the implementation may accept invalid values without throwing IllegalArgumentException. To make sure that the result is actually a valid representation, call the isValid method.
Be careful not to confuse this method with The serializeJavaObject method, which is defined in the {@link DatabindableDatatype} method. @param context Context information that will be possibly used for the conversion. Currently, this object is used only by QName, but may be extended in the future. @exception IllegalArgumentException if the type of the given object is not the expected one. For example, this exception is thrown if you pass a BigInteger object to the "gYear" type.
|
|
|
|