net.fortuna.ical4j.model
Class LocationTypeList

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

public class LocationTypeList
extends java.lang.Object
implements java.io.Serializable

Defines a list of iCalendar location types.

Author:
Ben Fortuna
See Also:
Serialized Form

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

Constructor Detail

LocationTypeList

public LocationTypeList()
Default constructor.


LocationTypeList

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

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

toString

public final java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
AbstractCollection.toString()

add

public final boolean add(java.lang.String locationType)
Add a location type to the list.

Parameters:
category - 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 java.util.Iterator iterator()
Returns:
an iterator
See Also:
List.iterator()

remove

public final boolean remove(java.lang.String locationType)
Remove a locationType from the list.

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

size

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


Copyright © 2004-2007 Modularity. All Rights Reserved.