public class ServiceID extends BaseID implements IServiceID
Modifier and Type | Field and Description |
---|---|
protected URI |
location |
protected IServiceInfo |
serviceInfo |
protected IServiceTypeID |
type |
Modifier | Constructor and Description |
---|---|
protected |
ServiceID(Namespace namespace,
IServiceTypeID type,
URI anURI) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
protected String |
getFullyQualifiedName() |
URI |
getLocation()
(non-Javadoc)
|
IServiceInfo |
getServiceInfo() |
String |
getServiceName()
Get service name for this ID.
|
String |
getServiceType()
Get service type for this ID.
|
IServiceTypeID |
getServiceTypeID()
Get service type ID for this ID.
|
int |
hashCode() |
protected int |
namespaceCompareTo(BaseID o)
|
protected boolean |
namespaceEquals(BaseID o)
Called by
Namespace.testIDEquals(BaseID, BaseID) . |
protected String |
namespaceGetName()
Called by
Namespace.getNameForID(BaseID) . |
protected int |
namespaceHashCode()
Called by
Namespace.getHashCodeForID(BaseID) . |
void |
setServiceInfo(IServiceInfo serviceInfo) |
String |
toString() |
compareTo, getAdapter, getName, getNamespace, namespaceToExternalForm, toExternalForm
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName, getNamespace, toExternalForm
compareTo
protected IServiceInfo serviceInfo
protected IServiceTypeID type
protected URI location
protected ServiceID(Namespace namespace, IServiceTypeID type, URI anURI)
namespace
- namespace should not be null
type
- service type ID should not be null
anURI
- uri for service location should not be null
protected String getFullyQualifiedName()
protected int namespaceCompareTo(BaseID o)
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 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 String getServiceType()
null
.public IServiceTypeID getServiceTypeID()
IServiceID
getServiceTypeID
in interface IServiceID
null
.public String getServiceName()
getServiceName
in interface IServiceID
null
.public String toString()
public URI getLocation()
getLocation
in interface IServiceID
IServiceID.getLocation()
public IServiceInfo getServiceInfo()
public void setServiceInfo(IServiceInfo serviceInfo)
serviceInfo
- the serviceInfo to setpublic int hashCode()
Copyright © 2017 Eclipse Foundation. All rights reserved.