Top Description Fields Constructors Methods
net.fortuna.ical4j.model

public Class IndexedPropertyList

extends Object
Class Inheritance
Imports
java.util.*

$Id$ Created on 4/02/2006 Provides indexing of properties on a specific parameter.
Author
Ben Fortuna

Field Summary

Modifier and TypeField and Description
private final Map<String, List<Property>>

Constructor Summary

AccessConstructor and Description
public
IndexedPropertyList(final List<Property>
a list of properties
list
,
final String
the name of parameters on which to index
parameterName
)

Creates a new instance indexed on the parameters with the specified name.

Method Summary

Modifier and TypeMethod and Description
public List<Property>

Returns:

a property list
getProperties
(final String
the value of the parameter contained in the returned properties
paramValue
)

Returns a list of properties containing a parameter with the specified value.

public Property

Returns:

a property or null if no property is found containing a parameter with the specified value
getProperty
(final String
the value of the parameter identified in the returned property
paramValue
)

Returns the first property containing a parameter with the specified value.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

indexback to summary
private final Map<String, List<Property>> index

Constructor Detail

IndexedPropertyListback to summary
public IndexedPropertyList(final List<Property> list, final String parameterName)

Creates a new instance indexed on the parameters with the specified name.

Parameters
list:List<Property>

a list of properties

parameterName:String

the name of parameters on which to index

Method Detail

getPropertiesback to summary
public List<Property> getProperties(final String paramValue)

Returns a list of properties containing a parameter with the specified value.

Parameters
paramValue:String

the value of the parameter contained in the returned properties

Returns:List<Property>

a property list

getPropertyback to summary
public Property getProperty(final String paramValue)

Returns the first property containing a parameter with the specified value.

Parameters
paramValue:String

the value of the parameter identified in the returned property

Returns:Property

a property or null if no property is found containing a parameter with the specified value