|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.framework.FilterImpl
public class FilterImpl
Constructor Summary | |
---|---|
FilterImpl(java.lang.String filterStr)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Compares this Filter to another Filter . |
int |
hashCode()
Returns the hashCode for this Filter . |
boolean |
match(java.util.Dictionary<java.lang.String,?> dctnr)
Filter using a Dictionary 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 a Dictionary . |
boolean |
matches(java.util.Map<java.lang.String,?> map)
Filter using a Map . |
java.lang.String |
toString()
Returns this Filter 's filter string. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public FilterImpl(java.lang.String filterStr) throws InvalidSyntaxException
InvalidSyntaxException
Method Detail |
---|
public boolean match(ServiceReference sr)
Filter
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
in interface Filter
sr
- The reference to the service whose properties are used
in the match.
true
if the service's properties match this
Filter
; false
otherwise.public boolean match(java.util.Dictionary<java.lang.String,?> dctnr)
Filter
Dictionary
with case insensitive key lookup. This
Filter
is executed using the specified Dictionary
's keys
and values. The keys are looked up in a case insensitive manner.
match
in interface Filter
dctnr
- The Dictionary
whose key/value pairs are used
in the match.
true
if the Dictionary
's values match this
filter; false
otherwise.public boolean matchCase(java.util.Dictionary<java.lang.String,?> dctnr)
Filter
Dictionary
. This Filter
is executed using
the specified Dictionary
's keys and values. The keys are looked
up in a normal manner respecting case.
matchCase
in interface Filter
dctnr
- The Dictionary
whose key/value pairs are used
in the match.
true
if the Dictionary
's values match this
filter; false
otherwise.public boolean matches(java.util.Map<java.lang.String,?> map)
Filter
Map
. This Filter
is executed using the
specified Map
's keys and values. The keys are looked up in a
normal manner respecting case.
matches
in interface Filter
map
- The Map
whose key/value pairs are used in the match.
Maps with null
key or values are not supported. A
null
value is considered not present to the filter.
true
if the Map
's values match this filter;
false
otherwise.public boolean equals(java.lang.Object o)
Filter
Filter
to another Filter
.
This implementation returns the result of calling
this.toString().equals(obj.toString())
.
equals
in interface Filter
equals
in class java.lang.Object
o
- The object to compare against this Filter
.
Filter
object, then returns
the result of calling
this.toString().equals(obj.toString())
;
false
otherwise.public int hashCode()
Filter
Filter
.
This implementation returns the result of calling
this.toString().hashCode()
.
hashCode
in interface Filter
hashCode
in class java.lang.Object
Filter
.public java.lang.String toString()
Filter
Filter
's filter string.
The filter string is normalized by removing whitespace which does not affect the meaning of the filter.
toString
in interface Filter
toString
in class java.lang.Object
Filter
's filter string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |