Package org.apache.felix.framework
Class FilterImpl
- java.lang.Object
-
- org.apache.felix.framework.FilterImpl
-
-
Constructor Summary
Constructors Constructor Description FilterImpl(java.lang.String filterStr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)Compares thisFilterto anotherFilter.inthashCode()Returns the hashCode for thisFilter.booleanmatch(java.util.Dictionary<java.lang.String,?> dctnr)Filter using aDictionarywith case insensitive key lookup.booleanmatch(ServiceReference sr)Filter using a service's properties.booleanmatchCase(java.util.Dictionary<java.lang.String,?> dctnr)Filter using aDictionary.booleanmatches(java.util.Map<java.lang.String,?> map)Filter using aMap.java.lang.StringtoString()Returns thisFilter's filter string.
-
-
-
Constructor Detail
-
FilterImpl
public FilterImpl(java.lang.String filterStr) throws InvalidSyntaxException- Throws:
InvalidSyntaxException
-
-
Method Detail
-
match
public boolean match(ServiceReference sr)
Description copied from interface:FilterFilter using a service's properties.This
Filteris executed using the keys and values of the referenced service's properties. The keys are looked up in a case insensitive manner.
-
match
public boolean match(java.util.Dictionary<java.lang.String,?> dctnr)
Description copied from interface:FilterFilter using aDictionarywith case insensitive key lookup. ThisFilteris executed using the specifiedDictionary's keys and values. The keys are looked up in a case insensitive manner.
-
matchCase
public boolean matchCase(java.util.Dictionary<java.lang.String,?> dctnr)
Description copied from interface:FilterFilter using aDictionary. ThisFilteris executed using the specifiedDictionary's keys and values. The keys are looked up in a normal manner respecting case.
-
matches
public boolean matches(java.util.Map<java.lang.String,?> map)
Description copied from interface:FilterFilter using aMap. ThisFilteris executed using the specifiedMap's keys and values. The keys are looked up in a normal manner respecting case.
-
equals
public boolean equals(java.lang.Object o)
Description copied from interface:FilterCompares thisFilterto anotherFilter.This implementation returns the result of calling
this.toString().equals(obj.toString()).
-
hashCode
public int hashCode()
Description copied from interface:FilterReturns the hashCode for thisFilter.This implementation returns the result of calling
this.toString().hashCode().
-
toString
public java.lang.String toString()
Description copied from interface:FilterReturns thisFilter's filter string.The filter string is normalized by removing whitespace which does not affect the meaning of the filter.
-
-