org.xins.common.types.standard
Class Set.Value

java.lang.Object
  extended byorg.xins.common.types.ItemList
      extended byorg.xins.common.types.standard.Set.Value
Enclosing class:
Set

public static final class Set.Value
extends ItemList

Inner class that represents a set of String.


Constructor Summary
Set.Value()
          Creates a new set.
 
Method Summary
 void add(String value)
          Add a new element in the set.
 String get(int index)
          Get an element from the set.
 
Methods inherited from class org.xins.common.types.ItemList
add, addItem, get, getItem, getSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Set.Value

public Set.Value()
Creates a new set.

Method Detail

add

public void add(String value)
         throws IllegalArgumentException
Add a new element in the set.

Parameters:
value - the new value to add, cannot be null.
Throws:
IllegalArgumentException - if value == null.

get

public String get(int index)
Get an element from the set.

Parameters:
index - The position of the required element.
Returns:
The element at the specified position, cannot be null.


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