Class AbstractRef

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.String m_id  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractRef​(java.lang.String namespace, java.lang.String id, java.lang.String label)  
      protected AbstractRef​(Ref ref)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compareTo​(Ref o)  
      boolean equals​(java.lang.Object obj)  
      java.lang.String getId()
      An identifier unique to the provider that 'owns' this reference
      java.lang.String getLabel()
      A human-readable label for the reference.
      java.lang.String getNamespace()
      A string used to identify the provider this belongs to.
      int hashCode()  
      void setLabel​(java.lang.String label)  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • m_id

        protected java.lang.String m_id
    • Constructor Detail

      • AbstractRef

        protected AbstractRef​(java.lang.String namespace,
                              java.lang.String id,
                              java.lang.String label)
      • AbstractRef

        protected AbstractRef​(Ref ref)
    • Method Detail

      • getId

        public final java.lang.String getId()
        Description copied from interface: Ref
        An identifier unique to the provider that 'owns' this reference
        Specified by:
        getId in interface Ref
        Returns:
      • getNamespace

        public final java.lang.String getNamespace()
        Description copied from interface: Ref
        A string used to identify the provider this belongs to. May only container characters that make for a reasonable java identifier such as letters digits and underscore (no colons, periods, commas etc.)
        Specified by:
        getNamespace in interface Ref
      • getLabel

        public final java.lang.String getLabel()
        Description copied from interface: Ref
        A human-readable label for the reference.
        Specified by:
        getLabel in interface Ref
      • setLabel

        public final void setLabel​(java.lang.String label)
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(Ref o)
        Specified by:
        compareTo in interface java.lang.Comparable<Ref>