|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.core.identity.BaseID org.eclipse.ecf.discovery.identity.ServiceID
public class ServiceID
Service identity type. ServiceIDs are IDs that uniquely identify a remote service. Subclasses may be created as appropriate.
Field Summary | |
---|---|
protected java.net.URI |
location
|
protected IServiceInfo |
serviceInfo
|
protected IServiceTypeID |
type
|
Fields inherited from class org.eclipse.ecf.core.identity.BaseID |
---|
namespace |
Constructor Summary | |
---|---|
protected |
ServiceID(Namespace namespace,
IServiceTypeID type,
java.net.URI anURI)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
protected java.lang.String |
getFullyQualifiedName()
|
java.net.URI |
getLocation()
(non-Javadoc) |
IServiceInfo |
getServiceInfo()
|
java.lang.String |
getServiceName()
Get service name for this ID. |
java.lang.String |
getServiceType()
Get service type for this ID. |
IServiceTypeID |
getServiceTypeID()
Get service type ID for this ID. |
int |
hashCode()
|
protected int |
namespaceCompareTo(BaseID o)
Called by Namespace.getCompareToForObject(BaseID, BaseID) . |
protected boolean |
namespaceEquals(BaseID o)
Called by Namespace.testIDEquals(BaseID, BaseID) . |
protected java.lang.String |
namespaceGetName()
Called by Namespace.getNameForID(BaseID) . |
protected int |
namespaceHashCode()
Called by Namespace.getHashCodeForID(BaseID) . |
void |
setServiceInfo(IServiceInfo serviceInfo)
|
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.ecf.core.identity.BaseID |
---|
compareTo, getAdapter, getName, getNamespace, namespaceToExternalForm, toExternalForm |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.eclipse.ecf.core.identity.ID |
---|
getName, getNamespace, toExternalForm |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
---|
getAdapter |
Field Detail |
---|
protected IServiceInfo serviceInfo
protected IServiceTypeID type
protected java.net.URI location
Constructor Detail |
---|
protected ServiceID(Namespace namespace, IServiceTypeID type, java.net.URI anURI)
Method Detail |
---|
protected java.lang.String getFullyQualifiedName()
protected int namespaceCompareTo(BaseID o)
BaseID
Namespace.getCompareToForObject(BaseID, BaseID)
.
namespaceCompareTo
in class BaseID
o
- the other ID to compare to. Will not be null
.
Comparable
contract.protected boolean namespaceEquals(BaseID o)
BaseID
Namespace.testIDEquals(BaseID, BaseID)
.
namespaceEquals
in class BaseID
o
- the other ID to test against. May be null
.
true
if this ID is equal to the given ID.
false
otherwise.protected java.lang.String namespaceGetName()
BaseID
Namespace.getNameForID(BaseID)
.
namespaceGetName
in class BaseID
null
. Value
returned should be unique within this Namespace.protected int namespaceHashCode()
BaseID
Namespace.getHashCodeForID(BaseID)
.
namespaceHashCode
in class BaseID
public java.lang.String getServiceType()
null
.public IServiceTypeID getServiceTypeID()
IServiceID
getServiceTypeID
in interface IServiceID
null
.public java.lang.String getServiceName()
getServiceName
in interface IServiceID
null
.public java.lang.String toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public java.net.URI getLocation()
getLocation
in interface IServiceID
IServiceID.getLocation()
public IServiceInfo getServiceInfo()
public void setServiceInfo(IServiceInfo serviceInfo)
serviceInfo
- the serviceInfo to setpublic int hashCode()
hashCode
in interface java.security.Principal
hashCode
in interface ID
hashCode
in class BaseID
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in interface java.security.Principal
equals
in interface ID
equals
in class BaseID
Object.equals(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |