com.adobe.idp.dsc.datatype
Interface TextSerializer


public interface TextSerializer

TextSerializer objects are used to serialize values to and from their expected data type and their equivalent string representation.


Method Summary
 java.lang.Object deserializeValue(java.lang.Class aTargetType, java.lang.String aVal, java.lang.ClassLoader aClassLoader)
          Converts the values passed in from a java.lang.String to its expected data type (either the configuration or runtime data type).
 java.lang.String serializeValue(java.lang.Object aVal)
          Converts the specified value a java.lang.String.
 

Method Detail

serializeValue

java.lang.String serializeValue(java.lang.Object aVal)
Converts the specified value a java.lang.String.

Parameters:
aVal - The value of the object to be converted.
Returns:
The converted java.lang.String representation of the object's value.

deserializeValue

java.lang.Object deserializeValue(java.lang.Class aTargetType,
                                  java.lang.String aVal,
                                  java.lang.ClassLoader aClassLoader)
Converts the values passed in from a java.lang.String to its expected data type (either the configuration or runtime data type).

Parameters:
aTargetType - The type of the object used to convert the string.
aVal - The string to be converted.
aClassLoader - The ClassLoader used to load any necessary classes.
Returns:
The converted object.


[an error occurred while processing this directive] [an error occurred while processing this directive]