net.fortuna.ical4j.model

Class PropertyList

Implemented Interfaces:
Serializable

public class PropertyList
extends ArrayList
implements Serializable

$Id: PropertyList.java,v 1.13 2008/12/16 12:34:53 fortuna Exp $ [Apr 5, 2004] Defines a list of iCalendar properties.

Constructor Summary

PropertyList()
Default constructor.
PropertyList(PropertyList properties)
Creates a deep copy of the specified property list.
PropertyList(int initialCapacity)
Creates a new instance with the specified initial capacity.

Method Summary

boolean
add(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(String name)
Returns a list of properties with the specified name.
Property
getProperty(String aName)
Returns the first property of specified name.
boolean
remove(Property property)
Remove a property from the list.
String
toString()

Constructor Details

PropertyList

public PropertyList()
Default constructor.

PropertyList

public PropertyList(PropertyList properties)
            throws ParseException,
                   IOException,
                   URISyntaxException
Creates a deep copy of the specified property list.
Parameters:
properties -

PropertyList

public PropertyList(int initialCapacity)
Creates a new instance with the specified initial capacity.
Parameters:
initialCapacity - the initial capacity of the list

Method Details

add

public final boolean add(Object arg0)
Overrides superclass to throw an IllegalArgumentException where argument is not a net.fortuna.ical4j.model.Property.
See Also:
java.util.List.add(E)

add

public final boolean add(Property property)
Add a property to the list.
Parameters:
property - the property to add
Returns:
true
See Also:
java.util.List.add(java.lang.Object)

getProperties

public final PropertyList getProperties(String name)
Returns a list of properties with the specified name.
Parameters:
name - name of properties to return
Returns:
a property list

getProperty

public final Property getProperty(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

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:
java.util.List.remove(java.lang.Object)

toString

public final String toString()
See Also:
java.util.AbstractCollection.toString()