| org.archive.crawler.settings.StringList
StringList | public class StringList extends ListType (Code) | | List of String values.
author: John Erik Halse |
Constructor Summary | |
public | StringList(String name, String description) Creates a new StringList.
Parameters: name - of the list. Parameters: description - of the list. | public | StringList(String name, String description, StringList l) Creates a new StringList and initializes it with the values from
another StringList.
Parameters: name - of the list. Parameters: description - of the list. | public | StringList(String name, String description, String[] l) Creates a new StringList and initializes it with the values from
an array of Strings.
Parameters: name - of the list. Parameters: description - of the list. |
Method Summary | |
public void | add(int index, String element) Add a new
java.lang.String at the specified index to this list. | public void | add(String element) Add a new
java.lang.String at the end of this list. | public void | addAll(StringList l) Appends all of the elements in the specified list to the end of this
list, in the order that they are returned by the specified lists's
iterator. | public void | addAll(String[] l) Appends all of the elements in the specified array to the end of this
list, in the same order that they are in the array. | public String | checkType(Object element) Check if element is of right type for this list.
Parameters: element - element to check. | public String | set(int index, String element) Replaces the element at the specified position in this list with the
specified element.
Parameters: index - index at which the specified element is to be inserted. Parameters: element - element to be inserted. |
StringList | public StringList(String name, String description)(Code) | | Creates a new StringList.
Parameters: name - of the list. Parameters: description - of the list. This string should be suitable for usingin a user interface. |
StringList | public StringList(String name, String description, StringList l)(Code) | | Creates a new StringList and initializes it with the values from
another StringList.
Parameters: name - of the list. Parameters: description - of the list. This string should be suitable for usingin a user interface. Parameters: l - |
StringList | public StringList(String name, String description, String[] l)(Code) | | Creates a new StringList and initializes it with the values from
an array of Strings.
Parameters: name - of the list. Parameters: description - of the list. This string should be suitable for usingin a user interface. Parameters: l - the array from which this lists gets its initial values. |
add | public void add(int index, String element)(Code) | | Add a new
java.lang.String at the specified index to this list.
Parameters: index - index at which the specified element is to be inserted. Parameters: element - the value to be added. |
addAll | public void addAll(StringList l)(Code) | | Appends all of the elements in the specified list to the end of this
list, in the order that they are returned by the specified lists's
iterator.
The behavior of this operation is unspecified if the specified
collection is modified while the operation is in progress.
Parameters: l - list whose elements are to be added to this list. |
addAll | public void addAll(String[] l)(Code) | | Appends all of the elements in the specified array to the end of this
list, in the same order that they are in the array.
Parameters: l - array whose elements are to be added to this list. |
checkType | public String checkType(Object element) throws ClassCastException(Code) | | Check if element is of right type for this list.
Parameters: element - element to check. element of the right type. throws: ClassCastException - is thrown if the element was of wrong typeand could not be converted. |
set | public String set(int index, String element)(Code) | | Replaces the element at the specified position in this list with the
specified element.
Parameters: index - index at which the specified element is to be inserted. Parameters: element - element to be inserted. the element previously at the specified position. |
|
|