Blame view

src/main/java/eu/omp/irap/vespa/epntapclient/service/Service.java 2.89 KB
d11a0a1d   Nathanael Jourdane   Create package er...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/*
 * This file is a part of EpnTAPClient.
 * This program aims to provide EPN-TAP support for software clients, like CASSIS spectrum analyzer.
 * See draft specifications: https://voparis-confluence.obspm.fr/pages/viewpage.action?pageId=559861
 * Copyright (C) 2016 Institut de Recherche en Astrophysique et Planétologie.
 *
 * This program is free software: you can
 * redistribute it and/or modify it under the terms of the GNU General Public License as published
 * by the Free Software Foundation, either version 3 of the License, or (at your option) any later
 * version. This program is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 * PURPOSE. See the GNU General Public License for more details. You should have received a copy of
 * the GNU General Public License along with this program. If not, see
 * <http://www.gnu.org/licenses/>.
 */

package eu.omp.irap.vespa.epntapclient.service;

/**
 * @author N. Jourdane
 */
4bcbd19f   Nathanael Jourdane   Fix imports
22
public class Service {
d11a0a1d   Nathanael Jourdane   Create package er...
23
24
25

	private String ivoid;

cfbb6d07   Nathanael Jourdane   Implement most of...
26
	private String title;
d11a0a1d   Nathanael Jourdane   Create package er...
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

	private String shortName;

	private String type;

	private String description;

	private String creator;

	private String contentLevel;

	private String referenceURL;

	private String created;

	private String updated;


4bcbd19f   Nathanael Jourdane   Fix imports
45
	private Service() {
d11a0a1d   Nathanael Jourdane   Create package er...
46
47
	}

4bcbd19f   Nathanael Jourdane   Fix imports
48
	Service(String ivoid) {
d11a0a1d   Nathanael Jourdane   Create package er...
49
50
51
52
		this.ivoid = ivoid;
	}

	public boolean isValid() {
cfbb6d07   Nathanael Jourdane   Implement most of...
53
		boolean isValid = ivoid != null && title != null && shortName != null;
d11a0a1d   Nathanael Jourdane   Create package er...
54
55
56
57
58
		isValid = isValid && type != null && description != null && creator != null;
		isValid = isValid && contentLevel != null && referenceURL != null && created != null;
		return isValid && updated != null;
	}

cfbb6d07   Nathanael Jourdane   Implement most of...
59
60
	public String getTitle() {
		return title;
d11a0a1d   Nathanael Jourdane   Create package er...
61
62
	}

cfbb6d07   Nathanael Jourdane   Implement most of...
63
64
	public void setTitle(String resTitle) {
		title = resTitle;
d11a0a1d   Nathanael Jourdane   Create package er...
65
66
67
68
69
70
	}

	public String getShortName() {
		return shortName;
	}

d11a0a1d   Nathanael Jourdane   Create package er...
71
72
73
74
	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

cfbb6d07   Nathanael Jourdane   Implement most of...
75
76
77
78
	public String getType() {
		return type;
	}

d11a0a1d   Nathanael Jourdane   Create package er...
79
80
81
82
	public void setType(String type) {
		this.type = type;
	}

cfbb6d07   Nathanael Jourdane   Implement most of...
83
84
85
86
	public String getDescription() {
		return description;
	}

d11a0a1d   Nathanael Jourdane   Create package er...
87
88
89
90
	public void setDescription(String description) {
		this.description = description;
	}

cfbb6d07   Nathanael Jourdane   Implement most of...
91
92
93
94
	public String getCreator() {
		return creator;
	}

d11a0a1d   Nathanael Jourdane   Create package er...
95
96
97
98
	public void setCreator(String creator) {
		this.creator = creator;
	}

cfbb6d07   Nathanael Jourdane   Implement most of...
99
100
101
102
	public String getContentLevel() {
		return contentLevel;
	}

d11a0a1d   Nathanael Jourdane   Create package er...
103
104
105
106
	public void setContentLevel(String contentLevel) {
		this.contentLevel = contentLevel;
	}

cfbb6d07   Nathanael Jourdane   Implement most of...
107
108
109
110
	public String getReferenceURL() {
		return referenceURL;
	}

d11a0a1d   Nathanael Jourdane   Create package er...
111
112
113
114
	public void setReferenceURL(String referenceURL) {
		this.referenceURL = referenceURL;
	}

cfbb6d07   Nathanael Jourdane   Implement most of...
115
116
117
118
	public String getCreated() {
		return created;
	}

d11a0a1d   Nathanael Jourdane   Create package er...
119
120
121
122
	public void setCreated(String created) {
		this.created = created;
	}

cfbb6d07   Nathanael Jourdane   Implement most of...
123
124
125
126
	public String getUpdated() {
		return updated;
	}

d11a0a1d   Nathanael Jourdane   Create package er...
127
128
129
130
	public void setUpdated(String updated) {
		this.updated = updated;
	}

cfbb6d07   Nathanael Jourdane   Implement most of...
131
132
133
134
	public String getIvoid() {
		return ivoid;
	}

d11a0a1d   Nathanael Jourdane   Create package er...
135
}