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, toString
checkValue, fromString, getName, getValueClass, isValidValue, toString
public static final List SINGLETON
null
.public ItemList createList()
List
ItemList
.createList
in class List
null
.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()
Type
getDescription
in class Type
null
.See http://www.xins.org/.