Class TLIListTypeWrapper
java.lang.Object
net.sourceforge.jeuclid.context.typewrapper.AbstractSimpleTypeWrapper
net.sourceforge.jeuclid.context.typewrapper.TLIListTypeWrapper
- All Implemented Interfaces:
Serializable,TypeWrapper
List is converted to String and back by using comma-separated
representation.
Strings are Stored Trimmed, Lower-cased, Interned.
- Version:
- $Revision: 03dc0884e86f $
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringseparator 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
Modifier and TypeMethodDescriptionfromString(String value) Attempts to convert a parameter value expressed as string into an instance of the appropriate (for this parameter) type.static TypeWrapperAttempts 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 Details
-
SEPARATOR
separator to be used when converting to string or parsing string.- See Also:
-
-
Method Details
-
getInstance
- Returns:
- the singleton instance.
-
fromString
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
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
-