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 SummaryConstructors Constructor Description RemoteServiceID(Namespace namespace, ID containerID, long containerRelative)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IDgetContainerID()Get the container ID for this remote service.longgetContainerRelativeID()Get container-relative ID for the remote service identifiedprotected intnamespaceCompareTo(BaseID o)protected booleannamespaceEquals(BaseID o)Called byNamespace.testIDEquals(BaseID, BaseID).protected StringnamespaceGetName()Called byNamespace.getNameForID(BaseID).protected intnamespaceHashCode()Called byNamespace.getHashCodeForID(BaseID).StringtoString()- 
Methods inherited from class org.eclipse.ecf.core.identity.BaseIDcompareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalForm, toExternalForm
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.lang.ComparablecompareTo
 - 
Methods inherited from interface org.eclipse.ecf.core.identity.IDequals, getName, getNamespace, hashCode, toExternalForm
 
- 
 
- 
- 
- 
Method Detail- 
namespaceCompareToprotected int namespaceCompareTo(BaseID o) Description copied from class:BaseID- Specified by:
- namespaceCompareToin class- BaseID
- Parameters:
- o- the other ID to compare to. Will not be- null.
- Returns:
- the appropriate value as per Comparablecontract.
 
 - 
namespaceEqualsprotected boolean namespaceEquals(BaseID o) Description copied from class:BaseIDCalled byNamespace.testIDEquals(BaseID, BaseID).- Specified by:
- namespaceEqualsin class- BaseID
- Parameters:
- o- the other ID to test against. May be- null.
- Returns:
- trueif this ID is equal to the given ID.- falseotherwise.
 
 - 
namespaceGetNameprotected String namespaceGetName() Description copied from class:BaseIDCalled byNamespace.getNameForID(BaseID).- Specified by:
- namespaceGetNamein class- BaseID
- Returns:
- String name for this ID. Must not be null. Value returned should be unique within this Namespace.
 
 - 
namespaceHashCodeprotected int namespaceHashCode() Description copied from class:BaseIDCalled byNamespace.getHashCodeForID(BaseID).- Specified by:
- namespaceHashCodein class- BaseID
- Returns:
- int hashCode for this ID. Returned value must be unique within this process.
 
 - 
getContainerIDpublic ID getContainerID() Description copied from interface:IRemoteServiceIDGet the container ID for this remote service. Will not returnnull.- Specified by:
- getContainerIDin interface- IRemoteServiceID
- Returns:
- ID the ID for the container associated with this remote service.  Will not return null.
 
 - 
getContainerRelativeIDpublic long getContainerRelativeID() Description copied from interface:IRemoteServiceIDGet container-relative ID for the remote service identified- Specified by:
- getContainerRelativeIDin interface- IRemoteServiceID
- Returns:
- int the container-relative ID.
 
 
- 
 
-