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, toExternalFormclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetNamespace, toExternalFormcompareToprotected 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 nullaType - type should not be nullprotected void createType()
public String getName()
IDprotected int namespaceCompareTo(BaseID o)
BaseIDnamespaceCompareTo 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 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 String toString()
public String getNamingAuthority()
getNamingAuthority in interface IServiceTypeIDnull.
If this instance has been created with the provider specific default, this will return
IServiceTypeID.DEFAULT_NA instead.public String[] getProtocols()
getProtocols in interface IServiceTypeIDnull, 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 IServiceTypeIDnull, 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 IServiceTypeIDnull, but may
be empty array.public boolean equals(Object o)
public int hashCode()
public String getInternal()
IServiceTypeIDID.getName(), or they may return
a different, internal value appropriate to the provider.getInternal in interface IServiceTypeIDnull.Copyright © 2004–2020 Eclipse Foundation. All rights reserved.