org.eclipse.ecf.presence.search
Interface IResultList

All Superinterfaces:
org.eclipse.core.runtime.IAdaptable
All Known Implementing Classes:
ResultList

public interface IResultList
extends org.eclipse.core.runtime.IAdaptable

This interface provides methods to handle the result list that match the search.

Since:
2.0

Method Summary
 IResult getResult(java.lang.String field, java.lang.String value)
          Get the result that math the specific field and value
 java.util.Collection getResults()
          Get results that match the search.
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

getResults

java.util.Collection getResults()
Get results that match the search. Instances of list are of type IResult

Returns:
Collection of IResult. Will not return null. May return an empty Collection.

getResult

IResult getResult(java.lang.String field,
                  java.lang.String value)
Get the result that math the specific field and value

Parameters:
field - field's name used as argument to try to match the search
value - value for the respective field used as argument to try to match the search
Returns:
IResult will be null case it doesn't exist