|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.knopflerfish.framework.FilterImpl
public class FilterImpl
Constructor Summary | |
---|---|
FilterImpl(java.lang.String filter)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this Filter object to another object. |
int |
hashCode()
Returns the hashCode for this Filter object. |
boolean |
match(java.util.Dictionary dictionary)
Filter using a Dictionary object. |
boolean |
match(ServiceReference reference)
Filter using a service's properties. |
boolean |
matchCase(java.util.Dictionary dictionary)
Filter with case sensitivity using a Dictionary object. |
java.lang.String |
toString()
Returns this Filter object'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 filter) throws InvalidSyntaxException
InvalidSyntaxException
Method Detail |
---|
public boolean match(ServiceReference reference)
Filter
The filter is executed using the keys and values of the referenced service's properties. The keys are case insensitively matched with the filter.
match
in interface Filter
reference
- 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 dictionary)
Filter
Dictionary
object. The Filter is executed
using the Dictionary
object's keys and values. The keys
are case insensitively matched with the filter.
match
in interface Filter
dictionary
- The Dictionary
object whose keys are
used in the match.
true
if the Dictionary
object's
keys and values match this filter; false
otherwise.public boolean matchCase(java.util.Dictionary dictionary)
Filter
Dictionary
object.
The Filter is executed using the Dictionary
object's keys
and values. The keys are case sensitively matched with the filter.
matchCase
in interface Filter
dictionary
- The Dictionary
object whose keys are
used in the match.
true
if the Dictionary
object's
keys and values match this filter; false
otherwise.public java.lang.String toString()
Filter
Filter
object'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
public boolean equals(java.lang.Object obj)
Filter
Filter
object to another object.
equals
in interface Filter
equals
in class java.lang.Object
obj
- The object to compare against this Filter
object.
Filter
object, then
returns this.toString().equals(obj.toString()
;false
otherwise.public int hashCode()
Filter
Filter
object.
hashCode
in interface Filter
hashCode
in class java.lang.Object
this.toString().hashCode()
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |