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 boolean
equals(java.lang.Object o)
Compares thisFilter
to anotherFilter
.int
hashCode()
Returns the hashCode for thisFilter
.boolean
match(java.util.Dictionary<java.lang.String,?> dctnr)
Filter using aDictionary
with case insensitive key lookup.boolean
match(ServiceReference sr)
Filter using a service's properties.boolean
matchCase(java.util.Dictionary<java.lang.String,?> dctnr)
Filter using aDictionary
.boolean
matches(java.util.Map<java.lang.String,?> map)
Filter using aMap
.java.lang.String
toString()
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:Filter
Filter using a service's properties.This
Filter
is 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:Filter
Filter using aDictionary
with case insensitive key lookup. ThisFilter
is 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:Filter
Filter using aDictionary
. ThisFilter
is 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:Filter
Filter using aMap
. ThisFilter
is 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:Filter
Compares thisFilter
to anotherFilter
.This implementation returns the result of calling
this.toString().equals(obj.toString())
.
-
hashCode
public int hashCode()
Description copied from interface:Filter
Returns the hashCode for thisFilter
.This implementation returns the result of calling
this.toString().hashCode()
.
-
toString
public java.lang.String toString()
Description copied from interface:Filter
Returns thisFilter
's filter string.The filter string is normalized by removing whitespace which does not affect the meaning of the filter.
-
-