public class ServiceTypeID extends BaseID implements IServiceTypeID
Modifier and Type | Field and Description |
---|---|
protected static java.lang.String |
DELIM |
protected java.lang.String |
namingAuthority |
protected java.lang.String[] |
protocols |
protected java.lang.String[] |
scopes |
protected java.lang.String[] |
services |
protected java.lang.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,
java.lang.String aType)
Clients should not call this method directly.
|
protected |
ServiceTypeID(Namespace namespace,
java.lang.String[] services,
java.lang.String[] scopes,
java.lang.String[] protocols,
java.lang.String namingAuthority) |
Modifier and Type | Method and Description |
---|---|
protected void |
createType() |
boolean |
equals(java.lang.Object o) |
java.lang.String |
getInternal()
Get the internal name of the service type.
|
java.lang.String |
getName()
Get the unique name of this identity.
|
java.lang.String |
getNamingAuthority() |
java.lang.String[] |
getProtocols() |
java.lang.String[] |
getScopes() |
java.lang.String[] |
getServices() |
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) . |
java.lang.String |
toString() |
compareTo, getAdapter, getNamespace, namespaceToExternalForm, toExternalForm
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getNamespace, toExternalForm
protected static final java.lang.String DELIM
protected java.lang.String typeName
protected java.lang.String namingAuthority
protected java.lang.String[] protocols
protected java.lang.String[] scopes
protected java.lang.String[] services
protected ServiceTypeID(Namespace namespace)
protected ServiceTypeID(Namespace namespace, java.lang.String[] services, java.lang.String[] scopes, java.lang.String[] protocols, java.lang.String namingAuthority)
protected ServiceTypeID(Namespace ns, IServiceTypeID id)
public ServiceTypeID(Namespace namespace, java.lang.String aType)
Namespace
and/or ServiceIDFactory
instead.namespace
- namespace should not be null
aType
- type should not be null
protected void createType()
public java.lang.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 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 toString()
toString
in interface java.security.Principal
toString
in class java.lang.Object
public java.lang.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 java.lang.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 java.lang.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 java.lang.String[] getServices()
getServices
in interface IServiceTypeID
null
, but may
be empty array.public boolean equals(java.lang.Object o)
public int hashCode()
public java.lang.String getInternal()
IServiceTypeID
ID.getName()
, or they may return
a different, internal value appropriate to the provider.getInternal
in interface IServiceTypeID
null
.