|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<String>
org.jvoicexml.xml.TokenList
public final class TokenList
Many of the tags feature lists of strings separated by a space. This class helps developers to create these lists easily and to iterate over them. This means real list access.
Copyright © 2005 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Field Summary |
|---|
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
TokenList()
Construct a new object. |
|
TokenList(String stringlist)
Create a new TokenList with values from the given list of
strings separated by spaces. |
|
| Method Summary | |
|---|---|
boolean |
add(String o)
Adding null is not allowed and throws a
NullPointerException. |
String |
get(int index)
|
int |
size()
|
String |
toString()
|
| Methods inherited from class java.util.AbstractList |
|---|
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
| Methods inherited from class java.util.AbstractCollection |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray |
| Constructor Detail |
|---|
public TokenList()
public TokenList(String stringlist)
TokenList with values from the given list of
strings separated by spaces.
stringlist - List of strings separated by spaces.| Method Detail |
|---|
public String get(int index)
get in interface List<String>get in class AbstractList<String>public int size()
size in interface Collection<String>size in interface List<String>size in class AbstractCollection<String>public String toString()
toString in class AbstractCollection<String>public boolean add(String o)
Adding null is not allowed and throws a
NullPointerException.
Addition of an empty string has no effect on the list.
add in interface Collection<String>add in interface List<String>add in class AbstractList<String>true if the string was appendend.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||