2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.cdm
.remote
.dto
;
12 import java
.util
.Calendar
;
13 import java
.util
.HashSet
;
16 import eu
.etaxonomy
.cdm
.model
.common
.LanguageString
;
19 * @author a.kohlbecker
21 * @created 11.12.2007 12:13:42
24 public class MediaTO
extends BaseTO
implements IBaseSTO
{
27 * The title of the Media instance
32 * The description of the Media.
34 private String description
;
36 * A single medium such as a picture can have multiple representations.
37 * Common are multiple resolutions or file
38 * formats for images for example
41 private Set
<MediaRepresentationSTO
> representations
= new HashSet
<MediaRepresentationSTO
>();
43 * several rightTOs in the SAME language, not different languages for the SAME rights UUID
45 private Set
<RightsSTO
> rights
;
46 private IdentifiedString artist
;
49 public String
getTitle() {
52 public void setTitle(String title
) {
56 public void setTitle(LanguageString title
) {
58 this.title
= title
.getText();
62 public String
getDescription() {
65 public void setDescription(String description
) {
66 this.description
= description
;
69 public void setDescription(LanguageString description
) {
70 if(description
!= null){
71 this.description
= description
.getText();
75 public Set
<MediaRepresentationSTO
> getRepresentations() {
76 return representations
;
78 public void setRepresentations(Set
<MediaRepresentationSTO
> representations
) {
79 this.representations
= representations
;
82 public void addRepresenation(MediaRepresentationSTO representation
){
83 representations
.add(representation
);
86 public IdentifiedString
getArtist() {
89 public void setArtist(IdentifiedString artist
) {
92 public Set
<RightsSTO
> getRights() {
95 public void setRights(Set
<RightsSTO
> rights
) {