Class ServiceID
- java.lang.Object
- 
- org.eclipse.ecf.core.identity.BaseID
- 
- org.eclipse.ecf.discovery.identity.ServiceID
 
 
- 
- All Implemented Interfaces:
- Serializable,- Comparable,- Principal,- org.eclipse.core.runtime.IAdaptable,- ID,- IServiceID
 - Direct Known Subclasses:
- DnsSdServiceID,- JSLPServiceID,- ZooDiscoveryServiceID
 
 public class ServiceID extends BaseID implements IServiceID Service identity type. ServiceIDs are IDs that uniquely identify a remote service. Subclasses may be created as appropriate.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected URIlocationprotected IServiceInfoserviceInfoprotected IServiceTypeIDtype
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedServiceID(Namespace namespace, IServiceTypeID type, URI anURI)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)protected StringgetFullyQualifiedName()URIgetLocation()(non-Javadoc)IServiceInfogetServiceInfo()StringgetServiceName()Get service name for this ID.StringgetServiceType()Get service type for this ID.IServiceTypeIDgetServiceTypeID()Get service type ID for this ID.inthashCode()protected intnamespaceCompareTo(BaseID o)protected booleannamespaceEquals(BaseID o)Called byNamespace.testIDEquals(BaseID, BaseID).protected StringnamespaceGetName()Called byNamespace.getNameForID(BaseID).protected intnamespaceHashCode()Called byNamespace.getHashCodeForID(BaseID).voidsetServiceInfo(IServiceInfo serviceInfo)StringtoString()- 
Methods inherited from class org.eclipse.ecf.core.identity.BaseIDcompareTo, getAdapter, getName, getNamespace, 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.IDgetName, getNamespace, toExternalForm
 
- 
 
- 
- 
- 
Field Detail- 
serviceInfoprotected IServiceInfo serviceInfo - Since:
- 3.0
 
 - 
typeprotected IServiceTypeID type 
 - 
locationprotected URI location - Since:
- 3.0
 
 
- 
 - 
Constructor Detail- 
ServiceIDprotected ServiceID(Namespace namespace, IServiceTypeID type, URI anURI) - Parameters:
- namespace- namespace should not be- null
- type- service type ID should not be- null
- anURI- uri for service location should not be- null
- Since:
- 3.0
 
 
- 
 - 
Method Detail- 
getFullyQualifiedNameprotected String getFullyQualifiedName() 
 - 
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.
 
 - 
getServiceTypepublic String getServiceType() Get service type for this ID.- Returns:
- String service type. Will not be null.
 
 - 
getServiceTypeIDpublic IServiceTypeID getServiceTypeID() Description copied from interface:IServiceIDGet service type ID for this ID.- Specified by:
- getServiceTypeIDin interface- IServiceID
- Returns:
- IServiceTypeID. Will not be null.
 
 - 
getServiceNamepublic String getServiceName() Get service name for this ID.- Specified by:
- getServiceNamein interface- IServiceID
- Returns:
- String service name. May be null.
 
 - 
toStringpublic String toString() 
 - 
getLocationpublic URI getLocation() (non-Javadoc)- Specified by:
- getLocationin interface- IServiceID
- Returns:
- URI the location for this serviceID
- Since:
- 3.0
- See Also:
- IServiceID.getLocation()
 
 - 
getServiceInfopublic IServiceInfo getServiceInfo() - Returns:
- the serviceInfo
- Since:
- 3.0
 
 - 
setServiceInfopublic void setServiceInfo(IServiceInfo serviceInfo) - Parameters:
- serviceInfo- the serviceInfo to set
- Since:
- 3.0
 
 - 
hashCodepublic int hashCode() 
 
- 
 
-