Class Thesaurus

    • Constructor Detail

      • Thesaurus

        public Thesaurus​(Node node,
                         String parentPath,
                         ThesaurusFactory factory)
        Creates an Thesaurus.
        Parameters:
        node - the node backing this AmetysObject
        parentPath - the parentPath in the Ametys hierarchy
        factory - the ThesaurusFactory which created the AmetysObject
    • Method Detail

      • setLabel

        public void setLabel​(String label)
        Set the label of this microthesaurus.
        Parameters:
        label - the label
      • getLabel

        public String getLabel()
        Get the label of the microthesaurus.
        Returns:
        The label
      • addMicrothesaurus

        public void addMicrothesaurus​(String microthesaurus)
        Add a microthesaurus to this thesaurus
        Parameters:
        microthesaurus - the microthesaurus to add
      • removeMicrothesaurus

        public void removeMicrothesaurus​(String microthesaurus)
        Remove a microthesaurus from this thesaurus
        Parameters:
        microthesaurus - the microthesaurus to add
      • setMicrothesaurus

        public void setMicrothesaurus​(List<String> microthesaurii)
        Set the microthesaurii of this thesaurus.
        Parameters:
        microthesaurii - the id of microthesaurii to add
      • getMicrothesaurii

        public List<StringgetMicrothesaurii()
        Get the microthesaurii array of the thesaurus.
        Returns:
        The array of microthesaurus