Project

General

Profile

Download (7.15 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2009 EDIT
3
* European Distributed Institute of Taxonomy
4
* http://www.e-taxonomy.eu
5
*
6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7
* See LICENSE.TXT at the top of this package for the full license terms.
8
*/
9
package eu.etaxonomy.cdm.io.dwca.out;
10

    
11
import java.io.PrintWriter;
12
import java.net.URI;
13
import java.util.ArrayList;
14
import java.util.List;
15
import java.util.UUID;
16

    
17
import org.apache.log4j.Logger;
18
import org.joda.time.DateTime;
19

    
20
import eu.etaxonomy.cdm.model.agent.InstitutionalMembership;
21
import eu.etaxonomy.cdm.model.common.Language;
22
import eu.etaxonomy.cdm.model.common.TimePeriod;
23
import eu.etaxonomy.cdm.model.location.Point;
24
import eu.etaxonomy.cdm.model.media.Rights;
25
import eu.etaxonomy.cdm.model.reference.Reference;
26

    
27
/**
28
 * @author a.mueller
29
 * @date 20.04.2011
30
 *
31
 */
32
public class DwcaEmlRecord extends DwcaRecordBase {
33
	@SuppressWarnings("unused")
34
	private static final Logger logger = Logger.getLogger(DwcaEmlRecord.class);
35

    
36
//	BASIC
37
	private String identifier;
38
	private String title;
39
	private DateTime publicationDate;
40
	private String expectedCitation;
41
	private String abstractInfo;
42
	private String additionalInformation;
43
	private Language resourceLanguage;
44
	private URI resourceUrl;
45
	private Rights creativeCommonsLicensing;
46
	private Language metaDataLanguage;
47
	private URI resourceLogoUri;
48

    
49
//	Research Project
50
	private String projectTitle;
51
	private String projectLead;
52
	private String projectDescription;
53

    
54
//	People
55
	private InstitutionalMembership resourceCreator;
56
	private InstitutionalMembership metaDataAuthor;
57
	private InstitutionalMembership contact;
58
	private List<InstitutionalMembership> authors = new ArrayList<InstitutionalMembership>();
59

    
60
//	Keywords / Coverage
61
	private String regionalScope;
62
	private List<String> keywords = new ArrayList<String>();
63
	private String keywordThesaurus; //maybe a URI
64
	private TimePeriod date;
65
	private List<String> taxonomicKeywords = new ArrayList<String>();
66

    
67
	private Point upperLeftCorner;
68
	private Point lowerRightCorner;
69

    
70
	private List<Reference> references = new ArrayList<Reference>();
71

    
72

    
73
	@Override
74
	protected void registerKnownFields() {
75
		//not needed
76
	}
77

    
78
	public DwcaEmlRecord() {
79
		super(new DwcaMetaDataRecord(false, null, null), null);
80
	}
81

    
82
	@Override
83
    public void write(PrintWriter writer) {
84

    
85
	}
86

    
87
	public String getIdentifier() {
88
		if (identifier == null){
89
			identifier = UUID.randomUUID().toString();
90
		}
91
		return identifier;
92
	}
93

    
94
	public void setIdentifier(String identifier) {
95
		this.identifier = identifier;
96
	}
97

    
98
	public String getTitle() {
99
		return title;
100
	}
101

    
102
	public void setTitle(String title) {
103
		this.title = title;
104
	}
105

    
106
	public DateTime getPublicationDate() {
107
		return publicationDate;
108
	}
109

    
110
	public void setPublicationDate(DateTime publicationDate) {
111
		this.publicationDate = publicationDate;
112
	}
113

    
114
	public String getExpectedCitation() {
115
		return expectedCitation;
116
	}
117

    
118
	public void setExpectedCitation(String expectedCitation) {
119
		this.expectedCitation = expectedCitation;
120
	}
121

    
122
	public String getAbstractInfo() {
123
		return abstractInfo;
124
	}
125

    
126
	public void setAbstractInfo(String abstractInfo) {
127
		this.abstractInfo = abstractInfo;
128
	}
129

    
130
	public String getAdditionalInformation() {
131
		return additionalInformation;
132
	}
133

    
134
	public void setAdditionalInformation(String additionalInformation) {
135
		this.additionalInformation = additionalInformation;
136
	}
137

    
138
	public Language getResourceLanguage() {
139
		return resourceLanguage;
140
	}
141

    
142
	public void setResourceLanguage(Language resourceLanguage) {
143
		this.resourceLanguage = resourceLanguage;
144
	}
145

    
146
	public URI getResourceUrl() {
147
		return resourceUrl;
148
	}
149

    
150
	public void setResourceUrl(URI resourceUrl) {
151
		this.resourceUrl = resourceUrl;
152
	}
153

    
154
	public Rights getCreativeCommonsLicensing() {
155
		return creativeCommonsLicensing;
156
	}
157

    
158
	public void setCreativeCommonsLicensing(Rights creativeCommonsLicensing) {
159
		this.creativeCommonsLicensing = creativeCommonsLicensing;
160
	}
161

    
162
	public Language getMetaDataLanguage() {
163
		return metaDataLanguage;
164
	}
165

    
166
	public void setMetaDataLanguage(Language metaDataLanguage) {
167
		this.metaDataLanguage = metaDataLanguage;
168
	}
169

    
170
	public URI getResourceLogoUri() {
171
		return resourceLogoUri;
172
	}
173

    
174
	public void setResourceLogoUri(URI resourceLogoUri) {
175
		this.resourceLogoUri = resourceLogoUri;
176
	}
177

    
178
	public String getProjectTitle() {
179
		return projectTitle;
180
	}
181

    
182
	public void setProjectTitle(String projectTitle) {
183
		this.projectTitle = projectTitle;
184
	}
185

    
186
	public String getProjectLead() {
187
		return projectLead;
188
	}
189

    
190
	public void setProjectLead(String projectLead) {
191
		this.projectLead = projectLead;
192
	}
193

    
194
	public String getProjectDescription() {
195
		return projectDescription;
196
	}
197

    
198
	public void setProjectDescription(String projectDescription) {
199
		this.projectDescription = projectDescription;
200
	}
201

    
202
	public InstitutionalMembership getResourceCreator() {
203
		return resourceCreator;
204
	}
205

    
206
	public void setResourceCreator(InstitutionalMembership resourceCreator) {
207
		this.resourceCreator = resourceCreator;
208
	}
209

    
210
	public InstitutionalMembership getMetaDataAuthor() {
211
		return metaDataAuthor;
212
	}
213

    
214
	public void setMetaDataAuthor(InstitutionalMembership metaDataAuthor) {
215
		this.metaDataAuthor = metaDataAuthor;
216
	}
217

    
218

    
219

    
220
	public InstitutionalMembership getContact() {
221
		return contact;
222
	}
223

    
224
	public void setContact(InstitutionalMembership contact) {
225
		this.contact = contact;
226
	}
227

    
228

    
229
	public List<InstitutionalMembership> getAuthors() {
230
		return authors != null ? authors : new ArrayList<InstitutionalMembership>();
231
	}
232

    
233
	public void setAuthors(List<InstitutionalMembership> authors) {
234
		this.authors = authors;
235
	}
236

    
237
	public String getRegionalScope() {
238
		return regionalScope;
239
	}
240

    
241
	public void setRegionalScope(String regionalScope) {
242
		this.regionalScope = regionalScope;
243
	}
244

    
245
	public List<String> getKeywords() {
246
		return keywords != null ? keywords : new ArrayList<String>();
247
	}
248

    
249
	public void setKeywords(List<String> keywords) {
250
		this.keywords = keywords;
251
	}
252

    
253
	public String getKeywordThesaurus() {
254
		return keywordThesaurus;
255
	}
256

    
257
	public void setKeywordThesaurus(String keywordThesaurus) {
258
		this.keywordThesaurus = keywordThesaurus;
259
	}
260

    
261
	public TimePeriod getDate() {
262
		return date;
263
	}
264

    
265
	public void setDate(TimePeriod date) {
266
		this.date = date;
267
	}
268

    
269
	public List<String> getTaxonomicKeywords() {
270
		return taxonomicKeywords != null ? taxonomicKeywords : new ArrayList<String>();
271
	}
272

    
273
	public void setTaxonomicKeywords(List<String> taxonomicKeywords) {
274
		this.taxonomicKeywords = taxonomicKeywords;
275
	}
276

    
277
	public Point getUpperLeftCorner() {
278
		return upperLeftCorner;
279
	}
280

    
281
	public void setUpperLeftCorner(Point upperLeftCorner) {
282
		this.upperLeftCorner = upperLeftCorner;
283
	}
284

    
285
	public Point getLowerRightCorner() {
286
		return lowerRightCorner;
287
	}
288

    
289
	public void setLowerRightCorner(Point lowerRightCorner) {
290
		this.lowerRightCorner = lowerRightCorner;
291
	}
292

    
293
	public List<Reference> getReferences() {
294
		return references != null ? references : new ArrayList<Reference>();
295
	}
296

    
297
	public void setReferences(List<Reference> references) {
298
		this.references = references;
299
	}
300

    
301

    
302
}
(6-6/29)