Project

General

Profile

1
package eu.dnetlib.data.collective.transformation;
2

    
3
import java.util.Map;
4

    
5
import org.svenson.JSONProperty;
6
import org.svenson.JSONTypeHint;
7

    
8
import eu.dnetlib.data.collective.transformation.engine.functions.Vocabulary;
9

    
10
public class VocabularyMap {
11

    
12
	private Map<String, Vocabulary> map;
13
	
14
	/**
15
	 * Returns true if the vocabulary map contains the key argument. Method implemented for backward compatibility.
16
	 * @param aKey vocabulary name as a key
17
	 * @return true if key exist else false
18
	 */
19
	public boolean containsKey(String aKey){
20
		return map.containsKey(aKey);
21
	}
22

    
23
	/**
24
	 * @return the map
25
	 */
26
	@JSONProperty(ignoreIfNull = true)
27
	public Map<String, Vocabulary> getMap() {
28
		return map;
29
	}
30

    
31
	/**
32
	 * @param map the map to set
33
	 */
34
	@JSONTypeHint(Vocabulary.class)
35
	public void setMap(Map<String, Vocabulary> map) {
36
		this.map = map;
37
	}
38
}
(3-3/5)