2 * Copyright (C) 2008 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
7 package eu
.etaxonomy
.cdm
.io
.sdd
;
9 import java
.util
.ArrayList
;
10 import java
.util
.Collection
;
11 import java
.util
.HashSet
;
12 import java
.util
.List
;
15 import javax
.xml
.bind
.annotation
.XmlAccessType
;
16 import javax
.xml
.bind
.annotation
.XmlAccessorType
;
17 import javax
.xml
.bind
.annotation
.XmlElement
;
18 import javax
.xml
.bind
.annotation
.XmlElementWrapper
;
19 import javax
.xml
.bind
.annotation
.XmlElements
;
20 import javax
.xml
.bind
.annotation
.XmlRootElement
;
21 import javax
.xml
.bind
.annotation
.XmlType
;
23 import eu
.etaxonomy
.cdm
.model
.agent
.Address
;
24 import eu
.etaxonomy
.cdm
.model
.agent
.Agent
;
25 import eu
.etaxonomy
.cdm
.model
.agent
.Contact
;
26 import eu
.etaxonomy
.cdm
.model
.agent
.Institution
;
27 import eu
.etaxonomy
.cdm
.model
.agent
.InstitutionType
;
28 import eu
.etaxonomy
.cdm
.model
.agent
.InstitutionalMembership
;
29 import eu
.etaxonomy
.cdm
.model
.agent
.Person
;
30 import eu
.etaxonomy
.cdm
.model
.agent
.Team
;
31 import eu
.etaxonomy
.cdm
.model
.common
.AnnotationType
;
32 import eu
.etaxonomy
.cdm
.model
.common
.DefinedTermBase
;
33 import eu
.etaxonomy
.cdm
.model
.common
.ExtensionType
;
34 import eu
.etaxonomy
.cdm
.model
.common
.Keyword
;
35 import eu
.etaxonomy
.cdm
.model
.common
.Language
;
36 import eu
.etaxonomy
.cdm
.model
.common
.LanguageString
;
37 import eu
.etaxonomy
.cdm
.model
.common
.LanguageStringBase
;
38 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
39 import eu
.etaxonomy
.cdm
.model
.common
.MultilanguageText
;
40 import eu
.etaxonomy
.cdm
.model
.common
.ReferencedEntityBase
;
41 import eu
.etaxonomy
.cdm
.model
.common
.RelationshipBase
;
42 import eu
.etaxonomy
.cdm
.model
.common
.Representation
;
43 import eu
.etaxonomy
.cdm
.model
.common
.TermBase
;
44 import eu
.etaxonomy
.cdm
.model
.common
.TermVocabulary
;
45 import eu
.etaxonomy
.cdm
.model
.common
.VersionableEntity
;
46 import eu
.etaxonomy
.cdm
.model
.description
.AbsenceTerm
;
47 import eu
.etaxonomy
.cdm
.model
.description
.Feature
;
48 import eu
.etaxonomy
.cdm
.model
.description
.FeatureNode
;
49 import eu
.etaxonomy
.cdm
.model
.description
.FeatureTree
;
50 import eu
.etaxonomy
.cdm
.model
.description
.MeasurementUnit
;
51 import eu
.etaxonomy
.cdm
.model
.description
.Modifier
;
52 import eu
.etaxonomy
.cdm
.model
.description
.PresenceTerm
;
53 import eu
.etaxonomy
.cdm
.model
.description
.Scope
;
54 import eu
.etaxonomy
.cdm
.model
.description
.Sex
;
55 import eu
.etaxonomy
.cdm
.model
.description
.Stage
;
56 import eu
.etaxonomy
.cdm
.model
.description
.State
;
57 import eu
.etaxonomy
.cdm
.model
.description
.StatisticalMeasure
;
58 import eu
.etaxonomy
.cdm
.model
.description
.TextFormat
;
59 import eu
.etaxonomy
.cdm
.model
.location
.Continent
;
60 import eu
.etaxonomy
.cdm
.model
.location
.NamedArea
;
61 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaLevel
;
62 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaType
;
63 import eu
.etaxonomy
.cdm
.model
.location
.ReferenceSystem
;
64 import eu
.etaxonomy
.cdm
.model
.location
.TdwgArea
;
65 import eu
.etaxonomy
.cdm
.model
.location
.WaterbodyOrCountry
;
66 import eu
.etaxonomy
.cdm
.model
.media
.Media
;
67 import eu
.etaxonomy
.cdm
.model
.media
.MediaRepresentation
;
68 import eu
.etaxonomy
.cdm
.model
.media
.MediaRepresentationPart
;
69 import eu
.etaxonomy
.cdm
.model
.media
.RightsTerm
;
70 import eu
.etaxonomy
.cdm
.model
.molecular
.DnaSample
;
71 import eu
.etaxonomy
.cdm
.model
.name
.BacterialName
;
72 import eu
.etaxonomy
.cdm
.model
.name
.BotanicalName
;
73 import eu
.etaxonomy
.cdm
.model
.name
.CultivarPlantName
;
74 import eu
.etaxonomy
.cdm
.model
.name
.HomotypicalGroup
;
75 import eu
.etaxonomy
.cdm
.model
.name
.HybridRelationship
;
76 import eu
.etaxonomy
.cdm
.model
.name
.HybridRelationshipType
;
77 import eu
.etaxonomy
.cdm
.model
.name
.NameRelationship
;
78 import eu
.etaxonomy
.cdm
.model
.name
.NameRelationshipType
;
79 import eu
.etaxonomy
.cdm
.model
.name
.NameTypeDesignation
;
80 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalCode
;
81 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalStatus
;
82 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalStatusType
;
83 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
84 import eu
.etaxonomy
.cdm
.model
.name
.SpecimenTypeDesignation
;
85 import eu
.etaxonomy
.cdm
.model
.name
.TaxonNameBase
;
86 import eu
.etaxonomy
.cdm
.model
.name
.TypeDesignationStatus
;
87 import eu
.etaxonomy
.cdm
.model
.name
.ViralName
;
88 import eu
.etaxonomy
.cdm
.model
.name
.ZoologicalName
;
89 import eu
.etaxonomy
.cdm
.model
.occurrence
.DerivationEventType
;
90 import eu
.etaxonomy
.cdm
.model
.occurrence
.DeterminationModifier
;
91 import eu
.etaxonomy
.cdm
.model
.occurrence
.FieldObservation
;
92 import eu
.etaxonomy
.cdm
.model
.occurrence
.Fossil
;
93 import eu
.etaxonomy
.cdm
.model
.occurrence
.LivingBeing
;
94 import eu
.etaxonomy
.cdm
.model
.occurrence
.Observation
;
95 import eu
.etaxonomy
.cdm
.model
.occurrence
.PreservationMethod
;
96 import eu
.etaxonomy
.cdm
.model
.occurrence
.Specimen
;
97 import eu
.etaxonomy
.cdm
.model
.occurrence
.SpecimenOrObservationBase
;
98 import eu
.etaxonomy
.cdm
.model
.reference
.Article
;
99 import eu
.etaxonomy
.cdm
.model
.reference
.BibtexEntryType
;
100 import eu
.etaxonomy
.cdm
.model
.reference
.Book
;
101 import eu
.etaxonomy
.cdm
.model
.reference
.BookSection
;
102 import eu
.etaxonomy
.cdm
.model
.reference
.CdDvd
;
103 import eu
.etaxonomy
.cdm
.model
.reference
.Database
;
104 import eu
.etaxonomy
.cdm
.model
.reference
.Generic
;
105 import eu
.etaxonomy
.cdm
.model
.reference
.InProceedings
;
106 import eu
.etaxonomy
.cdm
.model
.reference
.Journal
;
107 import eu
.etaxonomy
.cdm
.model
.reference
.Map
;
108 import eu
.etaxonomy
.cdm
.model
.reference
.Patent
;
109 import eu
.etaxonomy
.cdm
.model
.reference
.PersonalCommunication
;
110 import eu
.etaxonomy
.cdm
.model
.reference
.PrintSeries
;
111 import eu
.etaxonomy
.cdm
.model
.reference
.Proceedings
;
112 import eu
.etaxonomy
.cdm
.model
.reference
.ReferenceBase
;
113 import eu
.etaxonomy
.cdm
.model
.reference
.Report
;
114 import eu
.etaxonomy
.cdm
.model
.reference
.Thesis
;
115 import eu
.etaxonomy
.cdm
.model
.reference
.WebPage
;
116 import eu
.etaxonomy
.cdm
.model
.taxon
.Synonym
;
117 import eu
.etaxonomy
.cdm
.model
.taxon
.SynonymRelationship
;
118 import eu
.etaxonomy
.cdm
.model
.taxon
.SynonymRelationshipType
;
119 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
120 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonBase
;
121 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonRelationship
;
122 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonRelationshipType
;
125 * @author a.babadshanjan
127 @XmlAccessorType(XmlAccessType
.FIELD
)
128 @XmlType(name
= "", propOrder
= {
135 "referencedEntities",
145 @XmlRootElement(name
= "DataSet", namespace
= "http://etaxonomy.eu/cdm/model/1.0")
146 public class SDDDataSet
{
148 // Some fields are of type List and some are of type Set.
149 // This is mainly because
150 // the service classes return lists, i.e.
151 // TaxonServiceImpl.getRootTaxa() returns List<Taxon>
152 // and the Taxon methods return sets, i.e.
153 // Taxon.getTaxonomicChildren() returns Set<Taxon>.
155 @XmlElementWrapper(name
= "Agents")
157 @XmlElement(name
= "Team", namespace
= "http://etaxonomy.eu/cdm/model/agent/1.0", type
= Team
.class),
158 @XmlElement(name
= "Institution", namespace
= "http://etaxonomy.eu/cdm/model/agent/1.0", type
= Institution
.class),
159 @XmlElement(name
= "Person", namespace
= "http://etaxonomy.eu/cdm/model/agent/1.0", type
= Person
.class)
161 protected List
<?
extends Agent
> agents
;
163 @XmlElementWrapper(name
= "AgentData")
165 @XmlElement(name
= "Address", namespace
= "http://etaxonomy.eu/cdm/model/agent/1.0", type
= Address
.class),
166 @XmlElement(name
= "Contact", namespace
= "http://etaxonomy.eu/cdm/model/agent/1.0", type
= Contact
.class),
167 @XmlElement(name
= "InstitutionalMembership", namespace
= "http://etaxonomy.eu/cdm/model/agent/1.0", type
= InstitutionalMembership
.class)
169 protected List
<VersionableEntity
> agentData
;
171 @XmlElementWrapper(name
= "FeatureData")
173 @XmlElement(name
= "FeatureNode", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= FeatureNode
.class),
174 @XmlElement(name
= "FeatureTree", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= FeatureTree
.class)
176 // protected List<VersionableEntity> featureData;
177 protected List
<VersionableEntity
> featureData
;
179 @XmlElementWrapper(name
= "LanguageData")
181 @XmlElement(name
= "Representation", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= Representation
.class),
182 @XmlElement(name
= "LanguageString", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= LanguageString
.class)
184 protected List
<LanguageStringBase
> languageData
;
186 @XmlElementWrapper(name
= "Terms")
188 @XmlElement(name
= "AbsenceTerm", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= AbsenceTerm
.class),
189 @XmlElement(name
= "AnnotationType", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= AnnotationType
.class),
190 @XmlElement(name
= "BibtexEntryType", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= BibtexEntryType
.class),
191 @XmlElement(name
= "Continent", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= Continent
.class),
192 @XmlElement(name
= "DerivationEventType", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= DerivationEventType
.class),
193 @XmlElement(name
= "DeterminationModifier", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= DeterminationModifier
.class),
194 @XmlElement(name
= "ExtensionType", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= ExtensionType
.class),
195 @XmlElement(name
= "Feature", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= Feature
.class),
196 @XmlElement(name
= "HybridRelationshipType", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= HybridRelationshipType
.class),
197 @XmlElement(name
= "InstitutionType", namespace
= "http://etaxonomy.eu/cdm/model/agent/1.0", type
= InstitutionType
.class),
198 @XmlElement(name
= "Keyword", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= Keyword
.class),
199 @XmlElement(name
= "Language", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= Language
.class),
200 @XmlElement(name
= "MarkerType", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= MarkerType
.class),
201 @XmlElement(name
= "MeasurementUnit", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= MeasurementUnit
.class),
202 @XmlElement(name
= "Modifier", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= Modifier
.class),
203 @XmlElement(name
= "NamedArea", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= NamedArea
.class),
204 @XmlElement(name
= "NamedAreaLevel", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= NamedAreaLevel
.class),
205 @XmlElement(name
= "NamedAreaType", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= NamedAreaType
.class),
206 @XmlElement(name
= "NameRelationshipType", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NameRelationshipType
.class),
207 @XmlElement(name
= "NomenclaturalCode", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NomenclaturalCode
.class),
208 @XmlElement(name
= "NomenclaturalStatusType", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NomenclaturalStatusType
.class),
209 @XmlElement(name
= "PresenceTerm", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= PresenceTerm
.class),
210 @XmlElement(name
= "PreservationMethod", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= PreservationMethod
.class),
211 @XmlElement(name
= "Rank", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= Rank
.class),
212 @XmlElement(name
= "ReferenceSystem", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= ReferenceSystem
.class),
213 @XmlElement(name
= "RightsTerm", namespace
= "http://etaxonomy.eu/cdm/model/media/1.0", type
= RightsTerm
.class),
214 @XmlElement(name
= "Scope", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= Scope
.class),
215 @XmlElement(name
= "Sex", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= Sex
.class),
216 @XmlElement(name
= "Stage", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= Stage
.class),
217 @XmlElement(name
= "State", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= State
.class),
218 @XmlElement(name
= "StatisticalMeasure", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= StatisticalMeasure
.class),
219 @XmlElement(name
= "SynonymRelationshipType", namespace
= "http://etaxonomy.eu/cdm/model/taxon/1.0", type
= SynonymRelationshipType
.class),
220 @XmlElement(name
= "TaxonRelationshipType", namespace
= "http://etaxonomy.eu/cdm/model/taxon/1.0", type
= TaxonRelationshipType
.class),
221 @XmlElement(name
= "TextFormat", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= TextFormat
.class),
222 @XmlElement(name
= "TypeDesignationStatus", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= TypeDesignationStatus
.class),
223 @XmlElement(name
= "WaterbodyOrCountry", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= WaterbodyOrCountry
.class)
225 protected List
<DefinedTermBase
> terms
;
227 @XmlElementWrapper(name
= "TermVocabularies")
228 @XmlElement(name
= "TermVocabulary", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0")
229 protected List
<TermVocabulary
<DefinedTermBase
>> termVocabularies
;
231 @XmlElementWrapper(name
= "Occurrences")
233 @XmlElement(name
= "DnaSample", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= DnaSample
.class),
234 @XmlElement(name
= "FieldObservation", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= FieldObservation
.class),
235 @XmlElement(name
= "Fossil", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= Fossil
.class),
236 @XmlElement(name
= "LivingBeing", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= LivingBeing
.class),
237 @XmlElement(name
= "Observation", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= Observation
.class),
238 @XmlElement(name
= "Specimen", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= Specimen
.class)
240 protected List
<SpecimenOrObservationBase
> occurrences
;
242 @XmlElementWrapper(name
= "References")
244 @XmlElement(name
= "Article", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= Article
.class),
245 @XmlElement(name
= "Book", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= Book
.class),
246 @XmlElement(name
= "BookSection", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= BookSection
.class),
247 @XmlElement(name
= "CdDvd", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= CdDvd
.class),
248 @XmlElement(name
= "Database", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= Database
.class),
249 @XmlElement(name
= "Generic", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= Generic
.class),
250 @XmlElement(name
= "InProceedings", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= InProceedings
.class),
251 @XmlElement(name
= "Journal", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= Journal
.class),
252 @XmlElement(name
= "Map", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= Map
.class),
253 @XmlElement(name
= "Patent", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= Patent
.class),
254 @XmlElement(name
= "PersonalCommunication", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= PersonalCommunication
.class),
255 @XmlElement(name
= "PrintSeries", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= PrintSeries
.class),
256 @XmlElement(name
= "Proceedings", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= Proceedings
.class),
257 @XmlElement(name
= "Report", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= Report
.class),
258 @XmlElement(name
= "Thesis", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= Thesis
.class),
259 @XmlElement(name
= "WebPage", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= WebPage
.class)
261 protected List
<ReferenceBase
> references
;
263 @XmlElementWrapper(name
= "ReferencedEntities")
265 @XmlElement(name
= "NomenclaturalStatus", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NomenclaturalStatus
.class),
266 @XmlElement(name
= "NameTypeDesignation", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NameTypeDesignation
.class),
267 @XmlElement(name
= "SpecimenTypeDesignation", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= SpecimenTypeDesignation
.class)
269 protected List
<ReferencedEntityBase
> referencedEntities
;
272 @XmlElementWrapper(name
= "TaxonomicNames")
274 @XmlElement(name
= "BacterialName", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= BacterialName
.class),
275 @XmlElement(name
= "BotanicalName", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= BotanicalName
.class),
276 @XmlElement(name
= "CultivarPlantName", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= CultivarPlantName
.class),
277 @XmlElement(name
= "ViralName", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= ViralName
.class),
278 @XmlElement(name
= "ZoologicalName", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= ZoologicalName
.class)
280 protected List
<TaxonNameBase
> taxonomicNames
;
282 @XmlElementWrapper(name
= "Taxa")
283 @XmlElement(name
= "Taxon", namespace
= "http://etaxonomy.eu/cdm/model/taxon/1.0")
284 protected List
<Taxon
> taxa
;
286 @XmlElementWrapper(name
= "Synonyms")
287 @XmlElement(name
= "Synonym", namespace
= "http://etaxonomy.eu/cdm/model/taxon/1.0")
288 protected List
<Synonym
> synonyms
;
290 @XmlElementWrapper(name
= "Relationships")
292 @XmlElement(name
= "TaxonRelationship", namespace
= "http://etaxonomy.eu/cdm/model/taxon/1.0", type
= TaxonRelationship
.class),
293 @XmlElement(name
= "SynonymRelationship", namespace
= "http://etaxonomy.eu/cdm/model/taxon/1.0", type
= SynonymRelationship
.class),
294 @XmlElement(name
= "NameRelationship", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NameRelationship
.class),
295 @XmlElement(name
= "HybridRelationship", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= HybridRelationship
.class)
297 protected Set
<RelationshipBase
> relationships
;
299 @XmlElementWrapper(name
= "Media_")
300 @XmlElement(name
= "Media", namespace
= "http://etaxonomy.eu/cdm/model/media/1.0")
301 protected List
<VersionableEntity
> media
;
303 @XmlElementWrapper(name
= "HomotypicalGroups")
304 @XmlElement(name
= "HomotypicalGroup", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0")
305 protected List
<HomotypicalGroup
> homotypicalGroups
;
307 // @XmlElement(name = "TdwgArea", namespace = "http://etaxonomy.eu/cdm/model/location/1.0", type = TdwgArea.class),
309 public SDDDataSet () {
311 agents
= new ArrayList
<Agent
>();
312 agentData
= new ArrayList
<VersionableEntity
>();
313 // featureData = new ArrayList<VersionableEntity>();
314 featureData
= new ArrayList
<VersionableEntity
>();
315 languageData
= new ArrayList
<LanguageStringBase
>();
316 terms
= new ArrayList
<DefinedTermBase
>();
317 termVocabularies
= new ArrayList
<TermVocabulary
<DefinedTermBase
>>();
318 occurrences
= new ArrayList
<SpecimenOrObservationBase
>();
319 references
= new ArrayList
<ReferenceBase
>();
320 referencedEntities
= new ArrayList
<ReferencedEntityBase
>();
321 taxonomicNames
= new ArrayList
<TaxonNameBase
>();
322 taxa
= new ArrayList
<Taxon
>();
323 synonyms
= new ArrayList
<Synonym
>();
324 relationships
= new HashSet
<RelationshipBase
>();
325 media
= new ArrayList
<VersionableEntity
>();
326 homotypicalGroups
= new ArrayList
<HomotypicalGroup
>();
330 * Gets the value of the agents property.
334 * {@link List<Agent> }
337 public List
<?
extends Agent
> getAgents() {
342 * Sets the value of the agents property.
346 * {@link List<Agent> }
349 public void setAgents(List
<?
extends Agent
> value
) {
354 * Gets the value of the agentData property.
358 * {@link List<VersionableEntity> }
361 public List
<VersionableEntity
> getAgentData() {
366 * Sets the value of the agentData property.
370 * {@link List<VersionableEntity> }
373 public void setAgentData(List
<VersionableEntity
> value
) {
374 this.agentData
= value
;
378 * Gets the value of the terms property.
382 * {@link List<TermBase> }
386 //public List<? extends TermBase> getTerms() {
387 public List
<DefinedTermBase
> getTerms() {
392 * Sets the value of the terms property.
396 * {@link List<TermBase> }
399 //public void setTerms(List<? extends TermBase> value) {
400 public void setTerms(List
<DefinedTermBase
> value
) {
405 * Gets the value of the term vocabularies property.
409 * {@link List<TermVocabulary> }
413 public List
<TermVocabulary
<DefinedTermBase
>> getTermVocabularies() {
414 return termVocabularies
;
418 * Sets the value of the term vocabularies property.
422 * {@link List<TermVocabulary> }
425 public void setTermVocabularies(List
<TermVocabulary
<DefinedTermBase
>> value
) {
426 this.termVocabularies
= value
;
430 * Gets the value of the taxonomicNames property.
434 * {@link List<axonNameBase> }
437 public List
<TaxonNameBase
> getTaxonomicNames() {
438 return taxonomicNames
;
442 * Sets the value of the taxonomicNames property.
446 * {@link List<TaxonNameBase> }
449 public void setTaxonomicNames(List
<TaxonNameBase
> value
) {
450 this.taxonomicNames
= value
;
454 * Gets the value of the references property.
458 * {@link List<SpecimenOrObservationBase> }
461 public List
<SpecimenOrObservationBase
> getOccurrences() {
466 * Sets the value of the references property.
470 * {@link List<SpecimenOrObservationBase> }
473 public void setOccurrences(List
<SpecimenOrObservationBase
> value
) {
474 this.occurrences
= value
;
478 * Gets the value of the references property.
482 * {@link List<ReferenceBase> }
485 public List
<ReferenceBase
> getReferences() {
490 * Sets the value of the references property.
494 * {@link List<ReferenceBase> }
497 public void setReferences(List
<ReferenceBase
> value
) {
498 this.references
= value
;
502 * Adds the referenced entities in value to the referenced entity property list.
506 * {@link Collection<ReferencedEntityBase> }
509 public <T
extends ReferencedEntityBase
> void addReferencedEntities(Collection
<T
> value
) {
510 for (T referencedEntity
: value
) {
511 this.referencedEntities
.add(referencedEntity
);
516 * Gets the value of the property.
520 * {@link List<ReferencedEntityBase> }
523 public List
<ReferencedEntityBase
> getReferencedEntities() {
524 return referencedEntities
;
528 * Sets the value of the referencedEntities property.
532 * {@link List<ReferencedEntityBase> }
535 public void setReferencedEntities(List
<?
extends ReferencedEntityBase
> value
) {
536 this.referencedEntities
= new ArrayList
<ReferencedEntityBase
>();
537 referencedEntities
.addAll(value
);
541 * Adds the features in value to the feature data property list.
545 * {@link Collection<VersionableEntity> }
548 public <T
extends VersionableEntity
> void addFeatureData(Collection
<T
> value
) {
549 for (T featureItem
: value
) {
550 this.featureData
.add(featureItem
);
555 * Gets the value of the feature data property.
559 * {@link List<VersionableEntity> }
562 // public List<VersionableEntity> getFeatureData() {
563 public List
<VersionableEntity
> getFeatureData() {
568 * Sets the value of the feature data property.
572 * {@link List<VersionableEntity> }
575 public <T
extends VersionableEntity
> void setFeatureData(List
<T
> value
) {
576 featureData
= new ArrayList
<VersionableEntity
>();
577 for (T featureItem
: value
) {
578 this.featureData
.add(featureItem
);
582 // public void setFeatureData(List<? extends VersionableEntity> value) {
583 //public void setFeatureData(List<? extends VersionableEntity<?>> value) {
584 // this.featureData = new ArrayList<VersionableEntity>();
585 // this.featureData = new ArrayList<VersionableEntity<?>>();
586 // featureData.addAll(value);
590 * Adds the features in value to the language data property list.
594 * {@link Collection<LanguageStringBase> }
597 public <T
extends LanguageStringBase
> void addLanguageData(Collection
<T
> value
) {
598 for (T languageItem
: value
) {
599 this.languageData
.add(languageItem
);
604 * Gets the value of the language data property.
608 * {@link List<LanguageStringBase> }
611 public List
<LanguageStringBase
> getLanguageData() {
616 * Sets the value of the feature data property.
620 * {@link List<LanguageStringBase> }
623 public void setLanguageData(List
<?
extends LanguageStringBase
> value
) {
624 this.languageData
= new ArrayList
<LanguageStringBase
>();
625 languageData
.addAll(value
);
629 * Adds the taxa in value to the taxa property list.
633 * {@link Collection<Taxon> }
636 public void addTaxa(Collection
<Taxon
> value
) {
637 for (Taxon taxon
: value
) {
638 this.taxa
.add(taxon
);
643 * Gets the value of the taxa property.
647 * {@link List<Taxon> }
650 // public List<Taxon> getTaxa() {
655 * Gets the value of the taxa property as {@link Collection<TaxonBase> }
659 * {@link Collection<TaxonBase> }
662 public Collection
<?
extends TaxonBase
> getTaxa() {
664 //TODO can be deleted when everything works
666 //Collection<TaxonBase> taxonBases = (Collection<TaxonBase>)obj;
667 List
<Taxon
> list
= taxa
;
671 public Collection
<TaxonBase
> getTaxonBases() {
673 Collection
<TaxonBase
> result
= new HashSet
<TaxonBase
>();;
677 if (synonyms
!= null) {
678 result
.addAll(synonyms
);
684 * Sets the value of the taxa property.
688 * {@link List<Taxon> }
691 public void setTaxa(List
<Taxon
> value
) {
696 * Adds the taxon in value to the taxa property list.
701 public void addTaxon(Taxon value
) {
702 this.taxa
.add(value
);
707 * Gets the value of the synonyms property.
711 * {@link List<Synonym> }
714 public List
<Synonym
> getSynonyms() {
719 * Sets the value of the synonyms property.
723 * {@link List<Synonym> }
726 public void setSynonyms(List
<Synonym
> value
) {
727 this.synonyms
= value
;
731 * Adds the synonym in value to the taxa property list.
736 public void addSynonym(Synonym value
) {
737 this.synonyms
.add(value
);
741 * Adds the synonym in value to the synonyms property list.
745 * {@link Collection<Synonym> }
748 public void addSynonyms(Collection
<Synonym
> value
) {
749 for (Synonym synonym
: value
) {
750 this.synonyms
.add(synonym
);
755 * Gets the value of the relationships property.
759 * {@link Set<RelationshipBase> }
762 public Set
<RelationshipBase
> getRelationships() {
763 return relationships
;
767 * Sets the value of the relationships property.
771 * {@link Set<RelationshipBase> }
774 public void setRelationships(Set
<RelationshipBase
> value
) {
775 this.relationships
= value
;
779 * Adds the relationship in value to the relationships property list.
783 * {@link Collection<RelationshipBase> }
786 public void addRelationships(Collection
<?
extends RelationshipBase
> value
) {
787 for (RelationshipBase relationship
: value
) {
788 this.relationships
.add(relationship
);
793 * Adds the media in value to the media property list.
797 * {@link Collection<VersionableEntity> }
800 public <T
extends VersionableEntity
> void addMedia(Collection
<T
> value
) {
801 for (T medium
: value
) {
802 this.media
.add(medium
);
807 * Gets the value of the property.
811 * {@link List<ReferencedEntityBase> }
814 public List
<VersionableEntity
> getMedia() {
819 * Sets the value of the referencedEntities property.
823 * {@link List<ReferencedEntityBase> }
826 public void setMedia(List
<?
extends VersionableEntity
> value
) {
827 this.media
= new ArrayList
<VersionableEntity
>();
832 * Gets the value of the synonyms property.
836 * {@link List<Synonym> }
839 public List
<HomotypicalGroup
> getHomotypicalGroups() {
840 return homotypicalGroups
;
844 * Sets the value of the synonyms property.
848 * {@link List<Synonym> }
851 public void setHomotypicalGroups(List
<HomotypicalGroup
> value
) {
852 this.homotypicalGroups
= value
;