Class BaseID

    • Field Detail

    • Constructor Detail

      • BaseID

        public BaseID()
      • BaseID

        protected BaseID​(Namespace namespace)
    • Method Detail

      • getName

        public String getName()
        Description copied from interface: ID
        Get the unique name of this identity.
        Specified by:
        getName in interface ID
        Specified by:
        getName in interface Principal
        String unique name for this identity. Will not be null, and must be a unique String within the Namespace returned by getNamespace()
      • getNamespace

        public Namespace getNamespace()
        Description copied from interface: ID
        Get the Namespace instance associated with this identity
        Specified by:
        getNamespace in interface ID
        Namespace the Namespace corresponding to this identity. Will not return null.
      • toExternalForm

        public String toExternalForm()
        Description copied from interface: ID
        Get this ID instance in String form. Will not return null.
        Specified by:
        toExternalForm in interface ID
        String that is external representation of this ID
      • namespaceEquals

        protected abstract boolean namespaceEquals​(BaseID o)
        o - the other ID to test against. May be null.
        true if this ID is equal to the given ID. false otherwise.
      • namespaceGetName

        protected abstract String namespaceGetName()
        String name for this ID. Must not be null. Value returned should be unique within this Namespace.
      • namespaceHashCode

        protected abstract int namespaceHashCode()
        int hashCode for this ID. Returned value must be unique within this process.
      • namespaceToExternalForm

        protected String namespaceToExternalForm()
        String that represents this ID. Default implementation is to return
         namespace.getScheme() + Namespace.SCHEME_SEPARATOR + namespaceGetName();
      • getAdapter

        public Object getAdapter​(Class clazz)
        Specified by:
        getAdapter in interface org.eclipse.core.runtime.IAdaptable