public final class Set extends List
Modifier and Type | Class and Description |
---|---|
static class |
Set.Value
Inner class that represents a set of String.
|
Modifier and Type | Field and Description |
---|---|
static Set |
SINGLETON
The only instance of this class.
|
Modifier and Type | Method and Description |
---|---|
ItemList |
createList()
Creates a new
ItemList . |
static Set.Value |
fromStringForOptional(String string)
Constructs a
Set.Value from the specified string. |
static Set.Value |
fromStringForRequired(String string)
Constructs a
Set.Value from the specified string
which is guaranteed to be non-null . |
String |
getDescription()
Retrieves the description of this type.
|
static String |
toString(Set.Value value)
Converts the specified
Set.Value to a string. |
fromStringImpl, isValidValueImpl, toString, toString
checkValue, fromString, getName, getValueClass, isValidValue, toString
public static final Set SINGLETON
null
.public ItemList createList()
List
ItemList
.createList
in class List
null
.public static Set.Value fromStringForRequired(String string) throws IllegalArgumentException, TypeValueException
Set.Value
from the specified string
which is guaranteed to be non-null
.string
- the string to convert, cannot be null
.Set.Value
object, never null
.IllegalArgumentException
- if string == null
.TypeValueException
- if the specified string does not represent a valid value for this
type.public static Set.Value fromStringForOptional(String string) throws TypeValueException
Set.Value
from the specified string.string
- the string to convert, can be null
.Set.Value
, or null
if
string == null
.TypeValueException
- if the specified string does not represent a valid value for this
type.public static String toString(Set.Value value)
Set.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/.