Project

General

Profile

1
package eu.dnetlib.openaire.context;
2

    
3
import java.util.List;
4
import java.util.Map;
5

    
6
public class Category {
7

    
8
	private String id;
9

    
10
	private String label;
11

    
12
	private boolean claim;
13

    
14
	private Map<String, List<Param>> params;
15

    
16
	private List<Concept> concepts;
17

    
18
	public String getId() {
19
		return id;
20
	}
21

    
22
	public String getLabel() {
23
		return label;
24
	}
25

    
26
	public boolean isClaim() {
27
		return claim;
28
	}
29

    
30
	public boolean hasConcepts() {
31
		return getConcepts() != null && !getConcepts().isEmpty();
32
	}
33

    
34
	public Map<String, List<Param>> getParams() {
35
		return params;
36
	}
37

    
38
	public List<Concept> getConcepts() {
39
		return concepts;
40
	}
41

    
42
	public Category setId(final String id) {
43
		this.id = id;
44
		return this;
45
	}
46

    
47
	public Category setLabel(final String label) {
48
		this.label = label;
49
		return this;
50
	}
51

    
52
	public Category setClaim(final boolean claim) {
53
		this.claim = claim;
54
		return this;
55
	}
56

    
57
	public Category setParams(final Map<String, List<Param>> params) {
58
		this.params = params;
59
		return this;
60
	}
61

    
62
	public Category setConcepts(final List<Concept> concepts) {
63
		this.concepts = concepts;
64
		return this;
65
	}
66

    
67
}
(1-1/12)