1
|
/**
|
2
|
* Copyright (C) 2007 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.remote.dto;
|
10
|
|
11
|
import java.util.HashSet;
|
12
|
import java.util.Set;
|
13
|
|
14
|
import eu.etaxonomy.cdm.model.description.CategoricalData;
|
15
|
import eu.etaxonomy.cdm.model.description.CommonTaxonName;
|
16
|
import eu.etaxonomy.cdm.model.description.QuantitativeData;
|
17
|
import eu.etaxonomy.cdm.model.description.TextData;
|
18
|
|
19
|
/**
|
20
|
* DescriptionElementSTO is used to represent {@linkplain QuantitativeData}, {@linkplain CategoricalData}, {@linkplain TextData} or {@linkplain CommonTaxonName}
|
21
|
* @author m.doering
|
22
|
*
|
23
|
*/
|
24
|
public class DescriptionElementSTO extends BaseSTO {
|
25
|
|
26
|
private Set<MediaSTO> media = new HashSet<MediaSTO>();
|
27
|
private String description;
|
28
|
private String language;
|
29
|
private ReferenceSTO reference;
|
30
|
private LocalisedTermSTO areaTerm;
|
31
|
private LocalisedTermSTO mediaType;
|
32
|
private String classType;
|
33
|
|
34
|
public Set<MediaSTO> getMedia() {
|
35
|
return media;
|
36
|
}
|
37
|
public void setMedia(Set<MediaSTO> media) {
|
38
|
this.media = media;
|
39
|
}
|
40
|
public void addMedia(MediaSTO media) {
|
41
|
this.media.add(media);
|
42
|
}
|
43
|
public String getDescription() {
|
44
|
return description;
|
45
|
}
|
46
|
public void setDescription(String description) {
|
47
|
this.description = description;
|
48
|
}
|
49
|
public String getLanguage() {
|
50
|
return language;
|
51
|
}
|
52
|
public void setLanguage(String language) {
|
53
|
this.language = language;
|
54
|
}
|
55
|
public ReferenceSTO getReference() {
|
56
|
return reference;
|
57
|
}
|
58
|
public void setReference(ReferenceSTO reference) {
|
59
|
this.reference = reference;
|
60
|
}
|
61
|
public void setArea(LocalisedTermSTO area) {
|
62
|
this.areaTerm = area;
|
63
|
}
|
64
|
public LocalisedTermSTO getArea() {
|
65
|
return areaTerm;
|
66
|
}
|
67
|
public void setMediaType(LocalisedTermSTO mediaType) {
|
68
|
this.mediaType = mediaType;
|
69
|
}
|
70
|
public LocalisedTermSTO getMediaType() {
|
71
|
return mediaType;
|
72
|
}
|
73
|
public String getClassType() {
|
74
|
return classType;
|
75
|
}
|
76
|
public void setClassType(String classType) {
|
77
|
this.classType = classType;
|
78
|
}
|
79
|
}
|