org.xins.common.types.standard
Class List

java.lang.Object
  extended byorg.xins.common.types.Type
      extended byorg.xins.common.types.List
          extended byorg.xins.common.types.standard.List

public final class List
extends List

Standard type _list.

Since:
XINS 1.5.0.
Version:
$Revision: 1.4.2.2 $ $Date: 2007/01/09 15:54:15 $
Author:
Anthony Goubard

Nested Class Summary
static class List.Value
          Inner class that represents a list of java.lang.String.
 
Field Summary
static List SINGLETON
          The only instance of this class.
 
Method Summary
 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.
static String toString(List.Value value)
          Converts the specified List.Value to a string.
 
Methods inherited from class org.xins.common.types.List
fromStringImpl, isValidValueImpl, toString, toString
 
Methods inherited from class org.xins.common.types.Type
checkValue, fromString, getName, getValueClass, isValidValue, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SINGLETON

public static final List SINGLETON
The only instance of this class. This field is never null.

Method Detail

createList

public ItemList createList()
Description copied from class: List
Creates a new ItemList.

Overrides:
createList in class List
Returns:
the new list created, never null.

fromStringForRequired

public static List.Value fromStringForRequired(String string)
                                        throws IllegalArgumentException,
                                               TypeValueException
Constructs a List.Value from the specified string which is guaranteed to be non-null.

Parameters:
string - the string to convert, cannot be null.
Returns:
the List.Value object, never null.
Throws:
IllegalArgumentException - if string == null.
TypeValueException - if the specified string does not represent a valid value for this type.

fromStringForOptional

public static List.Value fromStringForOptional(String string)
                                        throws TypeValueException
Constructs a List.Value from the specified string.

Parameters:
string - the string to convert, can be null.
Returns:
the List.Value, or null if string == null.
Throws:
TypeValueException - if the specified string does not represent a valid value for this type.

toString

public static String toString(List.Value value)
Converts the specified List.Value to a string.

Parameters:
value - the value to convert, can be null.
Returns:
the textual representation of the value, or null if and only if value == null.


See http://www.xins.org/.