1 |
0d656d7a
|
Andreas Müller
|
/**
|
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 |
f6765014
|
ben.clark
|
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 |
892efc69
|
Andreas Kohlbecker
|
import eu.etaxonomy.cdm.model.common.VocabularyEnum;
|
18 |
f6765014
|
ben.clark
|
|
19 |
|
|
public interface ITermLoader {
|
20 |
|
|
|
21 |
8cc82a87
|
Andreas Müller
|
/**
|
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 |
892efc69
|
Andreas Kohlbecker
|
public <T extends DefinedTermBase> TermVocabulary<T> loadTerms(VocabularyEnum vocType, Map<UUID,DefinedTermBase> terms);
|
30 |
f6765014
|
ben.clark
|
|
31 |
8cc82a87
|
Andreas Müller
|
/**
|
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 |
f6765014
|
ben.clark
|
}
|