added method to list the known vocabulary names

This commit is contained in:
Claudio Atzori 2021-02-02 10:39:47 +01:00
parent 8eaa1fd4b4
commit 73d772a4b4
1 changed files with 4 additions and 0 deletions

View File

@ -67,6 +67,10 @@ public class VocabularyGroup implements Serializable {
private final Map<String, Vocabulary> vocs = new HashMap<>(); private final Map<String, Vocabulary> vocs = new HashMap<>();
public Set<String> vocabularyNames() {
return vocs.keySet();
}
public void addVocabulary(final String id, final String name) { public void addVocabulary(final String id, final String name) {
vocs.put(id.toLowerCase(), new Vocabulary(id, name)); vocs.put(id.toLowerCase(), new Vocabulary(id, name));
} }