|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.ecf.core.identity.BaseID
org.eclipse.ecf.discovery.identity.ServiceTypeID
public class ServiceTypeID
ServiceTypeID base class.
| Field Summary | |
|---|---|
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
|
| Fields inherited from class org.eclipse.ecf.core.identity.BaseID |
|---|
namespace |
| Fields inherited from interface org.eclipse.ecf.discovery.identity.IServiceTypeID |
|---|
DEFAULT_NA, DEFAULT_PROTO, DEFAULT_SCOPE |
| Constructor Summary | |
|---|---|
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)
|
| Method Summary | |
|---|---|
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)
Called by Namespace.getCompareToForObject(BaseID, BaseID). |
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()
|
| Methods inherited from class org.eclipse.ecf.core.identity.BaseID |
|---|
compareTo, getAdapter, getNamespace, namespaceToExternalForm, toExternalForm |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.eclipse.ecf.core.identity.ID |
|---|
getNamespace, toExternalForm |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
|---|
getAdapter |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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)
throws IDCreateException
Namespace and/or ServiceIDFactory instead.
namespace - aType -
IDCreateException| Method Detail |
|---|
protected void createType()
public java.lang.String getName()
ID
getName in interface java.security.PrincipalgetName in interface IDgetName in class BaseIDprotected int namespaceCompareTo(BaseID o)
BaseIDNamespace.getCompareToForObject(BaseID, BaseID).
namespaceCompareTo 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 java.lang.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 java.lang.String toString()
toString in interface java.security.PrincipaltoString in class java.lang.Objectpublic java.lang.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 java.lang.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 java.lang.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 java.lang.String[] getServices()
getServices in interface IServiceTypeIDnull, but may
be empty array.public boolean equals(java.lang.Object o)
equals in interface java.security.Principalequals in interface IDequals in class BaseIDpublic int hashCode()
hashCode in interface java.security.PrincipalhashCode in interface IDhashCode in class BaseIDpublic java.lang.String getInternal()
IServiceTypeIDID.getName(), or they may return
a different, internal value appropriate to the provider.
getInternal in interface IServiceTypeIDnull.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||