com.sas.util.transforms
Class StringToOrderedCollectionInterfaceTransform
com.sas.util.transforms.StringToOrderedCollectionInterfaceTransform
All Implemented Interfaces: com.sas.util.transforms.TransformInputOutputInterface, com.sas.util.transforms.TransformInterface, java.io.Serializable
public class StringToOrderedCollectionInterfaceTransform implements com.sas.util.transforms.TransformInputOutputInterface
A transform for converting a String to a OrderedCollectionInterface.
This works by tokenizing the input. Data that looks like an int
is converted to a Integer; long ints are converted
to Long objects;
floating point values are converted to Double objects,
true/false are converted
to Boolean,
character literals are converted to a Character object,
and pretty much everything else is converted to a String.
See Also: StaticOrderedCollectionInterfaceToStringTransform ,
Serialized Form
Methods inherited from interface com.sas.util.transforms.TransformInterface
transform
defaultInstance
public static final StringToOrderedCollectionInterfaceTransform defaultInstance
A default instance which can perform the transformation.
StringToOrderedCollectionInterfaceTransform
public StringToOrderedCollectionInterfaceTransform ()
Default constructor which uses a ',' delimiter.
StringToOrderedCollectionInterfaceTransform
public StringToOrderedCollectionInterfaceTransform (char delimiter)
Construct a transform which uses a specific delimiter.
Parameters: delimiter - the item delimiter.
StringToOrderedCollectionInterfaceTransform
public StringToOrderedCollectionInterfaceTransform (char delimiter,
OrderedCollectionInterface collection)
Construct a transform which uses a specific delimiter.
Parameters: delimiter - the item delimiter.collection - an output ordered collection to return from transform(Object)
getInputClass
public java.lang.Class getInputClass ()
Specified by: getInputClass in interface com.sas.util.transforms.TransformInputOutputInterface
getOutputClass
public java.lang.Class getOutputClass ()
Specified by: getOutputClass in interface com.sas.util.transforms.TransformInputOutputInterface
Copyright © 2009 SAS Institute Inc. All Rights Reserved.