Project

General

Profile

1
package eu.dnetlib.vocabularies.publisher.model;
2

    
3
import java.io.Serializable;
4
import java.util.List;
5

    
6
import com.google.common.collect.Lists;
7

    
8
public class Vocabulary implements Serializable {
9

    
10
	private static final long serialVersionUID = -3859714205200699845L;
11
	private String id;
12
	private String name;
13
	private String description;
14
	private String code;
15

    
16
	private List<VocabularyTerm> terms;
17

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

    
22
	public void setId(final String id) {
23
		this.id = id;
24
	}
25

    
26
	public String getName() {
27
		return name;
28
	}
29

    
30
	public void setName(final String name) {
31
		this.name = name;
32
	}
33

    
34
	public String getDescription() {
35
		return description;
36
	}
37

    
38
	public void setDescription(final String description) {
39
		this.description = description;
40
	}
41

    
42
	public String getCode() {
43
		return code;
44
	}
45

    
46
	public void setCode(final String code) {
47
		this.code = code;
48
	}
49

    
50
	public List<VocabularyTerm> getTerms() {
51
		return terms;
52
	}
53

    
54
	public void setTerms(final List<VocabularyTerm> terms) {
55
		this.terms = terms;
56
	}
57

    
58
	public Vocabulary() {
59
		super();
60
	}
61

    
62
	public Vocabulary(final String id, final String name, final String description, final String code, final List<VocabularyTerm> terms) {
63
		super();
64
		this.id = id;
65
		this.name = name;
66
		this.description = description;
67
		this.code = code;
68
		this.terms = terms;
69
	}
70

    
71
	public Vocabulary(final String id, final String name, final String description, final String code) {
72
		super();
73
		this.id = id;
74
		this.name = name;
75
		this.description = description;
76
		this.code = code;
77
		this.terms = Lists.newArrayList();
78
	}
79

    
80
	@Override
81
	public String toString() {
82
		return "Vocabulary [id=" + id + ", name=" + name + ", description=" + description + ", code=" + code + ", terms=" + terms + "]";
83
	}
84

    
85
}
(2-2/3)