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
- Since:
- 3.0
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionRemoteServiceID(Namespace namespace, ID containerID, long containerRelative) -
Method Summary
Modifier and TypeMethodDescriptionGet the container ID for this remote service.longGet container-relative ID for the remote service identifiedprotected intprotected booleanCalled byNamespace.testIDEquals(BaseID, BaseID).protected StringCalled byNamespace.getNameForID(BaseID).protected intCalled byNamespace.getHashCodeForID(BaseID).toString()Methods inherited from class org.eclipse.ecf.core.identity.BaseID
compareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalForm, toExternalFormMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.ecf.core.identity.ID
equals, getName, getNamespace, hashCode, toExternalForm
-
Constructor Details
-
RemoteServiceID
-
-
Method Details
-
namespaceCompareTo
Description copied from class:BaseID- Specified by:
namespaceCompareToin classBaseID- Parameters:
o- the other ID to compare to. Will not benull.- Returns:
- the appropriate value as per
Comparablecontract.
-
namespaceEquals
Description copied from class:BaseIDCalled byNamespace.testIDEquals(BaseID, BaseID).- Specified by:
namespaceEqualsin classBaseID- Parameters:
o- the other ID to test against. May benull.- Returns:
trueif this ID is equal to the given ID.falseotherwise.
-
namespaceGetName
Description copied from class:BaseIDCalled byNamespace.getNameForID(BaseID).- Specified by:
namespaceGetNamein 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:BaseIDCalled byNamespace.getHashCodeForID(BaseID).- Specified by:
namespaceHashCodein classBaseID- Returns:
- int hashCode for this ID. Returned value must be unique within this process.
-
getContainerID
Description copied from interface:IRemoteServiceIDGet the container ID for this remote service. Will not returnnull.- Specified by:
getContainerIDin 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:IRemoteServiceIDGet container-relative ID for the remote service identified- Specified by:
getContainerRelativeIDin interfaceIRemoteServiceID- Returns:
- int the container-relative ID.
-
toString
-