Package org.eclipse.ecf.core.identity
Interface ID
- 
- All Superinterfaces:
- Comparable,- org.eclipse.core.runtime.IAdaptable,- Principal,- Serializable
 - All Known Subinterfaces:
- IFileID,- IRemoteServiceID,- IResourceID,- IServiceID,- IServiceTypeID
 - All Known Implementing Classes:
- BaseID,- BnRDnsSdServiceTypeID,- DnsSdServiceID,- DnsSdServiceTypeID,- FileTransferID,- GUID,- JSLPServiceID,- JSLPServiceTypeID,- LongID,- R_OSGiID,- R_OSGiWSID,- RemoteServiceID,- RestID,- ServiceID,- ServiceTypeID,- StringID,- URIID,- UuID,- ZooDiscoveryServiceID,- ZooDiscoveryServiceTypeID,- ZooDiscoveryTargetID
 
 public interface ID extends Serializable, Comparable, Principal, org.eclipse.core.runtime.IAdaptable Contract for ECF identityECF IDs are immutable once constructed, and unique within the containing Namespace.ID instances are created via the Namespace.createInstance(...) method. This method is called by the IDFactory.createID(...) methods for the given Namespace. So, for example, to create an ID instance with the name "slewis": ID id = IDFactory.getDefault().createID(namespace, "slewis"); - See Also:
- Namespace
 
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanequals(Object obj)StringgetName()Get the unique name of this identity.NamespacegetNamespace()Get the Namespace instance associated with this identityinthashCode()StringtoExternalForm()Get this ID instance in String form.- 
Methods inherited from interface java.lang.ComparablecompareTo
 
- 
 
- 
- 
- 
Method Detail- 
equalsboolean equals(Object obj) 
 - 
hashCodeint hashCode() 
 - 
getNameString getName() Get the unique name of this identity.
 - 
getNamespaceNamespace getNamespace() Get the Namespace instance associated with this identity- Returns:
- Namespace the Namespace corresponding to this identity. Will not return null.
 
 - 
toExternalFormString toExternalForm() Get this ID instance in String form. Will not return null.- Returns:
- String that is external representation of this ID
 
 
- 
 
-