net.fortuna.ical4j.model
Class PropertyList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by net.fortuna.ical4j.model.PropertyList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess

public class PropertyList
extends java.util.ArrayList
implements java.io.Serializable

Defines a list of iCalendar properties.

Author:
Ben Fortuna
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
PropertyList()
          Default constructor.
PropertyList(int initialCapacity)
          Creates a new instance with the specified initial capacity.
PropertyList(PropertyList properties)
          Creates a deep copy of the specified property list.
 
Method Summary
 boolean add(java.lang.Object arg0)
          Overrides superclass to throw an IllegalArgumentException where argument is not a net.fortuna.ical4j.model.Property.
 boolean add(Property property)
          Add a property to the list.
 PropertyList getProperties(java.lang.String name)
          Returns a list of properties with the specified name.
 Property getProperty(java.lang.String aName)
          Returns the first property of specified name.
 boolean remove(Property property)
          Remove a property from the list.
 java.lang.String toString()
           
 
Methods inherited from class java.util.ArrayList
add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

PropertyList

public PropertyList()
Default constructor.


PropertyList

public PropertyList(int initialCapacity)
Creates a new instance with the specified initial capacity.

Parameters:
initialCapacity - the initial capacity of the list

PropertyList

public PropertyList(PropertyList properties)
             throws java.text.ParseException,
                    java.io.IOException,
                    java.net.URISyntaxException
Creates a deep copy of the specified property list.

Parameters:
properties -
Throws:
java.text.ParseException
java.io.IOException
java.net.URISyntaxException
Method Detail

toString

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

getProperty

public final Property getProperty(java.lang.String aName)
Returns the first property of specified name.

Parameters:
aName - name of property to return
Returns:
a property or null if no matching property found

getProperties

public final PropertyList getProperties(java.lang.String name)
Returns a list of properties with the specified name.

Parameters:
name - name of properties to return
Returns:
a property list

add

public final boolean add(Property property)
Add a property to the list.

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

add

public final boolean add(java.lang.Object arg0)
Overrides superclass to throw an IllegalArgumentException where argument is not a net.fortuna.ical4j.model.Property.

Specified by:
add in interface java.util.Collection
Specified by:
add in interface java.util.List
Overrides:
add in class java.util.ArrayList
See Also:
java.util.List#add(E)

remove

public final boolean remove(Property property)
Remove a property from the list.

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


Copyright © 2004-2007 Modularity. All Rights Reserved.