public final class List extends List
| Modifier and Type | Class and Description |
|---|---|
static class |
List.Value
Inner class that represents a list of String.
|
| Modifier and Type | Field and Description |
|---|---|
static List |
SINGLETON
The only instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
ItemList |
createList()
Creates a new
ItemList. |
static List.Value |
fromStringForOptional(String string)
Constructs a
List.Value from the specified string. |
static List.Value |
fromStringForRequired(String string)
Constructs a
List.Value from the specified string
which is guaranteed to be non-null. |
String |
getDescription()
Retrieves the description of this type.
|
static String |
toString(List.Value value)
Converts the specified
List.Value to a string. |
fromStringImpl, isValidValueImpl, toString, toStringcheckValue, fromString, getName, getValueClass, isValidValue, toStringpublic static final List SINGLETON
null.public ItemList createList()
ListItemList.createList in class Listnull.public static List.Value fromStringForRequired(String string) throws IllegalArgumentException, TypeValueException
List.Value from the specified string
which is guaranteed to be non-null.string - the string to convert, cannot be null.List.Value object, never null.IllegalArgumentException - if string == null.TypeValueException - if the specified string does not represent a valid value for this
type.public static List.Value fromStringForOptional(String string) throws TypeValueException
List.Value from the specified string.string - the string to convert, can be null.List.Value, or null if
string == null.TypeValueException - if the specified string does not represent a valid value for this
type.public static String toString(List.Value value)
List.Value to a string.value - the value to convert, can be null.null if and
only if value == null.public String getDescription()
TypegetDescription in class Typenull.See http://www.xins.org/.