Class TLIListTypeWrapper
- java.lang.Object
-
- net.sourceforge.jeuclid.context.typewrapper.AbstractSimpleTypeWrapper
-
- net.sourceforge.jeuclid.context.typewrapper.TLIListTypeWrapper
-
- All Implemented Interfaces:
java.io.Serializable,TypeWrapper
public final class TLIListTypeWrapper extends AbstractSimpleTypeWrapper
List is converted to String and back by using comma-separated representation. Strings are Stored Trimmed, Lower-cased, Interned.- Version:
- $Revision: 03dc0884e86f $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSEPARATORseparator to be used when converting to string or parsing string.-
Fields inherited from interface net.sourceforge.jeuclid.context.typewrapper.TypeWrapper
FAILED_TO_CONVERT, TO
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectfromString(java.lang.String value)Attempts to convert a parameter value expressed as string into an instance of the appropriate (for this parameter) type.static TypeWrappergetInstance()java.lang.StringtoString(java.lang.Object value)Attempts to convert a parameter value expressed as an object of the appropriate (for this parameter) type into a string representation.-
Methods inherited from class net.sourceforge.jeuclid.context.typewrapper.AbstractSimpleTypeWrapper
getValueType, valid
-
-
-
-
Field Detail
-
SEPARATOR
public static final java.lang.String SEPARATOR
separator to be used when converting to string or parsing string.- See Also:
- Constant Field Values
-
-
Method Detail
-
getInstance
public static TypeWrapper getInstance()
- Returns:
- the singleton instance.
-
fromString
public java.lang.Object fromString(java.lang.String value)
Attempts to convert a parameter value expressed as string into an instance of the appropriate (for this parameter) type.- Specified by:
fromStringin interfaceTypeWrapper- Overrides:
fromStringin classAbstractSimpleTypeWrapper- Parameters:
value- parameter value as string- Returns:
- parameter value as an instance of the proper type
-
toString
public java.lang.String toString(java.lang.Object value)
Attempts to convert a parameter value expressed as an object of the appropriate (for this parameter) type into a string representation.- Specified by:
toStringin interfaceTypeWrapper- Overrides:
toStringin classAbstractSimpleTypeWrapper- Parameters:
value- parameter value as object- Returns:
- parameter value as string
-
-