Eclipse Platform
Release 3.6

org.eclipse.equinox.p2.metadata.expression
Interface IFilterExpression

All Superinterfaces:
Filter, IExpression

public interface IFilterExpression
extends IExpression, Filter

An interface that combines the IExpression with the LDAP filter. The string representation is the LDAP filter syntax.

Since:
2.0

Field Summary
 
Fields inherited from interface org.eclipse.equinox.p2.metadata.expression.IExpression
TYPE_ALL, TYPE_AND, TYPE_ARRAY, TYPE_ASSIGNMENT, TYPE_AT, TYPE_COLLECT, TYPE_CONDITION, TYPE_EQUALS, TYPE_EXISTS, TYPE_FIRST, TYPE_FLATTEN, TYPE_FUNCTION, TYPE_GREATER, TYPE_GREATER_EQUAL, TYPE_INTERSECT, TYPE_LAMBDA, TYPE_LATEST, TYPE_LESS, TYPE_LESS_EQUAL, TYPE_LIMIT, TYPE_LITERAL, TYPE_MATCHES, TYPE_MEMBER, TYPE_NOT, TYPE_NOT_EQUALS, TYPE_OR, TYPE_PARAMETER, TYPE_PIPE, TYPE_SELECT, TYPE_TRAVERSE, TYPE_UNION, TYPE_UNIQUE, TYPE_VARIABLE
 
Method Summary
 boolean match(Map<String,? extends Object> map)
          Filter using a Map.
 boolean matchCase(Map<String,? extends Object> map)
          Filter with case sensitivity using a Map.
 
Methods inherited from interface org.eclipse.equinox.p2.metadata.expression.IExpression
accept, evaluate, getExpressionType, toLDAPString, toString
 
Methods inherited from interface org.osgi.framework.Filter
equals, hashCode, match, match, matchCase, toString
 

Method Detail

match

boolean match(Map<String,? extends Object> map)
Filter using a Map. This Filter is executed using the specified Map's keys and values. The keys are case insensitively matched with this Filter.

Parameters:
map - The Map whose keys are used in the match.
Returns:
true if the map's keys and values match this filter; false otherwise.
Throws:
IllegalArgumentException - If map contains case variants of the same key name.

matchCase

boolean matchCase(Map<String,? extends Object> map)
Filter with case sensitivity using a Map. This Filter is executed using the specified Map's keys and values. The keys are case sensitively matched with this Filter.

Parameters:
map - The Map whose keys are used in the match.
Returns:
true if the map's keys and values match this filter; false otherwise.

Eclipse Platform
Release 3.6

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2010. All rights reserved.