net.fortuna.ical4j.model
Class IndexedComponentList
java.lang.Object
net.fortuna.ical4j.model.IndexedComponentList
public class IndexedComponentList
extends java.lang.Object
$Id: IndexedComponentList.java,v 1.5 2008/12/16 12:34:52 fortuna Exp $
Created on 4/02/2006
Provides indexing of components on a specific property.
IndexedComponentList(ComponentList list, String propertyName) - Creates a new instance indexed on properties with the specified name.
|
Component | getComponent(String propertyValue) - Returns the first component containing a property with the specified
value.
|
ComponentList | getComponents(String propertyValue) - Returns a list of components containing a property with the
specified value.
|
IndexedComponentList
public IndexedComponentList(ComponentList list,
String propertyName)
Creates a new instance indexed on properties with the specified name.
list
- a list of componentspropertyName
- the name of the properties to index on
getComponent
public Component getComponent(String propertyValue)
Returns the first component containing a property with the specified
value.
propertyValue
- the value of the property identified in the returned
component
- a component or null if no component is found containing a property
with the specified value
getComponents
public ComponentList getComponents(String propertyValue)
Returns a list of components containing a property with the
specified value.
propertyValue
- the value of the property contained in the
returned components