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 StringREMOTE_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 booleanequals(Object obj)static StringgetObjectClassFilterString(String objectClass)longgetRsId()inthashCode()booleanmatch(Dictionary dictionary)booleanmatch(IRemoteServiceReference reference)Filter using a remote service's properties.booleanmatch(ServiceReference reference)booleanmatchCase(Dictionary dictionary)booleanmatches(Map map)StringtoString()
-
-
-
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:IRemoteFilterFilter 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:
matchin interfaceIRemoteFilter- Parameters:
reference- The reference to the service whose properties are used in the match.- Returns:
trueif the service's properties match this filter;falseotherwise.
-
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)
-
-