org.teleal.cling.model.types.csv
Class CSV<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
org.teleal.cling.model.types.csv.CSV<T>
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess
- Direct Known Subclasses:
- CSVBoolean, CSVBytes, CSVCharacter, CSVDate, CSVDouble, CSVFloat, CSVInteger, CSVShort, CSVString, CSVUnsignedIntegerFourBytes, CSVUnsignedIntegerOneByte, CSVUnsignedIntegerTwoBytes, CSVURI
public abstract class CSV<T>
- extends ArrayList<T>
Transforms a state variable value from/to strings of comma-separated elements.
A concrete implementation of this interface knows how to transform values of the
declared type into a string of comma-separated list of elements, and how to read
such strings back into individual values.
Your action method returns a CSV<...>
instance as an output argument. It can
also accept a concrecte subclass of this type as an input argument, e.g. CSVString
.
This type extends a regular List
, so within your action method you can
handle the elements as usual.
- Author:
- Christian Bauer
- See Also:
- Serialized Form
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
datatype
protected final Datatype.Builtin datatype
CSV
public CSV()
CSV
public CSV(String s)
throws InvalidValueException
- Throws:
InvalidValueException
parseString
protected List parseString(String s)
throws InvalidValueException
- Throws:
InvalidValueException
getBuiltinDatatype
protected Datatype.Builtin getBuiltinDatatype()
throws InvalidValueException
- Throws:
InvalidValueException
toString
public String toString()
- Overrides:
toString
in class AbstractCollection<T>
Copyright © 2011 Teleal GmbH, Switzerland. All Rights Reserved.