Project

General

Profile

1
package eu.dnetlib.parthenos.jrr;
2

    
3
import org.apache.commons.lang3.StringUtils;
4

    
5
/**
6
 * Created by Alessia Bardi on 06/10/2017.
7
 *
8
 * @author Alessia Bardi
9
 */
10
public class ParthenosRegistryResource {
11

    
12
	private String uuid;
13
	private String type;
14
	private String json;
15

    
16
	public String getUuid() {
17
		return uuid;
18
	}
19

    
20
	public ParthenosRegistryResource setUuid(final String uuid) {
21
		this.uuid = uuid;
22
		return this;
23
	}
24

    
25
	public String getType() {
26
		return type;
27
	}
28

    
29
	public String getRegistryType(){
30
		return StringUtils.remove(type, '-');
31
	}
32

    
33
	public ParthenosRegistryResource setType(final String type) {
34
		this.type = type;
35
		return this;
36
	}
37

    
38
	public String getJson() {
39
		return json;
40
	}
41

    
42
	public ParthenosRegistryResource setJson(final String json) {
43
		this.json = json;
44
		return this;
45
	}
46

    
47
	@Override
48
	public String toString() {
49
		return "ParthenosRegistryResource{" +
50
				"uuid='" + uuid + '\'' +
51
				", type='" + type + '\'' +
52
				", json='" + json + '\'' +
53
				'}';
54
	}
55
}
(4-4/4)