net.fortuna.ical4j.model
Class IndexedPropertyList

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

public class IndexedPropertyList
extends Object

Provides indexing of properties on parameter names.

Author:
Ben Fortuna

Constructor Summary
IndexedPropertyList(PropertyList list)
          Creates a new instance indexed on all parameters.
IndexedPropertyList(PropertyList list, String indexParameter)
          Creates a new instance indexed on the specified parameter name.
 
Method Summary
 PropertyList getProperties(String paramName)
          Returns a list of properties containing a parameter with the specified name
 Property getProperty(String paramName)
          Returns the first property containing a parameter with the specified name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedPropertyList

public IndexedPropertyList(PropertyList list,
                           String indexParameter)
Creates a new instance indexed on the specified parameter name.

Parameters:
list -
indexParameter -

IndexedPropertyList

public IndexedPropertyList(PropertyList list)
Creates a new instance indexed on all parameters.

Parameters:
list -
Method Detail

getProperties

public PropertyList getProperties(String paramName)
Returns a list of properties containing a parameter with the specified name

Parameters:
paramName - the name of the parameter contained in the returned properties
Returns:
a property list

getProperty

public Property getProperty(String paramName)
Returns the first property containing a parameter with the specified name

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