public class ServiceID extends BaseID implements IServiceID
Modifier and Type | Field and Description |
---|---|
protected java.net.URI |
location |
protected IServiceInfo |
serviceInfo |
protected IServiceTypeID |
type |
Modifier | Constructor and Description |
---|---|
protected |
ServiceID(Namespace namespace,
IServiceTypeID type,
java.net.URI anURI) |
Modifier and Type | Method and Description |
---|---|
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)
|
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() |
compareTo, getAdapter, getName, getNamespace, namespaceToExternalForm, toExternalForm
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getName, getNamespace, toExternalForm
protected IServiceInfo serviceInfo
protected IServiceTypeID type
protected java.net.URI location
protected ServiceID(Namespace namespace, IServiceTypeID type, java.net.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 java.lang.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 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()