com.codestreet.selector
Interface ISelector

All Known Implementing Classes:
Selector

public interface ISelector

Interface implemented by selectors.

Author:
Jawaid Hakim.

Method Summary
 Result eval(IValueProvider provider, java.lang.Object corr)
          Evaluate the selector.
 Result eval(java.util.Map identifiers)
          Evaluate the selector.
 java.util.Map getIdentifiers()
          Get identifiers used by the selector.
 java.lang.String getSelector()
          Get the selector.
 

Method Detail

eval

public Result eval(java.util.Map identifiers)
Evaluate the selector.

Parameters:
identifiers - Value for each non-null identifier in the selector.
Returns:
Returns true if the data passes the selector. Otherwise, returns false.
See Also:
getIdentifiers()

eval

public Result eval(IValueProvider provider,
                   java.lang.Object corr)
Evaluate the selector.

Parameters:
provider - Value provider. During evaluation of the selector callbacks are made on the value provider to get identifier values.
corr - Correlation data. Passed as-is to the value provider.
Returns:
Result evaluating the selector.

getIdentifiers

public java.util.Map getIdentifiers()
Get identifiers used by the selector. The key into the Map is the name of the identifier and the value is an instance of Identifier.

Returns:
Readonly Map of identifiers that are used within the selector.
Throws:
java.lang.UnsupportedOperationException
See Also:
eval(Map)

getSelector

public java.lang.String getSelector()
Get the selector.

Returns:
Selector.


Copyright © 2002-2006 CodeStreet. All Rights Reserved.