Class RemoteFilterImpl
- java.lang.Object
-
- org.eclipse.ecf.remoteservice.util.RemoteFilterImpl
-
- All Implemented Interfaces:
IRemoteFilter
,Filter
- Direct Known Subclasses:
RemoteFilterImpl
,RemoteServiceFilterImpl
public class RemoteFilterImpl extends Object implements IRemoteFilter
- Since:
- 3.0
-
-
Field Summary
Fields Modifier and Type Field Description static String
REMOTE_SERVICEID_PREFIX
-
Constructor Summary
Constructors Constructor Description RemoteFilterImpl(String createFilter)
RemoteFilterImpl(BundleContext context, String createFilter)
RemoteFilterImpl(Filter filter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Field Detail
-
REMOTE_SERVICEID_PREFIX
public static final String REMOTE_SERVICEID_PREFIX
- Since:
- 8.4
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
RemoteFilterImpl
public RemoteFilterImpl(String createFilter) throws InvalidSyntaxException
- Parameters:
createFilter
- filter- Throws:
InvalidSyntaxException
- if the createFilter is not of valid syntax
-
RemoteFilterImpl
public RemoteFilterImpl(BundleContext context, String createFilter) throws InvalidSyntaxException
- Parameters:
context
- bundle contextcreateFilter
- filter- Throws:
InvalidSyntaxException
- if given createFilter is not of valid filter syntax- Since:
- 6.0
-
RemoteFilterImpl
public RemoteFilterImpl(Filter filter)
-
-
Method Detail
-
getRsId
public long getRsId()
- Returns:
- long the remote service container relative id
- Since:
- 8.4
-
match
public boolean match(IRemoteServiceReference reference)
Description copied from interface:IRemoteFilter
Filter using a remote service's properties.The filter is executed using the keys and values of the referenced service's properties. The keys are case insensitively matched with the filter.
- Specified by:
match
in interfaceIRemoteFilter
- Parameters:
reference
- The reference to the service whose properties are used in the match.- Returns:
true
if the service's properties match this filter;false
otherwise.
-
match
public boolean match(Dictionary dictionary)
-
matchCase
public boolean matchCase(Dictionary dictionary)
-
equals
public boolean equals(Object obj)
-
hashCode
public int hashCode()
-
toString
public String toString()
-
match
public boolean match(ServiceReference reference)
-
-