Class Vocabulary

  • All Implemented Interfaces:

    public class Vocabulary
    extends java.lang.Object
    Immutable value object representing an openBIS vocabulary.
    See Also:
    Serialized Form
    • Constructor Detail

      • Vocabulary

        public Vocabulary​(Vocabulary.VocabularyInitializer initializer)
        Creates a new instance with the provided initializer
        java.lang.IllegalArgumentException - if some of the required information is not provided.
    • Method Detail

      • getId

        public java.lang.Long getId()
        Returns the vocabulary id.
      • getCode

        public java.lang.String getCode()
        Returns the vocabulary code.
      • getDescription

        public java.lang.String getDescription()
        Returns the vocabulary description.
      • isManagedInternally

        public boolean isManagedInternally()
        Returns true if the vocabulary is managed internally.
      • isInternalNamespace

        public boolean isInternalNamespace()
        Returns true if the vocabulary is in the internal openBIS namespace.
      • isChosenFromList

        public boolean isChosenFromList()
        Return true if the vocabulary was chosen from a list.
      • getUrlTemplate

        public java.lang.String getUrlTemplate()
        Returns a URL template (e.g a search query) that can display additional information for concrete vocabulary terms.
      • getTerms

        public java.util.List<VocabularyTerm> getTerms()
        Returns the vocabulary terms.
      • equals

        public boolean equals​(java.lang.Object obj)
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object