net.fortuna.ical4j.model
Class IndexedComponentList

java.lang.Object
  extended bynet.fortuna.ical4j.model.IndexedComponentList

public class IndexedComponentList
extends Object

Provides indexing of components on property names.

Author:
Ben Fortuna

Constructor Summary
IndexedComponentList(ComponentList list)
          Creates a new instance indexed on all properties.
IndexedComponentList(ComponentList list, String indexProperty)
          Creates a new instance indexed on the specified property name.
 
Method Summary
 Component getComponent(String propertyName)
          Returns the first component containing a property with the specified name
 ComponentList getComponents(String propertyName)
          Returns a list of components containing a property with the specified name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedComponentList

public IndexedComponentList(ComponentList list,
                            String indexProperty)
Creates a new instance indexed on the specified property name.

Parameters:
list -
indexProperty -

IndexedComponentList

public IndexedComponentList(ComponentList list)
Creates a new instance indexed on all properties.

Parameters:
list -
Method Detail

getComponents

public ComponentList getComponents(String propertyName)
Returns a list of components containing a property with the specified name

Parameters:
propertyName - the name of the property contained in the returned components
Returns:
a component list

getComponent

public Component getComponent(String propertyName)
Returns the first component containing a property with the specified name

Parameters:
propertyName - the name of the property identified in the returned component
Returns:
a component or null if no component is found containing a property with the specified name