net.fortuna.ical4j.model
Class TextList

java.lang.Object
  extended by net.fortuna.ical4j.model.TextList
All Implemented Interfaces:
Serializable

public class TextList
extends Object
implements Serializable

$Id$ [23-Apr-2004] Defines a list of iCalendar text elements.

Author:
Ben Fortuna
See Also:
Serialized Form

Constructor Summary
TextList()
          Default constructor.
TextList(String aValue)
          Parses the specified string representation to create a list of categories.
TextList(String[] textValues)
           
 
Method Summary
 boolean add(String text)
          Add an address to the list.
 boolean isEmpty()
           
 Iterator iterator()
           
 boolean remove(String text)
          Remove a text from the list.
 int size()
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextList

public TextList()
Default constructor.


TextList

public TextList(String aValue)
Parses the specified string representation to create a list of categories.

Parameters:
aValue - a string representation of a list of categories

TextList

public TextList(String[] textValues)
Parameters:
textValues - an array of text values
Method Detail

toString

public final String toString()

Overrides:
toString in class Object

add

public final boolean add(String text)
Add an address to the list.

Parameters:
text - the category to add
Returns:
true
See Also:
List.add(java.lang.Object)

isEmpty

public final boolean isEmpty()
Returns:
boolean indicates if the list is empty
See Also:
List.isEmpty()

iterator

public final Iterator iterator()
Returns:
an iterator
See Also:
List.iterator()

remove

public final boolean remove(String text)
Remove a text from the list.

Parameters:
text - the text element to remove
Returns:
true if the list contained the specified text element
See Also:
List.remove(java.lang.Object)

size

public final int size()
Returns:
the number of text elements in the list
See Also:
List.size()


Copyright © 2004-2012 Micronode. All Rights Reserved.