public class RemoteFilterImpl extends Object implements IRemoteFilter
Modifier and Type | Field and Description |
---|---|
static String |
REMOTE_SERVICEID_PREFIX |
Constructor and Description |
---|
RemoteFilterImpl(BundleContext context,
String createFilter) |
RemoteFilterImpl(Filter filter) |
RemoteFilterImpl(String createFilter) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static String |
getObjectClassFilterString(String objectClass) |
long |
getRsId() |
int |
hashCode() |
boolean |
match(Dictionary dictionary) |
boolean |
match(IRemoteServiceReference reference)
Filter using a remote service's properties.
|
boolean |
match(ServiceReference reference) |
boolean |
matchCase(Dictionary dictionary) |
boolean |
matches(Map map) |
String |
toString() |
public static final String REMOTE_SERVICEID_PREFIX
public RemoteFilterImpl(String createFilter) throws InvalidSyntaxException
createFilter
- filterInvalidSyntaxException
- if the createFilter is not of valid syntaxpublic RemoteFilterImpl(BundleContext context, String createFilter) throws InvalidSyntaxException
context
- bundle contextcreateFilter
- filterInvalidSyntaxException
- if given createFilter is not of valid filter syntaxpublic RemoteFilterImpl(Filter filter)
public long getRsId()
public boolean match(IRemoteServiceReference reference)
IRemoteFilter
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 IRemoteFilter
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(Dictionary dictionary)
public boolean matchCase(Dictionary dictionary)
public boolean equals(Object obj)
public int hashCode()
public String toString()
public boolean match(ServiceReference reference)
Copyright © 2004–2020 Eclipse Foundation. All rights reserved.