1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.model.common.init;
|
11
|
|
12
|
import java.util.Map;
|
13
|
import java.util.UUID;
|
14
|
|
15
|
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
|
16
|
import eu.etaxonomy.cdm.model.common.TermVocabulary;
|
17
|
import eu.etaxonomy.cdm.model.common.VocabularyEnum;
|
18
|
|
19
|
public interface ITermLoader {
|
20
|
|
21
|
/**
|
22
|
* Loads the terms for the DefinedTermBase subclass defined by vocType.
|
23
|
* The terms will be loadded into the terms map and
|
24
|
* @param <T>
|
25
|
* @param vocType
|
26
|
* @param terms
|
27
|
* @return
|
28
|
*/
|
29
|
public <T extends DefinedTermBase> TermVocabulary<T> loadTerms(VocabularyEnum vocType, Map<UUID,DefinedTermBase> terms);
|
30
|
|
31
|
/**
|
32
|
* Unload all static terms. After calling this method all static methods returning terms in DefinedTermBase subclasses
|
33
|
* will return null.
|
34
|
*/
|
35
|
public void unloadAllTerms();
|
36
|
|
37
|
|
38
|
}
|