Package org.eso.ias.types
Class IasValueJsonSerializer
java.lang.Object
org.eso.ias.types.IasValueJsonSerializer
- All Implemented Interfaces:
IasValueStringSerializer
Serialize/deserialize
IASValue
to/from JSON strings- Author:
- acaproni
- See Also:
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
IasValueJsonSerializer
public IasValueJsonSerializer()
-
-
Method Details
-
iasValueToString
Convert the value in a JSON string- Specified by:
iasValueToString
in interfaceIasValueStringSerializer
- Parameters:
iasValue
- The value to- Returns:
- A string representation of the passed value
- Throws:
IasValueSerializerException
- In case of error creating the string from the passed value- See Also:
-
valueOf
Convert the passed JSON string into aIASValue
- Specified by:
valueOf
in interfaceIasValueStringSerializer
- Parameters:
str
- The string describing the IASValue- Returns:
- the IASValue described in the passed string
- Throws:
IasValueSerializerException
- In case of error converting the string- See Also:
-