2 * Copyright (C) 2008 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
.io
.jaxb
;
12 import java
.util
.ArrayList
;
13 import java
.util
.Collection
;
14 import java
.util
.List
;
16 import javax
.xml
.bind
.annotation
.XmlAccessType
;
17 import javax
.xml
.bind
.annotation
.XmlAccessorType
;
18 import javax
.xml
.bind
.annotation
.XmlElement
;
19 import javax
.xml
.bind
.annotation
.XmlElementWrapper
;
20 import javax
.xml
.bind
.annotation
.XmlElements
;
21 import javax
.xml
.bind
.annotation
.XmlRootElement
;
22 import javax
.xml
.bind
.annotation
.XmlType
;
24 import org
.springframework
.security
.GrantedAuthority
;
26 import eu
.etaxonomy
.cdm
.model
.agent
.AgentBase
;
27 import eu
.etaxonomy
.cdm
.model
.agent
.Institution
;
28 import eu
.etaxonomy
.cdm
.model
.agent
.InstitutionType
;
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
.EventBase
;
34 import eu
.etaxonomy
.cdm
.model
.common
.ExtensionType
;
35 import eu
.etaxonomy
.cdm
.model
.common
.Figure
;
36 import eu
.etaxonomy
.cdm
.model
.common
.GrantedAuthorityImpl
;
37 import eu
.etaxonomy
.cdm
.model
.common
.Group
;
38 import eu
.etaxonomy
.cdm
.model
.common
.Language
;
39 import eu
.etaxonomy
.cdm
.model
.common
.LanguageString
;
40 import eu
.etaxonomy
.cdm
.model
.common
.MarkerType
;
41 import eu
.etaxonomy
.cdm
.model
.common
.OrderedTermVocabulary
;
42 import eu
.etaxonomy
.cdm
.model
.common
.TermVocabulary
;
43 import eu
.etaxonomy
.cdm
.model
.common
.User
;
44 import eu
.etaxonomy
.cdm
.model
.description
.AbsenceTerm
;
45 import eu
.etaxonomy
.cdm
.model
.description
.Feature
;
46 import eu
.etaxonomy
.cdm
.model
.description
.FeatureTree
;
47 import eu
.etaxonomy
.cdm
.model
.description
.MeasurementUnit
;
48 import eu
.etaxonomy
.cdm
.model
.description
.MediaKey
;
49 import eu
.etaxonomy
.cdm
.model
.description
.Modifier
;
50 import eu
.etaxonomy
.cdm
.model
.description
.PresenceTerm
;
51 import eu
.etaxonomy
.cdm
.model
.description
.Scope
;
52 import eu
.etaxonomy
.cdm
.model
.description
.Sex
;
53 import eu
.etaxonomy
.cdm
.model
.description
.Stage
;
54 import eu
.etaxonomy
.cdm
.model
.description
.State
;
55 import eu
.etaxonomy
.cdm
.model
.description
.StatisticalMeasure
;
56 import eu
.etaxonomy
.cdm
.model
.description
.TextFormat
;
57 import eu
.etaxonomy
.cdm
.model
.location
.Continent
;
58 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaLevel
;
59 import eu
.etaxonomy
.cdm
.model
.location
.NamedAreaType
;
60 import eu
.etaxonomy
.cdm
.model
.location
.ReferenceSystem
;
61 import eu
.etaxonomy
.cdm
.model
.location
.TdwgArea
;
62 import eu
.etaxonomy
.cdm
.model
.location
.WaterbodyOrCountry
;
63 import eu
.etaxonomy
.cdm
.model
.media
.Media
;
64 import eu
.etaxonomy
.cdm
.model
.media
.RightsTerm
;
65 import eu
.etaxonomy
.cdm
.model
.molecular
.DnaSample
;
66 import eu
.etaxonomy
.cdm
.model
.molecular
.PhylogeneticTree
;
67 import eu
.etaxonomy
.cdm
.model
.name
.BacterialName
;
68 import eu
.etaxonomy
.cdm
.model
.name
.BotanicalName
;
69 import eu
.etaxonomy
.cdm
.model
.name
.CultivarPlantName
;
70 import eu
.etaxonomy
.cdm
.model
.name
.HomotypicalGroup
;
71 import eu
.etaxonomy
.cdm
.model
.name
.HybridRelationshipType
;
72 import eu
.etaxonomy
.cdm
.model
.name
.NameRelationshipType
;
73 import eu
.etaxonomy
.cdm
.model
.name
.NameTypeDesignation
;
74 import eu
.etaxonomy
.cdm
.model
.name
.NameTypeDesignationStatus
;
75 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalCode
;
76 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalStatusType
;
77 import eu
.etaxonomy
.cdm
.model
.name
.NonViralName
;
78 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
79 import eu
.etaxonomy
.cdm
.model
.name
.SpecimenTypeDesignation
;
80 import eu
.etaxonomy
.cdm
.model
.name
.SpecimenTypeDesignationStatus
;
81 import eu
.etaxonomy
.cdm
.model
.name
.TaxonNameBase
;
82 import eu
.etaxonomy
.cdm
.model
.name
.TypeDesignationBase
;
83 import eu
.etaxonomy
.cdm
.model
.name
.ViralName
;
84 import eu
.etaxonomy
.cdm
.model
.name
.ZoologicalName
;
85 import eu
.etaxonomy
.cdm
.model
.occurrence
.DerivationEvent
;
86 import eu
.etaxonomy
.cdm
.model
.occurrence
.DerivationEventType
;
87 import eu
.etaxonomy
.cdm
.model
.occurrence
.DerivedUnit
;
88 import eu
.etaxonomy
.cdm
.model
.occurrence
.DeterminationModifier
;
89 import eu
.etaxonomy
.cdm
.model
.occurrence
.FieldObservation
;
90 import eu
.etaxonomy
.cdm
.model
.occurrence
.Fossil
;
91 import eu
.etaxonomy
.cdm
.model
.occurrence
.GatheringEvent
;
92 import eu
.etaxonomy
.cdm
.model
.occurrence
.LivingBeing
;
93 import eu
.etaxonomy
.cdm
.model
.occurrence
.Observation
;
94 import eu
.etaxonomy
.cdm
.model
.occurrence
.PreservationMethod
;
95 import eu
.etaxonomy
.cdm
.model
.occurrence
.Specimen
;
96 import eu
.etaxonomy
.cdm
.model
.occurrence
.SpecimenOrObservationBase
;
97 //import eu.etaxonomy.cdm.model.reference.Article;
98 //import eu.etaxonomy.cdm.model.reference.Book;
99 //import eu.etaxonomy.cdm.model.reference.BookSection;
100 //import eu.etaxonomy.cdm.model.reference.CdDvd;
101 //import eu.etaxonomy.cdm.model.reference.Database;
102 //import eu.etaxonomy.cdm.model.reference.Generic;
103 //import eu.etaxonomy.cdm.model.reference.InProceedings;
104 //import eu.etaxonomy.cdm.model.reference.Journal;
105 //import eu.etaxonomy.cdm.model.reference.Map;
106 //import eu.etaxonomy.cdm.model.reference.Patent;
107 //import eu.etaxonomy.cdm.model.reference.PersonalCommunication;
108 //import eu.etaxonomy.cdm.model.reference.PrintSeries;
109 //import eu.etaxonomy.cdm.model.reference.Proceedings;
110 import eu
.etaxonomy
.cdm
.model
.reference
.ReferenceBase
;
111 //import eu.etaxonomy.cdm.model.reference.Report;
112 //import eu.etaxonomy.cdm.model.reference.Thesis;
113 //import eu.etaxonomy.cdm.model.reference.WebPage;
114 import eu
.etaxonomy
.cdm
.model
.taxon
.Synonym
;
115 import eu
.etaxonomy
.cdm
.model
.taxon
.SynonymRelationshipType
;
116 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
117 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonBase
;
118 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonRelationshipType
;
119 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonomicTree
;
122 * @author a.babadshanjan
124 @XmlAccessorType(XmlAccessType
.FIELD
)
125 @XmlType(name
= "DataSet", propOrder
= {
142 "grantedAuthorities",
145 @XmlRootElement(name
= "DataSet")
146 public class DataSet
{
148 @XmlElementWrapper(name
= "Terms")
150 @XmlElement(name
= "AbsenceTerm", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= AbsenceTerm
.class),
151 @XmlElement(name
= "AnnotationType", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= AnnotationType
.class),
152 @XmlElement(name
= "Continent", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= Continent
.class),
153 @XmlElement(name
= "DerivationEventType", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= DerivationEventType
.class),
154 @XmlElement(name
= "DeterminationModifier", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= DeterminationModifier
.class),
155 @XmlElement(name
= "ExtensionType", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= ExtensionType
.class),
156 @XmlElement(name
= "Feature", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= Feature
.class),
157 @XmlElement(name
= "HybridRelationshipType", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= HybridRelationshipType
.class),
158 @XmlElement(name
= "InstitutionType", namespace
= "http://etaxonomy.eu/cdm/model/agent/1.0", type
= InstitutionType
.class),
159 // @XmlElement(name = "Keyword", namespace = "http://etaxonomy.eu/cdm/model/common/1.0", type = Keyword.class),
160 @XmlElement(name
= "Language", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= Language
.class),
161 @XmlElement(name
= "MarkerType", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= MarkerType
.class),
162 @XmlElement(name
= "MeasurementUnit", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= MeasurementUnit
.class),
163 @XmlElement(name
= "Modifier", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= Modifier
.class),
164 @XmlElement(name
= "NamedArea", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= TdwgArea
.class),
165 @XmlElement(name
= "NamedAreaLevel", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= NamedAreaLevel
.class),
166 @XmlElement(name
= "NamedAreaType", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= NamedAreaType
.class),
167 @XmlElement(name
= "NameRelationshipType", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NameRelationshipType
.class),
168 @XmlElement(name
= "NameTypeDesignationStatus", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NameTypeDesignationStatus
.class),
169 @XmlElement(name
= "NomenclaturalCode", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NomenclaturalCode
.class),
170 @XmlElement(name
= "NomenclaturalStatusType", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NomenclaturalStatusType
.class),
171 @XmlElement(name
= "PresenceTerm", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= PresenceTerm
.class),
172 @XmlElement(name
= "PreservationMethod", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= PreservationMethod
.class),
173 @XmlElement(name
= "Rank", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= Rank
.class),
174 @XmlElement(name
= "ReferenceSystem", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= ReferenceSystem
.class),
175 @XmlElement(name
= "RightsTerm", namespace
= "http://etaxonomy.eu/cdm/model/media/1.0", type
= RightsTerm
.class),
176 @XmlElement(name
= "Scope", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= Scope
.class),
177 @XmlElement(name
= "Sex", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= Sex
.class),
178 @XmlElement(name
= "SpecimenTypeDesignationStatus", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= SpecimenTypeDesignationStatus
.class),
179 @XmlElement(name
= "Stage", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= Stage
.class),
180 @XmlElement(name
= "State", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= State
.class),
181 @XmlElement(name
= "StatisticalMeasure", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= StatisticalMeasure
.class),
182 @XmlElement(name
= "SynonymRelationshipType", namespace
= "http://etaxonomy.eu/cdm/model/taxon/1.0", type
= SynonymRelationshipType
.class),
183 @XmlElement(name
= "TaxonRelationshipType", namespace
= "http://etaxonomy.eu/cdm/model/taxon/1.0", type
= TaxonRelationshipType
.class),
184 // @XmlElement(name = "TdwgArea", namespace = "http://etaxonomy.eu/cdm/model/location/1.0", type = TdwgArea.class),
185 @XmlElement(name
= "TextFormat", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= TextFormat
.class),
186 @XmlElement(name
= "WaterbodyOrCountry", namespace
= "http://etaxonomy.eu/cdm/model/location/1.0", type
= WaterbodyOrCountry
.class)
189 protected List
<DefinedTermBase
> terms
= new ArrayList
<DefinedTermBase
>();
191 @XmlElementWrapper(name
= "TermVocabularies")
193 @XmlElement(name
= "TermVocabulary", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= TermVocabulary
.class),
194 @XmlElement(name
= "OrderedTermVocabulary", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= OrderedTermVocabulary
.class)
197 protected List
<TermVocabulary
<DefinedTermBase
>> termVocabularies
= new ArrayList
<TermVocabulary
<DefinedTermBase
>>();
200 @XmlElementWrapper(name
= "Agents")
202 @XmlElement(name
= "Team", namespace
= "http://etaxonomy.eu/cdm/model/agent/1.0", type
= Team
.class),
203 @XmlElement(name
= "Institution", namespace
= "http://etaxonomy.eu/cdm/model/agent/1.0", type
= Institution
.class),
204 @XmlElement(name
= "Person", namespace
= "http://etaxonomy.eu/cdm/model/agent/1.0", type
= Person
.class)
206 protected List
<AgentBase
> agents
= new ArrayList
<AgentBase
>();
209 @XmlElementWrapper(name
= "Collections")
210 @XmlElement(name
= "Collection", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0")
211 protected List
<eu
.etaxonomy
.cdm
.model
.occurrence
.Collection
> collections
= new ArrayList
<eu
.etaxonomy
.cdm
.model
.occurrence
.Collection
>();
213 @XmlElementWrapper(name
= "FeatureTrees")
214 @XmlElement(name
= "FeatureTree", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0")
215 protected List
<FeatureTree
> featureTrees
= new ArrayList
<FeatureTree
>();
217 @XmlElementWrapper(name
= "TaxonomicTrees")
218 @XmlElement(name
= "TaxonomicTree", namespace
= "http://etaxonomy.eu/cdm/model/taxon/1.0")
219 protected List
<TaxonomicTree
> taxonomicTrees
= new ArrayList
<TaxonomicTree
>();
222 protected List
<LanguageString
> languageStrings
=new ArrayList
<LanguageString
>();
225 @XmlElementWrapper(name
= "Occurrences")
227 @XmlElement(name
= "DerivedUnit", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= DerivedUnit
.class),
228 @XmlElement(name
= "DnaSample", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= DnaSample
.class),
229 @XmlElement(name
= "FieldObservation", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= FieldObservation
.class),
230 @XmlElement(name
= "Fossil", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= Fossil
.class),
231 @XmlElement(name
= "LivingBeing", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= LivingBeing
.class),
232 @XmlElement(name
= "Observation", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= Observation
.class),
233 @XmlElement(name
= "Specimen", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= Specimen
.class)
235 protected List
<SpecimenOrObservationBase
> occurrences
= new ArrayList
<SpecimenOrObservationBase
>();
237 @XmlElementWrapper(name
= "EventBases")
239 @XmlElement(name
= "DerivationEvent", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= DerivationEvent
.class),
240 @XmlElement(name
= "GatheringEvent", namespace
= "http://etaxonomy.eu/cdm/model/occurrence/1.0", type
= GatheringEvent
.class)
242 protected List
<EventBase
> eventBases
= new ArrayList
<EventBase
>();
244 @XmlElementWrapper(name
= "References")
246 @XmlElement(name
= "ReferenceBase", namespace
= "http://etaxonomy.eu/cdm/model/reference/1.0", type
= ReferenceBase
.class)
247 // @XmlElement(name = "Article", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = Article.class),
248 // @XmlElement(name = "Book", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = Book.class),
249 // @XmlElement(name = "BookSection", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = BookSection.class),
250 // @XmlElement(name = "CdDvd", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = CdDvd.class),
251 // @XmlElement(name = "Database", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = Database.class),
252 // @XmlElement(name = "Generic", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = Generic.class),
253 // @XmlElement(name = "InProceedings", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = InProceedings.class),
254 // @XmlElement(name = "Journal", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = Journal.class),
255 // @XmlElement(name = "Map", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = Map.class),
256 // @XmlElement(name = "Patent", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = Patent.class),
257 // @XmlElement(name = "PersonalCommunication", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = PersonalCommunication.class),
258 // @XmlElement(name = "PrintSeries", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = PrintSeries.class),
259 // @XmlElement(name = "Proceedings", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = Proceedings.class),
260 // @XmlElement(name = "Report", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = Report.class),
261 // @XmlElement(name = "Thesis", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = Thesis.class),
262 // @XmlElement(name = "WebPage", namespace = "http://etaxonomy.eu/cdm/model/reference/1.0", type = WebPage.class)
264 protected List
<ReferenceBase
> references
= new ArrayList
<ReferenceBase
>();
266 @XmlElementWrapper(name
= "TypeDesignations")
268 @XmlElement(name
= "NameTypeDesignation", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NameTypeDesignation
.class),
269 @XmlElement(name
= "SpecimenTypeDesignation", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= SpecimenTypeDesignation
.class)
271 protected List
<TypeDesignationBase
> typeDesignations
= new ArrayList
<TypeDesignationBase
>();
273 @XmlElementWrapper(name
= "TaxonomicNames")
275 @XmlElement(name
= "BacterialName", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= BacterialName
.class),
276 @XmlElement(name
= "BotanicalName", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= BotanicalName
.class),
277 @XmlElement(name
= "CultivarPlantName", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= CultivarPlantName
.class),
278 @XmlElement(name
= "NonViralName", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= NonViralName
.class),
279 @XmlElement(name
= "ViralName", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= ViralName
.class),
280 @XmlElement(name
= "ZoologicalName", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0", type
= ZoologicalName
.class)
282 protected List
<TaxonNameBase
> taxonomicNames
= new ArrayList
<TaxonNameBase
>();
284 @XmlElementWrapper(name
= "TaxonBases")
286 @XmlElement(name
= "Taxon", namespace
= "http://etaxonomy.eu/cdm/model/taxon/1.0", type
= Taxon
.class),
287 @XmlElement(name
= "Synonym", namespace
= "http://etaxonomy.eu/cdm/model/taxon/1.0", type
= Synonym
.class)
289 protected List
<TaxonBase
> taxonBases
= new ArrayList
<TaxonBase
>();
291 @XmlElementWrapper(name
= "Media")
293 @XmlElement(name
= "Media", namespace
= "http://etaxonomy.eu/cdm/model/media/1.0", type
= Media
.class),
294 @XmlElement(name
= "MediaKey", namespace
= "http://etaxonomy.eu/cdm/model/description/1.0", type
= MediaKey
.class),
295 @XmlElement(name
= "Figure", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= Figure
.class),
296 @XmlElement(name
= "PhylogeneticTree", namespace
= "http://etaxonomy.eu/cdm/model/molecular/1.0", type
= PhylogeneticTree
.class)
298 protected List
<Media
> media
= new ArrayList
<Media
>();
300 @XmlElementWrapper(name
= "HomotypicalGroups")
301 @XmlElement(name
= "HomotypicalGroup", namespace
= "http://etaxonomy.eu/cdm/model/name/1.0")
302 protected List
<HomotypicalGroup
> homotypicalGroups
= new ArrayList
<HomotypicalGroup
>();
304 @XmlElementWrapper(name
= "Users")
305 @XmlElement(name
= "User", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0")
306 protected List
<User
> users
= new ArrayList
<User
>();
308 @XmlElementWrapper(name
= "Groups")
309 @XmlElement(name
= "Group", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0")
310 protected List
<Group
> groups
= new ArrayList
<Group
>();
312 @XmlElementWrapper(name
= "GrantedAuthorities")
313 @XmlElement(name
= "GrantedAuthority", namespace
= "http://etaxonomy.eu/cdm/model/common/1.0", type
= GrantedAuthorityImpl
.class)
314 protected List
<GrantedAuthority
> grantedAuthorities
= new ArrayList
<GrantedAuthority
>();
317 * Gets the value of the agents property.
321 * {@link List<Agent> }
324 public List
<AgentBase
> getAgents() {
329 * Sets the value of the agents property.
333 * {@link List<Agent> }
336 public void setAgents(List
<AgentBase
> value
) {
341 * Gets the value of the collections property.
345 * {@link List<eu.etaxonomy.cdm.model.occurrence.Collection> }
348 public List
<eu
.etaxonomy
.cdm
.model
.occurrence
.Collection
> getCollections() {
353 * Sets the value of the collections property.
357 * {@link List<eu.etaxonomy.cdm.model.occurrence.Collection> }
360 public void setCollections(List
<eu
.etaxonomy
.cdm
.model
.occurrence
.Collection
> value
) {
361 this.collections
= value
;
365 * Gets the value of the terms property.
369 * {@link List<TermBase> }
372 public List
<DefinedTermBase
> getTerms() {
377 * Sets the value of the terms property.
381 * {@link List<TermBase> }
384 public void setTerms(List
<DefinedTermBase
> value
) {
389 * Gets the value of the term vocabularies property.
393 * {@link List<TermVocabulary> }
397 public List
<TermVocabulary
<DefinedTermBase
>> getTermVocabularies() {
398 return termVocabularies
;
402 * Sets the value of the term vocabularies property.
406 * {@link List<TermVocabulary> }
409 public void setTermVocabularies(List
<TermVocabulary
<DefinedTermBase
>> value
) {
410 this.termVocabularies
= value
;
416 * Gets the value of the taxonomicNames property.
420 * {@link List<axonNameBase> }
423 public List
<TaxonNameBase
> getTaxonomicNames() {
424 return taxonomicNames
;
428 * Sets the value of the taxonomicNames property.
432 * {@link List<TaxonNameBase> }
435 public void setTaxonomicNames(List
<TaxonNameBase
> value
) {
436 this.taxonomicNames
= value
;
440 * Gets the value of the eventBases property.
444 * {@link List<EventBase> }
447 public List
<EventBase
> getEventBases() {
452 * Sets the value of the eventBases property.
456 * {@link List<EventBase> }
459 public void setEventBases(List
<EventBase
> value
) {
460 this.eventBases
= value
;
464 * Gets the value of the occurrences property.
468 * {@link List<SpecimenOrObservationBase> }
471 public List
<SpecimenOrObservationBase
> getOccurrences() {
476 * Sets the value of the occurrences property.
480 * {@link List<SpecimenOrObservationBase> }
483 public void setOccurrences(List
<SpecimenOrObservationBase
> value
) {
484 this.occurrences
= value
;
487 * Gets the value of the occurrences property.
491 * {@link List<LanguageStringBase> }
494 public List
<LanguageString
> getLanguageStrings() {
495 return languageStrings
;
499 * Sets the value of the occurrences property.
503 * {@link List<SpecimenOrObservationBase> }
506 public void setLanguageStrings(List
<LanguageString
> value
) {
507 this.languageStrings
= value
;
510 * Gets the value of the references property.
514 * {@link List<ReferenceBase> }
517 public List
<ReferenceBase
> getReferences() {
522 * Sets the value of the references property.
526 * {@link List<ReferenceBase> }
529 public void setReferences(List
<ReferenceBase
> value
) {
530 this.references
= value
;
534 * Gets the value of the featureTrees property.
538 * {@link List<FeatureTree> }
541 public List
<FeatureTree
> getFeatureTrees() {
546 * Sets the value of the featureTrees property.
550 * {@link List<FeatureTree> }
553 public void setTaxonomicTrees(List
<TaxonomicTree
> value
) {
554 this.taxonomicTrees
= value
;
557 * Gets the value of the featureTrees property.
561 * {@link List<FeatureTree> }
564 public List
<TaxonomicTree
> getTaxonomicTrees() {
565 return taxonomicTrees
;
569 * Sets the value of the featureTrees property.
573 * {@link List<FeatureTree> }
576 public void setFeatureTrees(List
<FeatureTree
> value
) {
577 this.featureTrees
= value
;
581 * Adds the taxonBases in value to the taxonBases property list.
585 * {@link Collection<TaxonBase> }
588 public void addTaxonBases(Collection
<TaxonBase
> value
) {
589 this.taxonBases
.addAll(value
);
593 * Gets the value of the taxonBases property as {@link Collection<TaxonBase> }
597 * {@link List<TaxonBase> }
600 public List
<TaxonBase
> getTaxonBases() {
605 * Sets the value of the taxonBases property.
609 * {@link List<TaxonBase> }
612 public void setTaxonBases(List
<TaxonBase
> value
) {
613 this.taxonBases
= value
;
617 * Adds the taxonBase in value to the taxonBases property list.
622 public void addTaxonBase(TaxonBase value
) {
623 this.taxonBases
.add(value
);
627 * Adds the media in value to the media property list.
631 * {@link Collection<VersionableEntity> }
634 public <T
extends Media
> void addMedia(Collection
<T
> value
) {
635 for (T medium
: value
) {
636 this.media
.add(medium
);
641 * Gets the value of the property.
645 * {@link List<ReferencedEntityBase> }
648 public List
<Media
> getMedia() {
653 * Sets the value of the referencedEntities property.
657 * {@link List<ReferencedEntityBase> }
660 public void setMedia(List
<Media
> value
) {
661 this.media
= new ArrayList
<Media
>();
666 * Gets the value of the synonyms property.
670 * {@link List<Synonym> }
673 public List
<HomotypicalGroup
> getHomotypicalGroups() {
674 return homotypicalGroups
;
678 * Sets the value of the synonyms property.
682 * {@link List<Synonym> }
685 public void setHomotypicalGroups(List
<HomotypicalGroup
> value
) {
686 this.homotypicalGroups
= value
;
690 * Gets the value of the typeDesignations property.
694 * {@link List<TypeDesignationBase> }
697 public List
<TypeDesignationBase
> getTypeDesignations() {
698 return typeDesignations
;
702 * Sets the value of the typeDesignations property.
706 * {@link List<TypeDesignationBase> }
709 public void addTypeDesignations(List
<TypeDesignationBase
> typeDesignations
) {
710 this.typeDesignations
.addAll(typeDesignations
);
714 * Gets the value of the users property.
718 * {@link List<User> }
721 public List
<User
> getUsers() {
726 * Sets the value of the users property.
730 * {@link List<User> }
733 public void setUsers(List
<User
> users
) {
738 * Gets the value of the groups property.
742 * {@link List<Group> }
745 public List
<Group
> getGroups() {
750 * Sets the value of the groups property.
754 * {@link List<Group> }
757 public void setGroups(List
<Group
> groups
) {
758 this.groups
= groups
;
762 * Gets the value of the grantedAuthorities property.
766 * {@link List<GrantedAuthority> }
769 public List
<GrantedAuthority
> getGrantedAuthorities() {
770 return grantedAuthorities
;
774 * Sets the value of the grantedAuthorities property.
778 * {@link List<GrantedAuthority> }
781 public void setGrantedAuthorities(List
<GrantedAuthority
> grantedAuthorities
) {
782 this.grantedAuthorities
= grantedAuthorities
;
785 public void addUser(User deproxy
) {
786 this.users
.add(deproxy
);