|
||||||||||
| 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 dctnr)
Filter using a Dictionary. |
boolean |
match(ServiceReference sr)
Filter using a service's properties. |
boolean |
matchCase(java.util.Dictionary dctnr)
Filter with case sensitivity using a Dictionary. |
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 case insensitively matched
with this Filter.
match in interface Filtersr - 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 dctnr)
FilterDictionary. This Filter is
executed using the specified Dictionary's keys and values.
The keys are case insensitively matched with this Filter.
match in interface Filterdctnr - The Dictionary whose keys are used in the
match.
true if the Dictionary's keys and
values match this filter; false otherwise.public boolean matchCase(java.util.Dictionary dctnr)
FilterDictionary. This
Filter is executed using the specified
Dictionary's keys and values. The keys are case sensitively
matched with this Filter.
matchCase in interface Filterdctnr - The Dictionary whose keys are used in the
match.
true if the Dictionary's keys and
values match this filter; false otherwise.public boolean equals(java.lang.Object o)
FilterFilter to another Filter.
This method returns the result of calling
this.toString().equals(obj.toString()).
equals in interface Filterequals in class java.lang.Objecto - 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()
FilterFilter.
This method returns the result of calling
this.toString().hashCode().
hashCode in interface FilterhashCode in class java.lang.ObjectFilter.public java.lang.String toString()
FilterFilter's filter string.
The filter string is normalized by removing whitespace which does not affect the meaning of the filter.
toString in interface FiltertoString in class java.lang.ObjectFilter's filter string.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||