public class ServiceTypeID extends BaseID implements IServiceTypeID
Modifier and Type | Field and Description |
---|---|
protected static String |
DELIM |
protected String |
namingAuthority |
protected String[] |
protocols |
protected String[] |
scopes |
protected String[] |
services |
protected String |
typeName |
DEFAULT_NA, DEFAULT_PROTO, DEFAULT_SCOPE
Modifier | Constructor and Description |
---|---|
protected |
ServiceTypeID(Namespace namespace) |
protected |
ServiceTypeID(Namespace ns,
IServiceTypeID id) |
|
ServiceTypeID(Namespace namespace,
String aType)
Clients should not call this method directly.
|
protected |
ServiceTypeID(Namespace namespace,
String[] services,
String[] scopes,
String[] protocols,
String namingAuthority) |
Modifier and Type | Method and Description |
---|---|
protected void |
createType() |
boolean |
equals(Object o) |
String |
getInternal()
Get the internal name of the service type.
|
String |
getName()
Get the unique name of this identity.
|
String |
getNamingAuthority() |
String[] |
getProtocols() |
String[] |
getScopes() |
String[] |
getServices() |
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) . |
String |
toString() |
compareTo, getAdapter, getNamespace, namespaceToExternalForm, toExternalForm
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getNamespace, toExternalForm
compareTo
protected static final String DELIM
protected String typeName
protected String namingAuthority
protected String[] protocols
protected String[] scopes
protected String[] services
protected ServiceTypeID(Namespace namespace)
protected ServiceTypeID(Namespace namespace, String[] services, String[] scopes, String[] protocols, String namingAuthority)
protected ServiceTypeID(Namespace ns, IServiceTypeID id)
public ServiceTypeID(Namespace namespace, String aType)
Namespace
and/or ServiceIDFactory
instead.namespace
- namespace should not be null
aType
- type should not be null
protected void createType()
public String getName()
ID
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 toString()
public String getNamingAuthority()
getNamingAuthority
in interface IServiceTypeID
null
.
If this instance has been created with the provider specific default, this will return
IServiceTypeID.DEFAULT_NA
instead.public String[] getProtocols()
getProtocols
in interface IServiceTypeID
null
, but may
be empty array.
If this instance has been created with the provider specific default, this will return
IServiceTypeID.DEFAULT_PROTO
instead.public String[] getScopes()
getScopes
in interface IServiceTypeID
null
, but may
be empty array.
If this instance has been created with the provider specific default, this will return
IServiceTypeID.DEFAULT_SCOPE
instead!public String[] getServices()
getServices
in interface IServiceTypeID
null
, but may
be empty array.public boolean equals(Object o)
public int hashCode()
public String getInternal()
IServiceTypeID
ID.getName()
, or they may return
a different, internal value appropriate to the provider.getInternal
in interface IServiceTypeID
null
.Copyright © 2004–2020 Eclipse Foundation. All rights reserved.