Package org.eclipse.ecf.remoteservice
Class RemoteServiceID
- java.lang.Object
-
- org.eclipse.ecf.core.identity.BaseID
-
- org.eclipse.ecf.remoteservice.RemoteServiceID
-
- All Implemented Interfaces:
Serializable
,Comparable
,Principal
,org.eclipse.core.runtime.IAdaptable
,ID
,IRemoteServiceID
public class RemoteServiceID extends BaseID implements IRemoteServiceID
- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RemoteServiceID(Namespace namespace, ID containerID, long containerRelative)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ID
getContainerID()
Get the container ID for this remote service.long
getContainerRelativeID()
Get container-relative ID for the remote service identifiedprotected int
namespaceCompareTo(BaseID o)
protected boolean
namespaceEquals(BaseID o)
Called byNamespace.testIDEquals(BaseID, BaseID)
.protected String
namespaceGetName()
Called byNamespace.getNameForID(BaseID)
.protected int
namespaceHashCode()
Called byNamespace.getHashCodeForID(BaseID)
.String
toString()
-
Methods inherited from class org.eclipse.ecf.core.identity.BaseID
compareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalForm, toExternalForm
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface org.eclipse.ecf.core.identity.ID
equals, getName, getNamespace, hashCode, toExternalForm
-
-
-
-
Method Detail
-
namespaceCompareTo
protected int namespaceCompareTo(BaseID o)
Description copied from class:BaseID
- Specified by:
namespaceCompareTo
in classBaseID
- Parameters:
o
- the other ID to compare to. Will not benull
.- Returns:
- the appropriate value as per
Comparable
contract.
-
namespaceEquals
protected boolean namespaceEquals(BaseID o)
Description copied from class:BaseID
Called byNamespace.testIDEquals(BaseID, BaseID)
.- Specified by:
namespaceEquals
in classBaseID
- Parameters:
o
- the other ID to test against. May benull
.- Returns:
true
if this ID is equal to the given ID.false
otherwise.
-
namespaceGetName
protected String namespaceGetName()
Description copied from class:BaseID
Called byNamespace.getNameForID(BaseID)
.- Specified by:
namespaceGetName
in classBaseID
- Returns:
- String name for this ID. Must not be
null
. Value returned should be unique within this Namespace.
-
namespaceHashCode
protected int namespaceHashCode()
Description copied from class:BaseID
Called byNamespace.getHashCodeForID(BaseID)
.- Specified by:
namespaceHashCode
in classBaseID
- Returns:
- int hashCode for this ID. Returned value must be unique within this process.
-
getContainerID
public ID getContainerID()
Description copied from interface:IRemoteServiceID
Get the container ID for this remote service. Will not returnnull
.- Specified by:
getContainerID
in interfaceIRemoteServiceID
- Returns:
- ID the ID for the container associated with this remote service. Will not return
null
.
-
getContainerRelativeID
public long getContainerRelativeID()
Description copied from interface:IRemoteServiceID
Get container-relative ID for the remote service identified- Specified by:
getContainerRelativeID
in interfaceIRemoteServiceID
- Returns:
- int the container-relative ID.
-
-