(no commit message)
[cdmlib.git] / cdmlib-remote / src / main / java / eu / etaxonomy / cdm / remote / dto / DescriptionElementSTO.java
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.common.Representation;
15 import eu.etaxonomy.cdm.model.description.CommonTaxonName;
16
17 /**
18 * DescriptionElementSTO is used to represent {@linkplain QuantitativeData}, {@linkplain CategoricalData}, {@linkplain TextData} or {@linkplain CommonTaxonName}
19 * @author m.doering
20 *
21 */
22 public class DescriptionElementSTO extends BaseSTO {
23
24 private LocalisedTermSTO type;
25 private Set<MediaSTO> media = new HashSet<MediaSTO>();
26 private String description;
27 private String language;
28
29
30 public LocalisedTermSTO getType() {
31 return type;
32 }
33 public void setType(LocalisedTermSTO type) {
34 this.type = type;
35 }
36 public Set<MediaSTO> getMedia() {
37 return media;
38 }
39 public void setMedia(Set<MediaSTO> media) {
40 this.media = media;
41 }
42 public void addMedia(MediaSTO media) {
43 this.media.add(media);
44 }
45 public String getDescription() {
46 return description;
47 }
48 public void setDescription(String description) {
49 this.description = description;
50 }
51 public String getLanguage() {
52 return language;
53 }
54 public void setLanguage(String language) {
55 this.language = language;
56 }
57
58
59
60
61 }