Class SimpleFilter
java.lang.Object
org.apache.felix.framework.capabilityset.SimpleFilter
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
compareSubstring
(List<String> pieces, String s) static SimpleFilter
Converts a attribute map to a filter.getName()
int
getValue()
static SimpleFilter
parseSubstring
(String value) toString()
static String
unparseSubstring
(List<String> pieces)
-
Field Details
-
MATCH_ALL
public static final int MATCH_ALL- See Also:
-
AND
public static final int AND- See Also:
-
OR
public static final int OR- See Also:
-
NOT
public static final int NOT- See Also:
-
EQ
public static final int EQ- See Also:
-
LTE
public static final int LTE- See Also:
-
GTE
public static final int GTE- See Also:
-
SUBSTRING
public static final int SUBSTRING- See Also:
-
PRESENT
public static final int PRESENT- See Also:
-
APPROX
public static final int APPROX- See Also:
-
-
Constructor Details
-
SimpleFilter
-
-
Method Details
-
getName
-
getValue
-
getOperation
public int getOperation() -
toString
-
parse
-
parseSubstring
-
unparseSubstring
-
compareSubstring
-
convert
Converts a attribute map to a filter. The filter is created by iterating over the map's entry set. If ordering of attributes is important (e.g., for hitting attribute indices), then the map's entry set should iterate in the desired order. Equality testing is assumed for all attribute types other than version ranges, which are handled appropriated. If the attribute map is empty, then a filter that matches anything is returned.- Parameters:
attrs
- Map of attributes to convert to a filter.- Returns:
- A filter corresponding to the attributes.
-