|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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)
BaseIDNamespace.getCompareToForObject(BaseID, BaseID).
namespaceCompareTo in class BaseIDo - the other ID to compare to. Will not be null.
Comparable contract.protected boolean namespaceEquals(BaseID o)
BaseIDNamespace.testIDEquals(BaseID, BaseID).
namespaceEquals in class BaseIDo - 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()
BaseIDNamespace.getNameForID(BaseID).
namespaceGetName in class BaseIDnull. Value
returned should be unique within this Namespace.protected int namespaceHashCode()
BaseIDNamespace.getHashCodeForID(BaseID).
namespaceHashCode in class BaseIDpublic java.lang.String getServiceType()
null.public IServiceTypeID getServiceTypeID()
IServiceID
getServiceTypeID in interface IServiceIDnull.public java.lang.String getServiceName()
getServiceName in interface IServiceIDnull.public java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Objectpublic java.net.URI getLocation()
getLocation in interface IServiceIDIServiceID.getLocation()public IServiceInfo getServiceInfo()
public void setServiceInfo(IServiceInfo serviceInfo)
serviceInfo - the serviceInfo to setpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in interface IDhashCode in class BaseIDObject.hashCode()public boolean equals(java.lang.Object obj)
equals in interface java.security.Principalequals in interface IDequals in class BaseIDObject.equals(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||