001package org.hl7.fhir.r5.model;
002
003/*-
004 * #%L
005 * org.hl7.fhir.r5
006 * %%
007 * Copyright (C) 2014 - 2019 Health Level 7
008 * %%
009 * Licensed under the Apache License, Version 2.0 (the "License");
010 * you may not use this file except in compliance with the License.
011 * You may obtain a copy of the License at
012 * 
013 *      http://www.apache.org/licenses/LICENSE-2.0
014 * 
015 * Unless required by applicable law or agreed to in writing, software
016 * distributed under the License is distributed on an "AS IS" BASIS,
017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
018 * See the License for the specific language governing permissions and
019 * limitations under the License.
020 * #L%
021 */
022
023/*
024  Copyright (c) 2011+, HL7, Inc.
025  All rights reserved.
026  
027  Redistribution and use in source and binary forms, with or without modification, 
028  are permitted provided that the following conditions are met:
029  
030   * Redistributions of source code must retain the above copyright notice, this 
031     list of conditions and the following disclaimer.
032   * Redistributions in binary form must reproduce the above copyright notice, 
033     this list of conditions and the following disclaimer in the documentation 
034     and/or other materials provided with the distribution.
035   * Neither the name of HL7 nor the names of its contributors may be used to 
036     endorse or promote products derived from this software without specific 
037     prior written permission.
038  
039  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
040  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
041  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
042  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
043  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
044  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
045  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
046  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
047  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
048  POSSIBILITY OF SUCH DAMAGE.
049  
050*/
051
052// Generated on Thu, Dec 13, 2018 14:07+1100 for FHIR v4.0.0
053import java.util.ArrayList;
054import java.util.Date;
055import java.util.List;
056import org.hl7.fhir.exceptions.FHIRException;
057import org.hl7.fhir.instance.model.api.ICompositeType;
058
059import org.hl7.fhir.instance.model.api.IBaseDatatypeElement;
060import org.hl7.fhir.utilities.Utilities;
061import org.hl7.fhir.r5.model.Enumerations.*;
062import ca.uhn.fhir.model.api.annotation.ResourceDef;
063import ca.uhn.fhir.model.api.annotation.SearchParamDefinition;
064import org.hl7.fhir.instance.model.api.IBaseBackboneElement;
065import ca.uhn.fhir.model.api.annotation.Child;
066import ca.uhn.fhir.model.api.annotation.ChildOrder;
067import ca.uhn.fhir.model.api.annotation.Description;
068import ca.uhn.fhir.model.api.annotation.Block;
069/**
070 * A set of rules of how a particular interoperability or standards problem is solved - typically through the use of FHIR resources. This resource is used to gather all the parts of an implementation guide into a logical whole and to publish a computable definition of all the parts.
071 */
072@ResourceDef(name="ImplementationGuide", profile="http://hl7.org/fhir/StructureDefinition/ImplementationGuide")
073@ChildOrder(names={"url", "version", "name", "title", "status", "experimental", "date", "publisher", "contact", "description", "useContext", "jurisdiction", "copyright", "packageId", "license", "fhirVersion", "dependsOn", "global", "definition", "manifest"})
074public class ImplementationGuide extends MetadataResource {
075
076    public enum SPDXLicense {
077        /**
078         * Not an open source license.
079         */
080        NOTOPENSOURCE, 
081        /**
082         * BSD Zero Clause License.
083         */
084        _0BSD, 
085        /**
086         * Attribution Assurance License.
087         */
088        AAL, 
089        /**
090         * Abstyles License.
091         */
092        ABSTYLES, 
093        /**
094         * Adobe Systems Incorporated Source Code License Agreement.
095         */
096        ADOBE2006, 
097        /**
098         * Adobe Glyph List License.
099         */
100        ADOBEGLYPH, 
101        /**
102         * Amazon Digital Services License.
103         */
104        ADSL, 
105        /**
106         * Academic Free License v1.1.
107         */
108        AFL1_1, 
109        /**
110         * Academic Free License v1.2.
111         */
112        AFL1_2, 
113        /**
114         * Academic Free License v2.0.
115         */
116        AFL2_0, 
117        /**
118         * Academic Free License v2.1.
119         */
120        AFL2_1, 
121        /**
122         * Academic Free License v3.0.
123         */
124        AFL3_0, 
125        /**
126         * Afmparse License.
127         */
128        AFMPARSE, 
129        /**
130         * Affero General Public License v1.0 only.
131         */
132        AGPL1_0ONLY, 
133        /**
134         * Affero General Public License v1.0 or later.
135         */
136        AGPL1_0ORLATER, 
137        /**
138         * GNU Affero General Public License v3.0 only.
139         */
140        AGPL3_0ONLY, 
141        /**
142         * GNU Affero General Public License v3.0 or later.
143         */
144        AGPL3_0ORLATER, 
145        /**
146         * Aladdin Free Public License.
147         */
148        ALADDIN, 
149        /**
150         * AMD's plpa_map.c License.
151         */
152        AMDPLPA, 
153        /**
154         * Apple MIT License.
155         */
156        AML, 
157        /**
158         * Academy of Motion Picture Arts and Sciences BSD.
159         */
160        AMPAS, 
161        /**
162         * ANTLR Software Rights Notice.
163         */
164        ANTLRPD, 
165        /**
166         * Apache License 1.0.
167         */
168        APACHE1_0, 
169        /**
170         * Apache License 1.1.
171         */
172        APACHE1_1, 
173        /**
174         * Apache License 2.0.
175         */
176        APACHE2_0, 
177        /**
178         * Adobe Postscript AFM License.
179         */
180        APAFML, 
181        /**
182         * Adaptive Public License 1.0.
183         */
184        APL1_0, 
185        /**
186         * Apple Public Source License 1.0.
187         */
188        APSL1_0, 
189        /**
190         * Apple Public Source License 1.1.
191         */
192        APSL1_1, 
193        /**
194         * Apple Public Source License 1.2.
195         */
196        APSL1_2, 
197        /**
198         * Apple Public Source License 2.0.
199         */
200        APSL2_0, 
201        /**
202         * Artistic License 1.0 w/clause 8.
203         */
204        ARTISTIC1_0CL8, 
205        /**
206         * Artistic License 1.0 (Perl).
207         */
208        ARTISTIC1_0PERL, 
209        /**
210         * Artistic License 1.0.
211         */
212        ARTISTIC1_0, 
213        /**
214         * Artistic License 2.0.
215         */
216        ARTISTIC2_0, 
217        /**
218         * Bahyph License.
219         */
220        BAHYPH, 
221        /**
222         * Barr License.
223         */
224        BARR, 
225        /**
226         * Beerware License.
227         */
228        BEERWARE, 
229        /**
230         * BitTorrent Open Source License v1.0.
231         */
232        BITTORRENT1_0, 
233        /**
234         * BitTorrent Open Source License v1.1.
235         */
236        BITTORRENT1_1, 
237        /**
238         * Borceux license.
239         */
240        BORCEUX, 
241        /**
242         * BSD 1-Clause License.
243         */
244        BSD1CLAUSE, 
245        /**
246         * BSD 2-Clause FreeBSD License.
247         */
248        BSD2CLAUSEFREEBSD, 
249        /**
250         * BSD 2-Clause NetBSD License.
251         */
252        BSD2CLAUSENETBSD, 
253        /**
254         * BSD-2-Clause Plus Patent License.
255         */
256        BSD2CLAUSEPATENT, 
257        /**
258         * BSD 2-Clause "Simplified" License.
259         */
260        BSD2CLAUSE, 
261        /**
262         * BSD with attribution.
263         */
264        BSD3CLAUSEATTRIBUTION, 
265        /**
266         * BSD 3-Clause Clear License.
267         */
268        BSD3CLAUSECLEAR, 
269        /**
270         * Lawrence Berkeley National Labs BSD variant license.
271         */
272        BSD3CLAUSELBNL, 
273        /**
274         * BSD 3-Clause No Nuclear License 2014.
275         */
276        BSD3CLAUSENONUCLEARLICENSE2014, 
277        /**
278         * BSD 3-Clause No Nuclear License.
279         */
280        BSD3CLAUSENONUCLEARLICENSE, 
281        /**
282         * BSD 3-Clause No Nuclear Warranty.
283         */
284        BSD3CLAUSENONUCLEARWARRANTY, 
285        /**
286         * BSD 3-Clause "New" or "Revised" License.
287         */
288        BSD3CLAUSE, 
289        /**
290         * BSD-4-Clause (University of California-Specific).
291         */
292        BSD4CLAUSEUC, 
293        /**
294         * BSD 4-Clause "Original" or "Old" License.
295         */
296        BSD4CLAUSE, 
297        /**
298         * BSD Protection License.
299         */
300        BSDPROTECTION, 
301        /**
302         * BSD Source Code Attribution.
303         */
304        BSDSOURCECODE, 
305        /**
306         * Boost Software License 1.0.
307         */
308        BSL1_0, 
309        /**
310         * bzip2 and libbzip2 License v1.0.5.
311         */
312        BZIP21_0_5, 
313        /**
314         * bzip2 and libbzip2 License v1.0.6.
315         */
316        BZIP21_0_6, 
317        /**
318         * Caldera License.
319         */
320        CALDERA, 
321        /**
322         * Computer Associates Trusted Open Source License 1.1.
323         */
324        CATOSL1_1, 
325        /**
326         * Creative Commons Attribution 1.0 Generic.
327         */
328        CCBY1_0, 
329        /**
330         * Creative Commons Attribution 2.0 Generic.
331         */
332        CCBY2_0, 
333        /**
334         * Creative Commons Attribution 2.5 Generic.
335         */
336        CCBY2_5, 
337        /**
338         * Creative Commons Attribution 3.0 Unported.
339         */
340        CCBY3_0, 
341        /**
342         * Creative Commons Attribution 4.0 International.
343         */
344        CCBY4_0, 
345        /**
346         * Creative Commons Attribution Non Commercial 1.0 Generic.
347         */
348        CCBYNC1_0, 
349        /**
350         * Creative Commons Attribution Non Commercial 2.0 Generic.
351         */
352        CCBYNC2_0, 
353        /**
354         * Creative Commons Attribution Non Commercial 2.5 Generic.
355         */
356        CCBYNC2_5, 
357        /**
358         * Creative Commons Attribution Non Commercial 3.0 Unported.
359         */
360        CCBYNC3_0, 
361        /**
362         * Creative Commons Attribution Non Commercial 4.0 International.
363         */
364        CCBYNC4_0, 
365        /**
366         * Creative Commons Attribution Non Commercial No Derivatives 1.0 Generic.
367         */
368        CCBYNCND1_0, 
369        /**
370         * Creative Commons Attribution Non Commercial No Derivatives 2.0 Generic.
371         */
372        CCBYNCND2_0, 
373        /**
374         * Creative Commons Attribution Non Commercial No Derivatives 2.5 Generic.
375         */
376        CCBYNCND2_5, 
377        /**
378         * Creative Commons Attribution Non Commercial No Derivatives 3.0 Unported.
379         */
380        CCBYNCND3_0, 
381        /**
382         * Creative Commons Attribution Non Commercial No Derivatives 4.0 International.
383         */
384        CCBYNCND4_0, 
385        /**
386         * Creative Commons Attribution Non Commercial Share Alike 1.0 Generic.
387         */
388        CCBYNCSA1_0, 
389        /**
390         * Creative Commons Attribution Non Commercial Share Alike 2.0 Generic.
391         */
392        CCBYNCSA2_0, 
393        /**
394         * Creative Commons Attribution Non Commercial Share Alike 2.5 Generic.
395         */
396        CCBYNCSA2_5, 
397        /**
398         * Creative Commons Attribution Non Commercial Share Alike 3.0 Unported.
399         */
400        CCBYNCSA3_0, 
401        /**
402         * Creative Commons Attribution Non Commercial Share Alike 4.0 International.
403         */
404        CCBYNCSA4_0, 
405        /**
406         * Creative Commons Attribution No Derivatives 1.0 Generic.
407         */
408        CCBYND1_0, 
409        /**
410         * Creative Commons Attribution No Derivatives 2.0 Generic.
411         */
412        CCBYND2_0, 
413        /**
414         * Creative Commons Attribution No Derivatives 2.5 Generic.
415         */
416        CCBYND2_5, 
417        /**
418         * Creative Commons Attribution No Derivatives 3.0 Unported.
419         */
420        CCBYND3_0, 
421        /**
422         * Creative Commons Attribution No Derivatives 4.0 International.
423         */
424        CCBYND4_0, 
425        /**
426         * Creative Commons Attribution Share Alike 1.0 Generic.
427         */
428        CCBYSA1_0, 
429        /**
430         * Creative Commons Attribution Share Alike 2.0 Generic.
431         */
432        CCBYSA2_0, 
433        /**
434         * Creative Commons Attribution Share Alike 2.5 Generic.
435         */
436        CCBYSA2_5, 
437        /**
438         * Creative Commons Attribution Share Alike 3.0 Unported.
439         */
440        CCBYSA3_0, 
441        /**
442         * Creative Commons Attribution Share Alike 4.0 International.
443         */
444        CCBYSA4_0, 
445        /**
446         * Creative Commons Zero v1.0 Universal.
447         */
448        CC01_0, 
449        /**
450         * Common Development and Distribution License 1.0.
451         */
452        CDDL1_0, 
453        /**
454         * Common Development and Distribution License 1.1.
455         */
456        CDDL1_1, 
457        /**
458         * Community Data License Agreement Permissive 1.0.
459         */
460        CDLAPERMISSIVE1_0, 
461        /**
462         * Community Data License Agreement Sharing 1.0.
463         */
464        CDLASHARING1_0, 
465        /**
466         * CeCILL Free Software License Agreement v1.0.
467         */
468        CECILL1_0, 
469        /**
470         * CeCILL Free Software License Agreement v1.1.
471         */
472        CECILL1_1, 
473        /**
474         * CeCILL Free Software License Agreement v2.0.
475         */
476        CECILL2_0, 
477        /**
478         * CeCILL Free Software License Agreement v2.1.
479         */
480        CECILL2_1, 
481        /**
482         * CeCILL-B Free Software License Agreement.
483         */
484        CECILLB, 
485        /**
486         * CeCILL-C Free Software License Agreement.
487         */
488        CECILLC, 
489        /**
490         * Clarified Artistic License.
491         */
492        CLARTISTIC, 
493        /**
494         * CNRI Jython License.
495         */
496        CNRIJYTHON, 
497        /**
498         * CNRI Python Open Source GPL Compatible License Agreement.
499         */
500        CNRIPYTHONGPLCOMPATIBLE, 
501        /**
502         * CNRI Python License.
503         */
504        CNRIPYTHON, 
505        /**
506         * Condor Public License v1.1.
507         */
508        CONDOR1_1, 
509        /**
510         * Common Public Attribution License 1.0.
511         */
512        CPAL1_0, 
513        /**
514         * Common Public License 1.0.
515         */
516        CPL1_0, 
517        /**
518         * Code Project Open License 1.02.
519         */
520        CPOL1_02, 
521        /**
522         * Crossword License.
523         */
524        CROSSWORD, 
525        /**
526         * CrystalStacker License.
527         */
528        CRYSTALSTACKER, 
529        /**
530         * CUA Office Public License v1.0.
531         */
532        CUAOPL1_0, 
533        /**
534         * Cube License.
535         */
536        CUBE, 
537        /**
538         * curl License.
539         */
540        CURL, 
541        /**
542         * Deutsche Freie Software Lizenz.
543         */
544        DFSL1_0, 
545        /**
546         * diffmark license.
547         */
548        DIFFMARK, 
549        /**
550         * DOC License.
551         */
552        DOC, 
553        /**
554         * Dotseqn License.
555         */
556        DOTSEQN, 
557        /**
558         * DSDP License.
559         */
560        DSDP, 
561        /**
562         * dvipdfm License.
563         */
564        DVIPDFM, 
565        /**
566         * Educational Community License v1.0.
567         */
568        ECL1_0, 
569        /**
570         * Educational Community License v2.0.
571         */
572        ECL2_0, 
573        /**
574         * Eiffel Forum License v1.0.
575         */
576        EFL1_0, 
577        /**
578         * Eiffel Forum License v2.0.
579         */
580        EFL2_0, 
581        /**
582         * eGenix.com Public License 1.1.0.
583         */
584        EGENIX, 
585        /**
586         * Entessa Public License v1.0.
587         */
588        ENTESSA, 
589        /**
590         * Eclipse Public License 1.0.
591         */
592        EPL1_0, 
593        /**
594         * Eclipse Public License 2.0.
595         */
596        EPL2_0, 
597        /**
598         * Erlang Public License v1.1.
599         */
600        ERLPL1_1, 
601        /**
602         * EU DataGrid Software License.
603         */
604        EUDATAGRID, 
605        /**
606         * European Union Public License 1.0.
607         */
608        EUPL1_0, 
609        /**
610         * European Union Public License 1.1.
611         */
612        EUPL1_1, 
613        /**
614         * European Union Public License 1.2.
615         */
616        EUPL1_2, 
617        /**
618         * Eurosym License.
619         */
620        EUROSYM, 
621        /**
622         * Fair License.
623         */
624        FAIR, 
625        /**
626         * Frameworx Open License 1.0.
627         */
628        FRAMEWORX1_0, 
629        /**
630         * FreeImage Public License v1.0.
631         */
632        FREEIMAGE, 
633        /**
634         * FSF All Permissive License.
635         */
636        FSFAP, 
637        /**
638         * FSF Unlimited License.
639         */
640        FSFUL, 
641        /**
642         * FSF Unlimited License (with License Retention).
643         */
644        FSFULLR, 
645        /**
646         * Freetype Project License.
647         */
648        FTL, 
649        /**
650         * GNU Free Documentation License v1.1 only.
651         */
652        GFDL1_1ONLY, 
653        /**
654         * GNU Free Documentation License v1.1 or later.
655         */
656        GFDL1_1ORLATER, 
657        /**
658         * GNU Free Documentation License v1.2 only.
659         */
660        GFDL1_2ONLY, 
661        /**
662         * GNU Free Documentation License v1.2 or later.
663         */
664        GFDL1_2ORLATER, 
665        /**
666         * GNU Free Documentation License v1.3 only.
667         */
668        GFDL1_3ONLY, 
669        /**
670         * GNU Free Documentation License v1.3 or later.
671         */
672        GFDL1_3ORLATER, 
673        /**
674         * Giftware License.
675         */
676        GIFTWARE, 
677        /**
678         * GL2PS License.
679         */
680        GL2PS, 
681        /**
682         * 3dfx Glide License.
683         */
684        GLIDE, 
685        /**
686         * Glulxe License.
687         */
688        GLULXE, 
689        /**
690         * gnuplot License.
691         */
692        GNUPLOT, 
693        /**
694         * GNU General Public License v1.0 only.
695         */
696        GPL1_0ONLY, 
697        /**
698         * GNU General Public License v1.0 or later.
699         */
700        GPL1_0ORLATER, 
701        /**
702         * GNU General Public License v2.0 only.
703         */
704        GPL2_0ONLY, 
705        /**
706         * GNU General Public License v2.0 or later.
707         */
708        GPL2_0ORLATER, 
709        /**
710         * GNU General Public License v3.0 only.
711         */
712        GPL3_0ONLY, 
713        /**
714         * GNU General Public License v3.0 or later.
715         */
716        GPL3_0ORLATER, 
717        /**
718         * gSOAP Public License v1.3b.
719         */
720        GSOAP1_3B, 
721        /**
722         * Haskell Language Report License.
723         */
724        HASKELLREPORT, 
725        /**
726         * Historical Permission Notice and Disclaimer.
727         */
728        HPND, 
729        /**
730         * IBM PowerPC Initialization and Boot Software.
731         */
732        IBMPIBS, 
733        /**
734         * ICU License.
735         */
736        ICU, 
737        /**
738         * Independent JPEG Group License.
739         */
740        IJG, 
741        /**
742         * ImageMagick License.
743         */
744        IMAGEMAGICK, 
745        /**
746         * iMatix Standard Function Library Agreement.
747         */
748        IMATIX, 
749        /**
750         * Imlib2 License.
751         */
752        IMLIB2, 
753        /**
754         * Info-ZIP License.
755         */
756        INFOZIP, 
757        /**
758         * Intel ACPI Software License Agreement.
759         */
760        INTELACPI, 
761        /**
762         * Intel Open Source License.
763         */
764        INTEL, 
765        /**
766         * Interbase Public License v1.0.
767         */
768        INTERBASE1_0, 
769        /**
770         * IPA Font License.
771         */
772        IPA, 
773        /**
774         * IBM Public License v1.0.
775         */
776        IPL1_0, 
777        /**
778         * ISC License.
779         */
780        ISC, 
781        /**
782         * JasPer License.
783         */
784        JASPER2_0, 
785        /**
786         * JSON License.
787         */
788        JSON, 
789        /**
790         * Licence Art Libre 1.2.
791         */
792        LAL1_2, 
793        /**
794         * Licence Art Libre 1.3.
795         */
796        LAL1_3, 
797        /**
798         * Latex2e License.
799         */
800        LATEX2E, 
801        /**
802         * Leptonica License.
803         */
804        LEPTONICA, 
805        /**
806         * GNU Library General Public License v2 only.
807         */
808        LGPL2_0ONLY, 
809        /**
810         * GNU Library General Public License v2 or later.
811         */
812        LGPL2_0ORLATER, 
813        /**
814         * GNU Lesser General Public License v2.1 only.
815         */
816        LGPL2_1ONLY, 
817        /**
818         * GNU Lesser General Public License v2.1 or later.
819         */
820        LGPL2_1ORLATER, 
821        /**
822         * GNU Lesser General Public License v3.0 only.
823         */
824        LGPL3_0ONLY, 
825        /**
826         * GNU Lesser General Public License v3.0 or later.
827         */
828        LGPL3_0ORLATER, 
829        /**
830         * Lesser General Public License For Linguistic Resources.
831         */
832        LGPLLR, 
833        /**
834         * libpng License.
835         */
836        LIBPNG, 
837        /**
838         * libtiff License.
839         */
840        LIBTIFF, 
841        /**
842         * Licence Libre du Québec – Permissive version 1.1.
843         */
844        LILIQP1_1, 
845        /**
846         * Licence Libre du Québec – Réciprocité version 1.1.
847         */
848        LILIQR1_1, 
849        /**
850         * Licence Libre du Québec – Réciprocité forte version 1.1.
851         */
852        LILIQRPLUS1_1, 
853        /**
854         * Linux Kernel Variant of OpenIB.org license.
855         */
856        LINUXOPENIB, 
857        /**
858         * Lucent Public License Version 1.0.
859         */
860        LPL1_0, 
861        /**
862         * Lucent Public License v1.02.
863         */
864        LPL1_02, 
865        /**
866         * LaTeX Project Public License v1.0.
867         */
868        LPPL1_0, 
869        /**
870         * LaTeX Project Public License v1.1.
871         */
872        LPPL1_1, 
873        /**
874         * LaTeX Project Public License v1.2.
875         */
876        LPPL1_2, 
877        /**
878         * LaTeX Project Public License v1.3a.
879         */
880        LPPL1_3A, 
881        /**
882         * LaTeX Project Public License v1.3c.
883         */
884        LPPL1_3C, 
885        /**
886         * MakeIndex License.
887         */
888        MAKEINDEX, 
889        /**
890         * MirOS License.
891         */
892        MIROS, 
893        /**
894         * MIT No Attribution.
895         */
896        MIT0, 
897        /**
898         * Enlightenment License (e16).
899         */
900        MITADVERTISING, 
901        /**
902         * CMU License.
903         */
904        MITCMU, 
905        /**
906         * enna License.
907         */
908        MITENNA, 
909        /**
910         * feh License.
911         */
912        MITFEH, 
913        /**
914         * MIT License.
915         */
916        MIT, 
917        /**
918         * MIT +no-false-attribs license.
919         */
920        MITNFA, 
921        /**
922         * Motosoto License.
923         */
924        MOTOSOTO, 
925        /**
926         * mpich2 License.
927         */
928        MPICH2, 
929        /**
930         * Mozilla Public License 1.0.
931         */
932        MPL1_0, 
933        /**
934         * Mozilla Public License 1.1.
935         */
936        MPL1_1, 
937        /**
938         * Mozilla Public License 2.0 (no copyleft exception).
939         */
940        MPL2_0NOCOPYLEFTEXCEPTION, 
941        /**
942         * Mozilla Public License 2.0.
943         */
944        MPL2_0, 
945        /**
946         * Microsoft Public License.
947         */
948        MSPL, 
949        /**
950         * Microsoft Reciprocal License.
951         */
952        MSRL, 
953        /**
954         * Matrix Template Library License.
955         */
956        MTLL, 
957        /**
958         * Multics License.
959         */
960        MULTICS, 
961        /**
962         * Mup License.
963         */
964        MUP, 
965        /**
966         * NASA Open Source Agreement 1.3.
967         */
968        NASA1_3, 
969        /**
970         * Naumen Public License.
971         */
972        NAUMEN, 
973        /**
974         * Net Boolean Public License v1.
975         */
976        NBPL1_0, 
977        /**
978         * University of Illinois/NCSA Open Source License.
979         */
980        NCSA, 
981        /**
982         * Net-SNMP License.
983         */
984        NETSNMP, 
985        /**
986         * NetCDF license.
987         */
988        NETCDF, 
989        /**
990         * Newsletr License.
991         */
992        NEWSLETR, 
993        /**
994         * Nethack General Public License.
995         */
996        NGPL, 
997        /**
998         * Norwegian Licence for Open Government Data.
999         */
1000        NLOD1_0, 
1001        /**
1002         * No Limit Public License.
1003         */
1004        NLPL, 
1005        /**
1006         * Nokia Open Source License.
1007         */
1008        NOKIA, 
1009        /**
1010         * Netizen Open Source License.
1011         */
1012        NOSL, 
1013        /**
1014         * Noweb License.
1015         */
1016        NOWEB, 
1017        /**
1018         * Netscape Public License v1.0.
1019         */
1020        NPL1_0, 
1021        /**
1022         * Netscape Public License v1.1.
1023         */
1024        NPL1_1, 
1025        /**
1026         * Non-Profit Open Software License 3.0.
1027         */
1028        NPOSL3_0, 
1029        /**
1030         * NRL License.
1031         */
1032        NRL, 
1033        /**
1034         * NTP License.
1035         */
1036        NTP, 
1037        /**
1038         * Open CASCADE Technology Public License.
1039         */
1040        OCCTPL, 
1041        /**
1042         * OCLC Research Public License 2.0.
1043         */
1044        OCLC2_0, 
1045        /**
1046         * ODC Open Database License v1.0.
1047         */
1048        ODBL1_0, 
1049        /**
1050         * SIL Open Font License 1.0.
1051         */
1052        OFL1_0, 
1053        /**
1054         * SIL Open Font License 1.1.
1055         */
1056        OFL1_1, 
1057        /**
1058         * Open Group Test Suite License.
1059         */
1060        OGTSL, 
1061        /**
1062         * Open LDAP Public License v1.1.
1063         */
1064        OLDAP1_1, 
1065        /**
1066         * Open LDAP Public License v1.2.
1067         */
1068        OLDAP1_2, 
1069        /**
1070         * Open LDAP Public License v1.3.
1071         */
1072        OLDAP1_3, 
1073        /**
1074         * Open LDAP Public License v1.4.
1075         */
1076        OLDAP1_4, 
1077        /**
1078         * Open LDAP Public License v2.0.1.
1079         */
1080        OLDAP2_0_1, 
1081        /**
1082         * Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B).
1083         */
1084        OLDAP2_0, 
1085        /**
1086         * Open LDAP Public License v2.1.
1087         */
1088        OLDAP2_1, 
1089        /**
1090         * Open LDAP Public License v2.2.1.
1091         */
1092        OLDAP2_2_1, 
1093        /**
1094         * Open LDAP Public License 2.2.2.
1095         */
1096        OLDAP2_2_2, 
1097        /**
1098         * Open LDAP Public License v2.2.
1099         */
1100        OLDAP2_2, 
1101        /**
1102         * Open LDAP Public License v2.3.
1103         */
1104        OLDAP2_3, 
1105        /**
1106         * Open LDAP Public License v2.4.
1107         */
1108        OLDAP2_4, 
1109        /**
1110         * Open LDAP Public License v2.5.
1111         */
1112        OLDAP2_5, 
1113        /**
1114         * Open LDAP Public License v2.6.
1115         */
1116        OLDAP2_6, 
1117        /**
1118         * Open LDAP Public License v2.7.
1119         */
1120        OLDAP2_7, 
1121        /**
1122         * Open LDAP Public License v2.8.
1123         */
1124        OLDAP2_8, 
1125        /**
1126         * Open Market License.
1127         */
1128        OML, 
1129        /**
1130         * OpenSSL License.
1131         */
1132        OPENSSL, 
1133        /**
1134         * Open Public License v1.0.
1135         */
1136        OPL1_0, 
1137        /**
1138         * OSET Public License version 2.1.
1139         */
1140        OSETPL2_1, 
1141        /**
1142         * Open Software License 1.0.
1143         */
1144        OSL1_0, 
1145        /**
1146         * Open Software License 1.1.
1147         */
1148        OSL1_1, 
1149        /**
1150         * Open Software License 2.0.
1151         */
1152        OSL2_0, 
1153        /**
1154         * Open Software License 2.1.
1155         */
1156        OSL2_1, 
1157        /**
1158         * Open Software License 3.0.
1159         */
1160        OSL3_0, 
1161        /**
1162         * ODC Public Domain Dedication & License 1.0.
1163         */
1164        PDDL1_0, 
1165        /**
1166         * PHP License v3.0.
1167         */
1168        PHP3_0, 
1169        /**
1170         * PHP License v3.01.
1171         */
1172        PHP3_01, 
1173        /**
1174         * Plexus Classworlds License.
1175         */
1176        PLEXUS, 
1177        /**
1178         * PostgreSQL License.
1179         */
1180        POSTGRESQL, 
1181        /**
1182         * psfrag License.
1183         */
1184        PSFRAG, 
1185        /**
1186         * psutils License.
1187         */
1188        PSUTILS, 
1189        /**
1190         * Python License 2.0.
1191         */
1192        PYTHON2_0, 
1193        /**
1194         * Qhull License.
1195         */
1196        QHULL, 
1197        /**
1198         * Q Public License 1.0.
1199         */
1200        QPL1_0, 
1201        /**
1202         * Rdisc License.
1203         */
1204        RDISC, 
1205        /**
1206         * Red Hat eCos Public License v1.1.
1207         */
1208        RHECOS1_1, 
1209        /**
1210         * Reciprocal Public License 1.1.
1211         */
1212        RPL1_1, 
1213        /**
1214         * Reciprocal Public License 1.5.
1215         */
1216        RPL1_5, 
1217        /**
1218         * RealNetworks Public Source License v1.0.
1219         */
1220        RPSL1_0, 
1221        /**
1222         * RSA Message-Digest License.
1223         */
1224        RSAMD, 
1225        /**
1226         * Ricoh Source Code Public License.
1227         */
1228        RSCPL, 
1229        /**
1230         * Ruby License.
1231         */
1232        RUBY, 
1233        /**
1234         * Sax Public Domain Notice.
1235         */
1236        SAXPD, 
1237        /**
1238         * Saxpath License.
1239         */
1240        SAXPATH, 
1241        /**
1242         * SCEA Shared Source License.
1243         */
1244        SCEA, 
1245        /**
1246         * Sendmail License.
1247         */
1248        SENDMAIL, 
1249        /**
1250         * SGI Free Software License B v1.0.
1251         */
1252        SGIB1_0, 
1253        /**
1254         * SGI Free Software License B v1.1.
1255         */
1256        SGIB1_1, 
1257        /**
1258         * SGI Free Software License B v2.0.
1259         */
1260        SGIB2_0, 
1261        /**
1262         * Simple Public License 2.0.
1263         */
1264        SIMPL2_0, 
1265        /**
1266         * Sun Industry Standards Source License v1.2.
1267         */
1268        SISSL1_2, 
1269        /**
1270         * Sun Industry Standards Source License v1.1.
1271         */
1272        SISSL, 
1273        /**
1274         * Sleepycat License.
1275         */
1276        SLEEPYCAT, 
1277        /**
1278         * Standard ML of New Jersey License.
1279         */
1280        SMLNJ, 
1281        /**
1282         * Secure Messaging Protocol Public License.
1283         */
1284        SMPPL, 
1285        /**
1286         * SNIA Public License 1.1.
1287         */
1288        SNIA, 
1289        /**
1290         * Spencer License 86.
1291         */
1292        SPENCER86, 
1293        /**
1294         * Spencer License 94.
1295         */
1296        SPENCER94, 
1297        /**
1298         * Spencer License 99.
1299         */
1300        SPENCER99, 
1301        /**
1302         * Sun Public License v1.0.
1303         */
1304        SPL1_0, 
1305        /**
1306         * SugarCRM Public License v1.1.3.
1307         */
1308        SUGARCRM1_1_3, 
1309        /**
1310         * Scheme Widget Library (SWL) Software License Agreement.
1311         */
1312        SWL, 
1313        /**
1314         * TCL/TK License.
1315         */
1316        TCL, 
1317        /**
1318         * TCP Wrappers License.
1319         */
1320        TCPWRAPPERS, 
1321        /**
1322         * TMate Open Source License.
1323         */
1324        TMATE, 
1325        /**
1326         * TORQUE v2.5+ Software License v1.1.
1327         */
1328        TORQUE1_1, 
1329        /**
1330         * Trusster Open Source License.
1331         */
1332        TOSL, 
1333        /**
1334         * Unicode License Agreement - Data Files and Software (2015).
1335         */
1336        UNICODEDFS2015, 
1337        /**
1338         * Unicode License Agreement - Data Files and Software (2016).
1339         */
1340        UNICODEDFS2016, 
1341        /**
1342         * Unicode Terms of Use.
1343         */
1344        UNICODETOU, 
1345        /**
1346         * The Unlicense.
1347         */
1348        UNLICENSE, 
1349        /**
1350         * Universal Permissive License v1.0.
1351         */
1352        UPL1_0, 
1353        /**
1354         * Vim License.
1355         */
1356        VIM, 
1357        /**
1358         * VOSTROM Public License for Open Source.
1359         */
1360        VOSTROM, 
1361        /**
1362         * Vovida Software License v1.0.
1363         */
1364        VSL1_0, 
1365        /**
1366         * W3C Software Notice and License (1998-07-20).
1367         */
1368        W3C19980720, 
1369        /**
1370         * W3C Software Notice and Document License (2015-05-13).
1371         */
1372        W3C20150513, 
1373        /**
1374         * W3C Software Notice and License (2002-12-31).
1375         */
1376        W3C, 
1377        /**
1378         * Sybase Open Watcom Public License 1.0.
1379         */
1380        WATCOM1_0, 
1381        /**
1382         * Wsuipa License.
1383         */
1384        WSUIPA, 
1385        /**
1386         * Do What The F*ck You Want To Public License.
1387         */
1388        WTFPL, 
1389        /**
1390         * X11 License.
1391         */
1392        X11, 
1393        /**
1394         * Xerox License.
1395         */
1396        XEROX, 
1397        /**
1398         * XFree86 License 1.1.
1399         */
1400        XFREE861_1, 
1401        /**
1402         * xinetd License.
1403         */
1404        XINETD, 
1405        /**
1406         * X.Net License.
1407         */
1408        XNET, 
1409        /**
1410         * XPP License.
1411         */
1412        XPP, 
1413        /**
1414         * XSkat License.
1415         */
1416        XSKAT, 
1417        /**
1418         * Yahoo! Public License v1.0.
1419         */
1420        YPL1_0, 
1421        /**
1422         * Yahoo! Public License v1.1.
1423         */
1424        YPL1_1, 
1425        /**
1426         * Zed License.
1427         */
1428        ZED, 
1429        /**
1430         * Zend License v2.0.
1431         */
1432        ZEND2_0, 
1433        /**
1434         * Zimbra Public License v1.3.
1435         */
1436        ZIMBRA1_3, 
1437        /**
1438         * Zimbra Public License v1.4.
1439         */
1440        ZIMBRA1_4, 
1441        /**
1442         * zlib/libpng License with Acknowledgement.
1443         */
1444        ZLIBACKNOWLEDGEMENT, 
1445        /**
1446         * zlib License.
1447         */
1448        ZLIB, 
1449        /**
1450         * Zope Public License 1.1.
1451         */
1452        ZPL1_1, 
1453        /**
1454         * Zope Public License 2.0.
1455         */
1456        ZPL2_0, 
1457        /**
1458         * Zope Public License 2.1.
1459         */
1460        ZPL2_1, 
1461        /**
1462         * added to help the parsers with the generic types
1463         */
1464        NULL;
1465        public static SPDXLicense fromCode(String codeString) throws FHIRException {
1466            if (codeString == null || "".equals(codeString))
1467                return null;
1468        if ("not-open-source".equals(codeString))
1469          return NOTOPENSOURCE;
1470        if ("0BSD".equals(codeString))
1471          return _0BSD;
1472        if ("AAL".equals(codeString))
1473          return AAL;
1474        if ("Abstyles".equals(codeString))
1475          return ABSTYLES;
1476        if ("Adobe-2006".equals(codeString))
1477          return ADOBE2006;
1478        if ("Adobe-Glyph".equals(codeString))
1479          return ADOBEGLYPH;
1480        if ("ADSL".equals(codeString))
1481          return ADSL;
1482        if ("AFL-1.1".equals(codeString))
1483          return AFL1_1;
1484        if ("AFL-1.2".equals(codeString))
1485          return AFL1_2;
1486        if ("AFL-2.0".equals(codeString))
1487          return AFL2_0;
1488        if ("AFL-2.1".equals(codeString))
1489          return AFL2_1;
1490        if ("AFL-3.0".equals(codeString))
1491          return AFL3_0;
1492        if ("Afmparse".equals(codeString))
1493          return AFMPARSE;
1494        if ("AGPL-1.0-only".equals(codeString))
1495          return AGPL1_0ONLY;
1496        if ("AGPL-1.0-or-later".equals(codeString))
1497          return AGPL1_0ORLATER;
1498        if ("AGPL-3.0-only".equals(codeString))
1499          return AGPL3_0ONLY;
1500        if ("AGPL-3.0-or-later".equals(codeString))
1501          return AGPL3_0ORLATER;
1502        if ("Aladdin".equals(codeString))
1503          return ALADDIN;
1504        if ("AMDPLPA".equals(codeString))
1505          return AMDPLPA;
1506        if ("AML".equals(codeString))
1507          return AML;
1508        if ("AMPAS".equals(codeString))
1509          return AMPAS;
1510        if ("ANTLR-PD".equals(codeString))
1511          return ANTLRPD;
1512        if ("Apache-1.0".equals(codeString))
1513          return APACHE1_0;
1514        if ("Apache-1.1".equals(codeString))
1515          return APACHE1_1;
1516        if ("Apache-2.0".equals(codeString))
1517          return APACHE2_0;
1518        if ("APAFML".equals(codeString))
1519          return APAFML;
1520        if ("APL-1.0".equals(codeString))
1521          return APL1_0;
1522        if ("APSL-1.0".equals(codeString))
1523          return APSL1_0;
1524        if ("APSL-1.1".equals(codeString))
1525          return APSL1_1;
1526        if ("APSL-1.2".equals(codeString))
1527          return APSL1_2;
1528        if ("APSL-2.0".equals(codeString))
1529          return APSL2_0;
1530        if ("Artistic-1.0-cl8".equals(codeString))
1531          return ARTISTIC1_0CL8;
1532        if ("Artistic-1.0-Perl".equals(codeString))
1533          return ARTISTIC1_0PERL;
1534        if ("Artistic-1.0".equals(codeString))
1535          return ARTISTIC1_0;
1536        if ("Artistic-2.0".equals(codeString))
1537          return ARTISTIC2_0;
1538        if ("Bahyph".equals(codeString))
1539          return BAHYPH;
1540        if ("Barr".equals(codeString))
1541          return BARR;
1542        if ("Beerware".equals(codeString))
1543          return BEERWARE;
1544        if ("BitTorrent-1.0".equals(codeString))
1545          return BITTORRENT1_0;
1546        if ("BitTorrent-1.1".equals(codeString))
1547          return BITTORRENT1_1;
1548        if ("Borceux".equals(codeString))
1549          return BORCEUX;
1550        if ("BSD-1-Clause".equals(codeString))
1551          return BSD1CLAUSE;
1552        if ("BSD-2-Clause-FreeBSD".equals(codeString))
1553          return BSD2CLAUSEFREEBSD;
1554        if ("BSD-2-Clause-NetBSD".equals(codeString))
1555          return BSD2CLAUSENETBSD;
1556        if ("BSD-2-Clause-Patent".equals(codeString))
1557          return BSD2CLAUSEPATENT;
1558        if ("BSD-2-Clause".equals(codeString))
1559          return BSD2CLAUSE;
1560        if ("BSD-3-Clause-Attribution".equals(codeString))
1561          return BSD3CLAUSEATTRIBUTION;
1562        if ("BSD-3-Clause-Clear".equals(codeString))
1563          return BSD3CLAUSECLEAR;
1564        if ("BSD-3-Clause-LBNL".equals(codeString))
1565          return BSD3CLAUSELBNL;
1566        if ("BSD-3-Clause-No-Nuclear-License-2014".equals(codeString))
1567          return BSD3CLAUSENONUCLEARLICENSE2014;
1568        if ("BSD-3-Clause-No-Nuclear-License".equals(codeString))
1569          return BSD3CLAUSENONUCLEARLICENSE;
1570        if ("BSD-3-Clause-No-Nuclear-Warranty".equals(codeString))
1571          return BSD3CLAUSENONUCLEARWARRANTY;
1572        if ("BSD-3-Clause".equals(codeString))
1573          return BSD3CLAUSE;
1574        if ("BSD-4-Clause-UC".equals(codeString))
1575          return BSD4CLAUSEUC;
1576        if ("BSD-4-Clause".equals(codeString))
1577          return BSD4CLAUSE;
1578        if ("BSD-Protection".equals(codeString))
1579          return BSDPROTECTION;
1580        if ("BSD-Source-Code".equals(codeString))
1581          return BSDSOURCECODE;
1582        if ("BSL-1.0".equals(codeString))
1583          return BSL1_0;
1584        if ("bzip2-1.0.5".equals(codeString))
1585          return BZIP21_0_5;
1586        if ("bzip2-1.0.6".equals(codeString))
1587          return BZIP21_0_6;
1588        if ("Caldera".equals(codeString))
1589          return CALDERA;
1590        if ("CATOSL-1.1".equals(codeString))
1591          return CATOSL1_1;
1592        if ("CC-BY-1.0".equals(codeString))
1593          return CCBY1_0;
1594        if ("CC-BY-2.0".equals(codeString))
1595          return CCBY2_0;
1596        if ("CC-BY-2.5".equals(codeString))
1597          return CCBY2_5;
1598        if ("CC-BY-3.0".equals(codeString))
1599          return CCBY3_0;
1600        if ("CC-BY-4.0".equals(codeString))
1601          return CCBY4_0;
1602        if ("CC-BY-NC-1.0".equals(codeString))
1603          return CCBYNC1_0;
1604        if ("CC-BY-NC-2.0".equals(codeString))
1605          return CCBYNC2_0;
1606        if ("CC-BY-NC-2.5".equals(codeString))
1607          return CCBYNC2_5;
1608        if ("CC-BY-NC-3.0".equals(codeString))
1609          return CCBYNC3_0;
1610        if ("CC-BY-NC-4.0".equals(codeString))
1611          return CCBYNC4_0;
1612        if ("CC-BY-NC-ND-1.0".equals(codeString))
1613          return CCBYNCND1_0;
1614        if ("CC-BY-NC-ND-2.0".equals(codeString))
1615          return CCBYNCND2_0;
1616        if ("CC-BY-NC-ND-2.5".equals(codeString))
1617          return CCBYNCND2_5;
1618        if ("CC-BY-NC-ND-3.0".equals(codeString))
1619          return CCBYNCND3_0;
1620        if ("CC-BY-NC-ND-4.0".equals(codeString))
1621          return CCBYNCND4_0;
1622        if ("CC-BY-NC-SA-1.0".equals(codeString))
1623          return CCBYNCSA1_0;
1624        if ("CC-BY-NC-SA-2.0".equals(codeString))
1625          return CCBYNCSA2_0;
1626        if ("CC-BY-NC-SA-2.5".equals(codeString))
1627          return CCBYNCSA2_5;
1628        if ("CC-BY-NC-SA-3.0".equals(codeString))
1629          return CCBYNCSA3_0;
1630        if ("CC-BY-NC-SA-4.0".equals(codeString))
1631          return CCBYNCSA4_0;
1632        if ("CC-BY-ND-1.0".equals(codeString))
1633          return CCBYND1_0;
1634        if ("CC-BY-ND-2.0".equals(codeString))
1635          return CCBYND2_0;
1636        if ("CC-BY-ND-2.5".equals(codeString))
1637          return CCBYND2_5;
1638        if ("CC-BY-ND-3.0".equals(codeString))
1639          return CCBYND3_0;
1640        if ("CC-BY-ND-4.0".equals(codeString))
1641          return CCBYND4_0;
1642        if ("CC-BY-SA-1.0".equals(codeString))
1643          return CCBYSA1_0;
1644        if ("CC-BY-SA-2.0".equals(codeString))
1645          return CCBYSA2_0;
1646        if ("CC-BY-SA-2.5".equals(codeString))
1647          return CCBYSA2_5;
1648        if ("CC-BY-SA-3.0".equals(codeString))
1649          return CCBYSA3_0;
1650        if ("CC-BY-SA-4.0".equals(codeString))
1651          return CCBYSA4_0;
1652        if ("CC0-1.0".equals(codeString))
1653          return CC01_0;
1654        if ("CDDL-1.0".equals(codeString))
1655          return CDDL1_0;
1656        if ("CDDL-1.1".equals(codeString))
1657          return CDDL1_1;
1658        if ("CDLA-Permissive-1.0".equals(codeString))
1659          return CDLAPERMISSIVE1_0;
1660        if ("CDLA-Sharing-1.0".equals(codeString))
1661          return CDLASHARING1_0;
1662        if ("CECILL-1.0".equals(codeString))
1663          return CECILL1_0;
1664        if ("CECILL-1.1".equals(codeString))
1665          return CECILL1_1;
1666        if ("CECILL-2.0".equals(codeString))
1667          return CECILL2_0;
1668        if ("CECILL-2.1".equals(codeString))
1669          return CECILL2_1;
1670        if ("CECILL-B".equals(codeString))
1671          return CECILLB;
1672        if ("CECILL-C".equals(codeString))
1673          return CECILLC;
1674        if ("ClArtistic".equals(codeString))
1675          return CLARTISTIC;
1676        if ("CNRI-Jython".equals(codeString))
1677          return CNRIJYTHON;
1678        if ("CNRI-Python-GPL-Compatible".equals(codeString))
1679          return CNRIPYTHONGPLCOMPATIBLE;
1680        if ("CNRI-Python".equals(codeString))
1681          return CNRIPYTHON;
1682        if ("Condor-1.1".equals(codeString))
1683          return CONDOR1_1;
1684        if ("CPAL-1.0".equals(codeString))
1685          return CPAL1_0;
1686        if ("CPL-1.0".equals(codeString))
1687          return CPL1_0;
1688        if ("CPOL-1.02".equals(codeString))
1689          return CPOL1_02;
1690        if ("Crossword".equals(codeString))
1691          return CROSSWORD;
1692        if ("CrystalStacker".equals(codeString))
1693          return CRYSTALSTACKER;
1694        if ("CUA-OPL-1.0".equals(codeString))
1695          return CUAOPL1_0;
1696        if ("Cube".equals(codeString))
1697          return CUBE;
1698        if ("curl".equals(codeString))
1699          return CURL;
1700        if ("D-FSL-1.0".equals(codeString))
1701          return DFSL1_0;
1702        if ("diffmark".equals(codeString))
1703          return DIFFMARK;
1704        if ("DOC".equals(codeString))
1705          return DOC;
1706        if ("Dotseqn".equals(codeString))
1707          return DOTSEQN;
1708        if ("DSDP".equals(codeString))
1709          return DSDP;
1710        if ("dvipdfm".equals(codeString))
1711          return DVIPDFM;
1712        if ("ECL-1.0".equals(codeString))
1713          return ECL1_0;
1714        if ("ECL-2.0".equals(codeString))
1715          return ECL2_0;
1716        if ("EFL-1.0".equals(codeString))
1717          return EFL1_0;
1718        if ("EFL-2.0".equals(codeString))
1719          return EFL2_0;
1720        if ("eGenix".equals(codeString))
1721          return EGENIX;
1722        if ("Entessa".equals(codeString))
1723          return ENTESSA;
1724        if ("EPL-1.0".equals(codeString))
1725          return EPL1_0;
1726        if ("EPL-2.0".equals(codeString))
1727          return EPL2_0;
1728        if ("ErlPL-1.1".equals(codeString))
1729          return ERLPL1_1;
1730        if ("EUDatagrid".equals(codeString))
1731          return EUDATAGRID;
1732        if ("EUPL-1.0".equals(codeString))
1733          return EUPL1_0;
1734        if ("EUPL-1.1".equals(codeString))
1735          return EUPL1_1;
1736        if ("EUPL-1.2".equals(codeString))
1737          return EUPL1_2;
1738        if ("Eurosym".equals(codeString))
1739          return EUROSYM;
1740        if ("Fair".equals(codeString))
1741          return FAIR;
1742        if ("Frameworx-1.0".equals(codeString))
1743          return FRAMEWORX1_0;
1744        if ("FreeImage".equals(codeString))
1745          return FREEIMAGE;
1746        if ("FSFAP".equals(codeString))
1747          return FSFAP;
1748        if ("FSFUL".equals(codeString))
1749          return FSFUL;
1750        if ("FSFULLR".equals(codeString))
1751          return FSFULLR;
1752        if ("FTL".equals(codeString))
1753          return FTL;
1754        if ("GFDL-1.1-only".equals(codeString))
1755          return GFDL1_1ONLY;
1756        if ("GFDL-1.1-or-later".equals(codeString))
1757          return GFDL1_1ORLATER;
1758        if ("GFDL-1.2-only".equals(codeString))
1759          return GFDL1_2ONLY;
1760        if ("GFDL-1.2-or-later".equals(codeString))
1761          return GFDL1_2ORLATER;
1762        if ("GFDL-1.3-only".equals(codeString))
1763          return GFDL1_3ONLY;
1764        if ("GFDL-1.3-or-later".equals(codeString))
1765          return GFDL1_3ORLATER;
1766        if ("Giftware".equals(codeString))
1767          return GIFTWARE;
1768        if ("GL2PS".equals(codeString))
1769          return GL2PS;
1770        if ("Glide".equals(codeString))
1771          return GLIDE;
1772        if ("Glulxe".equals(codeString))
1773          return GLULXE;
1774        if ("gnuplot".equals(codeString))
1775          return GNUPLOT;
1776        if ("GPL-1.0-only".equals(codeString))
1777          return GPL1_0ONLY;
1778        if ("GPL-1.0-or-later".equals(codeString))
1779          return GPL1_0ORLATER;
1780        if ("GPL-2.0-only".equals(codeString))
1781          return GPL2_0ONLY;
1782        if ("GPL-2.0-or-later".equals(codeString))
1783          return GPL2_0ORLATER;
1784        if ("GPL-3.0-only".equals(codeString))
1785          return GPL3_0ONLY;
1786        if ("GPL-3.0-or-later".equals(codeString))
1787          return GPL3_0ORLATER;
1788        if ("gSOAP-1.3b".equals(codeString))
1789          return GSOAP1_3B;
1790        if ("HaskellReport".equals(codeString))
1791          return HASKELLREPORT;
1792        if ("HPND".equals(codeString))
1793          return HPND;
1794        if ("IBM-pibs".equals(codeString))
1795          return IBMPIBS;
1796        if ("ICU".equals(codeString))
1797          return ICU;
1798        if ("IJG".equals(codeString))
1799          return IJG;
1800        if ("ImageMagick".equals(codeString))
1801          return IMAGEMAGICK;
1802        if ("iMatix".equals(codeString))
1803          return IMATIX;
1804        if ("Imlib2".equals(codeString))
1805          return IMLIB2;
1806        if ("Info-ZIP".equals(codeString))
1807          return INFOZIP;
1808        if ("Intel-ACPI".equals(codeString))
1809          return INTELACPI;
1810        if ("Intel".equals(codeString))
1811          return INTEL;
1812        if ("Interbase-1.0".equals(codeString))
1813          return INTERBASE1_0;
1814        if ("IPA".equals(codeString))
1815          return IPA;
1816        if ("IPL-1.0".equals(codeString))
1817          return IPL1_0;
1818        if ("ISC".equals(codeString))
1819          return ISC;
1820        if ("JasPer-2.0".equals(codeString))
1821          return JASPER2_0;
1822        if ("JSON".equals(codeString))
1823          return JSON;
1824        if ("LAL-1.2".equals(codeString))
1825          return LAL1_2;
1826        if ("LAL-1.3".equals(codeString))
1827          return LAL1_3;
1828        if ("Latex2e".equals(codeString))
1829          return LATEX2E;
1830        if ("Leptonica".equals(codeString))
1831          return LEPTONICA;
1832        if ("LGPL-2.0-only".equals(codeString))
1833          return LGPL2_0ONLY;
1834        if ("LGPL-2.0-or-later".equals(codeString))
1835          return LGPL2_0ORLATER;
1836        if ("LGPL-2.1-only".equals(codeString))
1837          return LGPL2_1ONLY;
1838        if ("LGPL-2.1-or-later".equals(codeString))
1839          return LGPL2_1ORLATER;
1840        if ("LGPL-3.0-only".equals(codeString))
1841          return LGPL3_0ONLY;
1842        if ("LGPL-3.0-or-later".equals(codeString))
1843          return LGPL3_0ORLATER;
1844        if ("LGPLLR".equals(codeString))
1845          return LGPLLR;
1846        if ("Libpng".equals(codeString))
1847          return LIBPNG;
1848        if ("libtiff".equals(codeString))
1849          return LIBTIFF;
1850        if ("LiLiQ-P-1.1".equals(codeString))
1851          return LILIQP1_1;
1852        if ("LiLiQ-R-1.1".equals(codeString))
1853          return LILIQR1_1;
1854        if ("LiLiQ-Rplus-1.1".equals(codeString))
1855          return LILIQRPLUS1_1;
1856        if ("Linux-OpenIB".equals(codeString))
1857          return LINUXOPENIB;
1858        if ("LPL-1.0".equals(codeString))
1859          return LPL1_0;
1860        if ("LPL-1.02".equals(codeString))
1861          return LPL1_02;
1862        if ("LPPL-1.0".equals(codeString))
1863          return LPPL1_0;
1864        if ("LPPL-1.1".equals(codeString))
1865          return LPPL1_1;
1866        if ("LPPL-1.2".equals(codeString))
1867          return LPPL1_2;
1868        if ("LPPL-1.3a".equals(codeString))
1869          return LPPL1_3A;
1870        if ("LPPL-1.3c".equals(codeString))
1871          return LPPL1_3C;
1872        if ("MakeIndex".equals(codeString))
1873          return MAKEINDEX;
1874        if ("MirOS".equals(codeString))
1875          return MIROS;
1876        if ("MIT-0".equals(codeString))
1877          return MIT0;
1878        if ("MIT-advertising".equals(codeString))
1879          return MITADVERTISING;
1880        if ("MIT-CMU".equals(codeString))
1881          return MITCMU;
1882        if ("MIT-enna".equals(codeString))
1883          return MITENNA;
1884        if ("MIT-feh".equals(codeString))
1885          return MITFEH;
1886        if ("MIT".equals(codeString))
1887          return MIT;
1888        if ("MITNFA".equals(codeString))
1889          return MITNFA;
1890        if ("Motosoto".equals(codeString))
1891          return MOTOSOTO;
1892        if ("mpich2".equals(codeString))
1893          return MPICH2;
1894        if ("MPL-1.0".equals(codeString))
1895          return MPL1_0;
1896        if ("MPL-1.1".equals(codeString))
1897          return MPL1_1;
1898        if ("MPL-2.0-no-copyleft-exception".equals(codeString))
1899          return MPL2_0NOCOPYLEFTEXCEPTION;
1900        if ("MPL-2.0".equals(codeString))
1901          return MPL2_0;
1902        if ("MS-PL".equals(codeString))
1903          return MSPL;
1904        if ("MS-RL".equals(codeString))
1905          return MSRL;
1906        if ("MTLL".equals(codeString))
1907          return MTLL;
1908        if ("Multics".equals(codeString))
1909          return MULTICS;
1910        if ("Mup".equals(codeString))
1911          return MUP;
1912        if ("NASA-1.3".equals(codeString))
1913          return NASA1_3;
1914        if ("Naumen".equals(codeString))
1915          return NAUMEN;
1916        if ("NBPL-1.0".equals(codeString))
1917          return NBPL1_0;
1918        if ("NCSA".equals(codeString))
1919          return NCSA;
1920        if ("Net-SNMP".equals(codeString))
1921          return NETSNMP;
1922        if ("NetCDF".equals(codeString))
1923          return NETCDF;
1924        if ("Newsletr".equals(codeString))
1925          return NEWSLETR;
1926        if ("NGPL".equals(codeString))
1927          return NGPL;
1928        if ("NLOD-1.0".equals(codeString))
1929          return NLOD1_0;
1930        if ("NLPL".equals(codeString))
1931          return NLPL;
1932        if ("Nokia".equals(codeString))
1933          return NOKIA;
1934        if ("NOSL".equals(codeString))
1935          return NOSL;
1936        if ("Noweb".equals(codeString))
1937          return NOWEB;
1938        if ("NPL-1.0".equals(codeString))
1939          return NPL1_0;
1940        if ("NPL-1.1".equals(codeString))
1941          return NPL1_1;
1942        if ("NPOSL-3.0".equals(codeString))
1943          return NPOSL3_0;
1944        if ("NRL".equals(codeString))
1945          return NRL;
1946        if ("NTP".equals(codeString))
1947          return NTP;
1948        if ("OCCT-PL".equals(codeString))
1949          return OCCTPL;
1950        if ("OCLC-2.0".equals(codeString))
1951          return OCLC2_0;
1952        if ("ODbL-1.0".equals(codeString))
1953          return ODBL1_0;
1954        if ("OFL-1.0".equals(codeString))
1955          return OFL1_0;
1956        if ("OFL-1.1".equals(codeString))
1957          return OFL1_1;
1958        if ("OGTSL".equals(codeString))
1959          return OGTSL;
1960        if ("OLDAP-1.1".equals(codeString))
1961          return OLDAP1_1;
1962        if ("OLDAP-1.2".equals(codeString))
1963          return OLDAP1_2;
1964        if ("OLDAP-1.3".equals(codeString))
1965          return OLDAP1_3;
1966        if ("OLDAP-1.4".equals(codeString))
1967          return OLDAP1_4;
1968        if ("OLDAP-2.0.1".equals(codeString))
1969          return OLDAP2_0_1;
1970        if ("OLDAP-2.0".equals(codeString))
1971          return OLDAP2_0;
1972        if ("OLDAP-2.1".equals(codeString))
1973          return OLDAP2_1;
1974        if ("OLDAP-2.2.1".equals(codeString))
1975          return OLDAP2_2_1;
1976        if ("OLDAP-2.2.2".equals(codeString))
1977          return OLDAP2_2_2;
1978        if ("OLDAP-2.2".equals(codeString))
1979          return OLDAP2_2;
1980        if ("OLDAP-2.3".equals(codeString))
1981          return OLDAP2_3;
1982        if ("OLDAP-2.4".equals(codeString))
1983          return OLDAP2_4;
1984        if ("OLDAP-2.5".equals(codeString))
1985          return OLDAP2_5;
1986        if ("OLDAP-2.6".equals(codeString))
1987          return OLDAP2_6;
1988        if ("OLDAP-2.7".equals(codeString))
1989          return OLDAP2_7;
1990        if ("OLDAP-2.8".equals(codeString))
1991          return OLDAP2_8;
1992        if ("OML".equals(codeString))
1993          return OML;
1994        if ("OpenSSL".equals(codeString))
1995          return OPENSSL;
1996        if ("OPL-1.0".equals(codeString))
1997          return OPL1_0;
1998        if ("OSET-PL-2.1".equals(codeString))
1999          return OSETPL2_1;
2000        if ("OSL-1.0".equals(codeString))
2001          return OSL1_0;
2002        if ("OSL-1.1".equals(codeString))
2003          return OSL1_1;
2004        if ("OSL-2.0".equals(codeString))
2005          return OSL2_0;
2006        if ("OSL-2.1".equals(codeString))
2007          return OSL2_1;
2008        if ("OSL-3.0".equals(codeString))
2009          return OSL3_0;
2010        if ("PDDL-1.0".equals(codeString))
2011          return PDDL1_0;
2012        if ("PHP-3.0".equals(codeString))
2013          return PHP3_0;
2014        if ("PHP-3.01".equals(codeString))
2015          return PHP3_01;
2016        if ("Plexus".equals(codeString))
2017          return PLEXUS;
2018        if ("PostgreSQL".equals(codeString))
2019          return POSTGRESQL;
2020        if ("psfrag".equals(codeString))
2021          return PSFRAG;
2022        if ("psutils".equals(codeString))
2023          return PSUTILS;
2024        if ("Python-2.0".equals(codeString))
2025          return PYTHON2_0;
2026        if ("Qhull".equals(codeString))
2027          return QHULL;
2028        if ("QPL-1.0".equals(codeString))
2029          return QPL1_0;
2030        if ("Rdisc".equals(codeString))
2031          return RDISC;
2032        if ("RHeCos-1.1".equals(codeString))
2033          return RHECOS1_1;
2034        if ("RPL-1.1".equals(codeString))
2035          return RPL1_1;
2036        if ("RPL-1.5".equals(codeString))
2037          return RPL1_5;
2038        if ("RPSL-1.0".equals(codeString))
2039          return RPSL1_0;
2040        if ("RSA-MD".equals(codeString))
2041          return RSAMD;
2042        if ("RSCPL".equals(codeString))
2043          return RSCPL;
2044        if ("Ruby".equals(codeString))
2045          return RUBY;
2046        if ("SAX-PD".equals(codeString))
2047          return SAXPD;
2048        if ("Saxpath".equals(codeString))
2049          return SAXPATH;
2050        if ("SCEA".equals(codeString))
2051          return SCEA;
2052        if ("Sendmail".equals(codeString))
2053          return SENDMAIL;
2054        if ("SGI-B-1.0".equals(codeString))
2055          return SGIB1_0;
2056        if ("SGI-B-1.1".equals(codeString))
2057          return SGIB1_1;
2058        if ("SGI-B-2.0".equals(codeString))
2059          return SGIB2_0;
2060        if ("SimPL-2.0".equals(codeString))
2061          return SIMPL2_0;
2062        if ("SISSL-1.2".equals(codeString))
2063          return SISSL1_2;
2064        if ("SISSL".equals(codeString))
2065          return SISSL;
2066        if ("Sleepycat".equals(codeString))
2067          return SLEEPYCAT;
2068        if ("SMLNJ".equals(codeString))
2069          return SMLNJ;
2070        if ("SMPPL".equals(codeString))
2071          return SMPPL;
2072        if ("SNIA".equals(codeString))
2073          return SNIA;
2074        if ("Spencer-86".equals(codeString))
2075          return SPENCER86;
2076        if ("Spencer-94".equals(codeString))
2077          return SPENCER94;
2078        if ("Spencer-99".equals(codeString))
2079          return SPENCER99;
2080        if ("SPL-1.0".equals(codeString))
2081          return SPL1_0;
2082        if ("SugarCRM-1.1.3".equals(codeString))
2083          return SUGARCRM1_1_3;
2084        if ("SWL".equals(codeString))
2085          return SWL;
2086        if ("TCL".equals(codeString))
2087          return TCL;
2088        if ("TCP-wrappers".equals(codeString))
2089          return TCPWRAPPERS;
2090        if ("TMate".equals(codeString))
2091          return TMATE;
2092        if ("TORQUE-1.1".equals(codeString))
2093          return TORQUE1_1;
2094        if ("TOSL".equals(codeString))
2095          return TOSL;
2096        if ("Unicode-DFS-2015".equals(codeString))
2097          return UNICODEDFS2015;
2098        if ("Unicode-DFS-2016".equals(codeString))
2099          return UNICODEDFS2016;
2100        if ("Unicode-TOU".equals(codeString))
2101          return UNICODETOU;
2102        if ("Unlicense".equals(codeString))
2103          return UNLICENSE;
2104        if ("UPL-1.0".equals(codeString))
2105          return UPL1_0;
2106        if ("Vim".equals(codeString))
2107          return VIM;
2108        if ("VOSTROM".equals(codeString))
2109          return VOSTROM;
2110        if ("VSL-1.0".equals(codeString))
2111          return VSL1_0;
2112        if ("W3C-19980720".equals(codeString))
2113          return W3C19980720;
2114        if ("W3C-20150513".equals(codeString))
2115          return W3C20150513;
2116        if ("W3C".equals(codeString))
2117          return W3C;
2118        if ("Watcom-1.0".equals(codeString))
2119          return WATCOM1_0;
2120        if ("Wsuipa".equals(codeString))
2121          return WSUIPA;
2122        if ("WTFPL".equals(codeString))
2123          return WTFPL;
2124        if ("X11".equals(codeString))
2125          return X11;
2126        if ("Xerox".equals(codeString))
2127          return XEROX;
2128        if ("XFree86-1.1".equals(codeString))
2129          return XFREE861_1;
2130        if ("xinetd".equals(codeString))
2131          return XINETD;
2132        if ("Xnet".equals(codeString))
2133          return XNET;
2134        if ("xpp".equals(codeString))
2135          return XPP;
2136        if ("XSkat".equals(codeString))
2137          return XSKAT;
2138        if ("YPL-1.0".equals(codeString))
2139          return YPL1_0;
2140        if ("YPL-1.1".equals(codeString))
2141          return YPL1_1;
2142        if ("Zed".equals(codeString))
2143          return ZED;
2144        if ("Zend-2.0".equals(codeString))
2145          return ZEND2_0;
2146        if ("Zimbra-1.3".equals(codeString))
2147          return ZIMBRA1_3;
2148        if ("Zimbra-1.4".equals(codeString))
2149          return ZIMBRA1_4;
2150        if ("zlib-acknowledgement".equals(codeString))
2151          return ZLIBACKNOWLEDGEMENT;
2152        if ("Zlib".equals(codeString))
2153          return ZLIB;
2154        if ("ZPL-1.1".equals(codeString))
2155          return ZPL1_1;
2156        if ("ZPL-2.0".equals(codeString))
2157          return ZPL2_0;
2158        if ("ZPL-2.1".equals(codeString))
2159          return ZPL2_1;
2160        if (Configuration.isAcceptInvalidEnums())
2161          return null;
2162        else
2163          throw new FHIRException("Unknown SPDXLicense code '"+codeString+"'");
2164        }
2165        public String toCode() {
2166          switch (this) {
2167            case NOTOPENSOURCE: return "not-open-source";
2168            case _0BSD: return "0BSD";
2169            case AAL: return "AAL";
2170            case ABSTYLES: return "Abstyles";
2171            case ADOBE2006: return "Adobe-2006";
2172            case ADOBEGLYPH: return "Adobe-Glyph";
2173            case ADSL: return "ADSL";
2174            case AFL1_1: return "AFL-1.1";
2175            case AFL1_2: return "AFL-1.2";
2176            case AFL2_0: return "AFL-2.0";
2177            case AFL2_1: return "AFL-2.1";
2178            case AFL3_0: return "AFL-3.0";
2179            case AFMPARSE: return "Afmparse";
2180            case AGPL1_0ONLY: return "AGPL-1.0-only";
2181            case AGPL1_0ORLATER: return "AGPL-1.0-or-later";
2182            case AGPL3_0ONLY: return "AGPL-3.0-only";
2183            case AGPL3_0ORLATER: return "AGPL-3.0-or-later";
2184            case ALADDIN: return "Aladdin";
2185            case AMDPLPA: return "AMDPLPA";
2186            case AML: return "AML";
2187            case AMPAS: return "AMPAS";
2188            case ANTLRPD: return "ANTLR-PD";
2189            case APACHE1_0: return "Apache-1.0";
2190            case APACHE1_1: return "Apache-1.1";
2191            case APACHE2_0: return "Apache-2.0";
2192            case APAFML: return "APAFML";
2193            case APL1_0: return "APL-1.0";
2194            case APSL1_0: return "APSL-1.0";
2195            case APSL1_1: return "APSL-1.1";
2196            case APSL1_2: return "APSL-1.2";
2197            case APSL2_0: return "APSL-2.0";
2198            case ARTISTIC1_0CL8: return "Artistic-1.0-cl8";
2199            case ARTISTIC1_0PERL: return "Artistic-1.0-Perl";
2200            case ARTISTIC1_0: return "Artistic-1.0";
2201            case ARTISTIC2_0: return "Artistic-2.0";
2202            case BAHYPH: return "Bahyph";
2203            case BARR: return "Barr";
2204            case BEERWARE: return "Beerware";
2205            case BITTORRENT1_0: return "BitTorrent-1.0";
2206            case BITTORRENT1_1: return "BitTorrent-1.1";
2207            case BORCEUX: return "Borceux";
2208            case BSD1CLAUSE: return "BSD-1-Clause";
2209            case BSD2CLAUSEFREEBSD: return "BSD-2-Clause-FreeBSD";
2210            case BSD2CLAUSENETBSD: return "BSD-2-Clause-NetBSD";
2211            case BSD2CLAUSEPATENT: return "BSD-2-Clause-Patent";
2212            case BSD2CLAUSE: return "BSD-2-Clause";
2213            case BSD3CLAUSEATTRIBUTION: return "BSD-3-Clause-Attribution";
2214            case BSD3CLAUSECLEAR: return "BSD-3-Clause-Clear";
2215            case BSD3CLAUSELBNL: return "BSD-3-Clause-LBNL";
2216            case BSD3CLAUSENONUCLEARLICENSE2014: return "BSD-3-Clause-No-Nuclear-License-2014";
2217            case BSD3CLAUSENONUCLEARLICENSE: return "BSD-3-Clause-No-Nuclear-License";
2218            case BSD3CLAUSENONUCLEARWARRANTY: return "BSD-3-Clause-No-Nuclear-Warranty";
2219            case BSD3CLAUSE: return "BSD-3-Clause";
2220            case BSD4CLAUSEUC: return "BSD-4-Clause-UC";
2221            case BSD4CLAUSE: return "BSD-4-Clause";
2222            case BSDPROTECTION: return "BSD-Protection";
2223            case BSDSOURCECODE: return "BSD-Source-Code";
2224            case BSL1_0: return "BSL-1.0";
2225            case BZIP21_0_5: return "bzip2-1.0.5";
2226            case BZIP21_0_6: return "bzip2-1.0.6";
2227            case CALDERA: return "Caldera";
2228            case CATOSL1_1: return "CATOSL-1.1";
2229            case CCBY1_0: return "CC-BY-1.0";
2230            case CCBY2_0: return "CC-BY-2.0";
2231            case CCBY2_5: return "CC-BY-2.5";
2232            case CCBY3_0: return "CC-BY-3.0";
2233            case CCBY4_0: return "CC-BY-4.0";
2234            case CCBYNC1_0: return "CC-BY-NC-1.0";
2235            case CCBYNC2_0: return "CC-BY-NC-2.0";
2236            case CCBYNC2_5: return "CC-BY-NC-2.5";
2237            case CCBYNC3_0: return "CC-BY-NC-3.0";
2238            case CCBYNC4_0: return "CC-BY-NC-4.0";
2239            case CCBYNCND1_0: return "CC-BY-NC-ND-1.0";
2240            case CCBYNCND2_0: return "CC-BY-NC-ND-2.0";
2241            case CCBYNCND2_5: return "CC-BY-NC-ND-2.5";
2242            case CCBYNCND3_0: return "CC-BY-NC-ND-3.0";
2243            case CCBYNCND4_0: return "CC-BY-NC-ND-4.0";
2244            case CCBYNCSA1_0: return "CC-BY-NC-SA-1.0";
2245            case CCBYNCSA2_0: return "CC-BY-NC-SA-2.0";
2246            case CCBYNCSA2_5: return "CC-BY-NC-SA-2.5";
2247            case CCBYNCSA3_0: return "CC-BY-NC-SA-3.0";
2248            case CCBYNCSA4_0: return "CC-BY-NC-SA-4.0";
2249            case CCBYND1_0: return "CC-BY-ND-1.0";
2250            case CCBYND2_0: return "CC-BY-ND-2.0";
2251            case CCBYND2_5: return "CC-BY-ND-2.5";
2252            case CCBYND3_0: return "CC-BY-ND-3.0";
2253            case CCBYND4_0: return "CC-BY-ND-4.0";
2254            case CCBYSA1_0: return "CC-BY-SA-1.0";
2255            case CCBYSA2_0: return "CC-BY-SA-2.0";
2256            case CCBYSA2_5: return "CC-BY-SA-2.5";
2257            case CCBYSA3_0: return "CC-BY-SA-3.0";
2258            case CCBYSA4_0: return "CC-BY-SA-4.0";
2259            case CC01_0: return "CC0-1.0";
2260            case CDDL1_0: return "CDDL-1.0";
2261            case CDDL1_1: return "CDDL-1.1";
2262            case CDLAPERMISSIVE1_0: return "CDLA-Permissive-1.0";
2263            case CDLASHARING1_0: return "CDLA-Sharing-1.0";
2264            case CECILL1_0: return "CECILL-1.0";
2265            case CECILL1_1: return "CECILL-1.1";
2266            case CECILL2_0: return "CECILL-2.0";
2267            case CECILL2_1: return "CECILL-2.1";
2268            case CECILLB: return "CECILL-B";
2269            case CECILLC: return "CECILL-C";
2270            case CLARTISTIC: return "ClArtistic";
2271            case CNRIJYTHON: return "CNRI-Jython";
2272            case CNRIPYTHONGPLCOMPATIBLE: return "CNRI-Python-GPL-Compatible";
2273            case CNRIPYTHON: return "CNRI-Python";
2274            case CONDOR1_1: return "Condor-1.1";
2275            case CPAL1_0: return "CPAL-1.0";
2276            case CPL1_0: return "CPL-1.0";
2277            case CPOL1_02: return "CPOL-1.02";
2278            case CROSSWORD: return "Crossword";
2279            case CRYSTALSTACKER: return "CrystalStacker";
2280            case CUAOPL1_0: return "CUA-OPL-1.0";
2281            case CUBE: return "Cube";
2282            case CURL: return "curl";
2283            case DFSL1_0: return "D-FSL-1.0";
2284            case DIFFMARK: return "diffmark";
2285            case DOC: return "DOC";
2286            case DOTSEQN: return "Dotseqn";
2287            case DSDP: return "DSDP";
2288            case DVIPDFM: return "dvipdfm";
2289            case ECL1_0: return "ECL-1.0";
2290            case ECL2_0: return "ECL-2.0";
2291            case EFL1_0: return "EFL-1.0";
2292            case EFL2_0: return "EFL-2.0";
2293            case EGENIX: return "eGenix";
2294            case ENTESSA: return "Entessa";
2295            case EPL1_0: return "EPL-1.0";
2296            case EPL2_0: return "EPL-2.0";
2297            case ERLPL1_1: return "ErlPL-1.1";
2298            case EUDATAGRID: return "EUDatagrid";
2299            case EUPL1_0: return "EUPL-1.0";
2300            case EUPL1_1: return "EUPL-1.1";
2301            case EUPL1_2: return "EUPL-1.2";
2302            case EUROSYM: return "Eurosym";
2303            case FAIR: return "Fair";
2304            case FRAMEWORX1_0: return "Frameworx-1.0";
2305            case FREEIMAGE: return "FreeImage";
2306            case FSFAP: return "FSFAP";
2307            case FSFUL: return "FSFUL";
2308            case FSFULLR: return "FSFULLR";
2309            case FTL: return "FTL";
2310            case GFDL1_1ONLY: return "GFDL-1.1-only";
2311            case GFDL1_1ORLATER: return "GFDL-1.1-or-later";
2312            case GFDL1_2ONLY: return "GFDL-1.2-only";
2313            case GFDL1_2ORLATER: return "GFDL-1.2-or-later";
2314            case GFDL1_3ONLY: return "GFDL-1.3-only";
2315            case GFDL1_3ORLATER: return "GFDL-1.3-or-later";
2316            case GIFTWARE: return "Giftware";
2317            case GL2PS: return "GL2PS";
2318            case GLIDE: return "Glide";
2319            case GLULXE: return "Glulxe";
2320            case GNUPLOT: return "gnuplot";
2321            case GPL1_0ONLY: return "GPL-1.0-only";
2322            case GPL1_0ORLATER: return "GPL-1.0-or-later";
2323            case GPL2_0ONLY: return "GPL-2.0-only";
2324            case GPL2_0ORLATER: return "GPL-2.0-or-later";
2325            case GPL3_0ONLY: return "GPL-3.0-only";
2326            case GPL3_0ORLATER: return "GPL-3.0-or-later";
2327            case GSOAP1_3B: return "gSOAP-1.3b";
2328            case HASKELLREPORT: return "HaskellReport";
2329            case HPND: return "HPND";
2330            case IBMPIBS: return "IBM-pibs";
2331            case ICU: return "ICU";
2332            case IJG: return "IJG";
2333            case IMAGEMAGICK: return "ImageMagick";
2334            case IMATIX: return "iMatix";
2335            case IMLIB2: return "Imlib2";
2336            case INFOZIP: return "Info-ZIP";
2337            case INTELACPI: return "Intel-ACPI";
2338            case INTEL: return "Intel";
2339            case INTERBASE1_0: return "Interbase-1.0";
2340            case IPA: return "IPA";
2341            case IPL1_0: return "IPL-1.0";
2342            case ISC: return "ISC";
2343            case JASPER2_0: return "JasPer-2.0";
2344            case JSON: return "JSON";
2345            case LAL1_2: return "LAL-1.2";
2346            case LAL1_3: return "LAL-1.3";
2347            case LATEX2E: return "Latex2e";
2348            case LEPTONICA: return "Leptonica";
2349            case LGPL2_0ONLY: return "LGPL-2.0-only";
2350            case LGPL2_0ORLATER: return "LGPL-2.0-or-later";
2351            case LGPL2_1ONLY: return "LGPL-2.1-only";
2352            case LGPL2_1ORLATER: return "LGPL-2.1-or-later";
2353            case LGPL3_0ONLY: return "LGPL-3.0-only";
2354            case LGPL3_0ORLATER: return "LGPL-3.0-or-later";
2355            case LGPLLR: return "LGPLLR";
2356            case LIBPNG: return "Libpng";
2357            case LIBTIFF: return "libtiff";
2358            case LILIQP1_1: return "LiLiQ-P-1.1";
2359            case LILIQR1_1: return "LiLiQ-R-1.1";
2360            case LILIQRPLUS1_1: return "LiLiQ-Rplus-1.1";
2361            case LINUXOPENIB: return "Linux-OpenIB";
2362            case LPL1_0: return "LPL-1.0";
2363            case LPL1_02: return "LPL-1.02";
2364            case LPPL1_0: return "LPPL-1.0";
2365            case LPPL1_1: return "LPPL-1.1";
2366            case LPPL1_2: return "LPPL-1.2";
2367            case LPPL1_3A: return "LPPL-1.3a";
2368            case LPPL1_3C: return "LPPL-1.3c";
2369            case MAKEINDEX: return "MakeIndex";
2370            case MIROS: return "MirOS";
2371            case MIT0: return "MIT-0";
2372            case MITADVERTISING: return "MIT-advertising";
2373            case MITCMU: return "MIT-CMU";
2374            case MITENNA: return "MIT-enna";
2375            case MITFEH: return "MIT-feh";
2376            case MIT: return "MIT";
2377            case MITNFA: return "MITNFA";
2378            case MOTOSOTO: return "Motosoto";
2379            case MPICH2: return "mpich2";
2380            case MPL1_0: return "MPL-1.0";
2381            case MPL1_1: return "MPL-1.1";
2382            case MPL2_0NOCOPYLEFTEXCEPTION: return "MPL-2.0-no-copyleft-exception";
2383            case MPL2_0: return "MPL-2.0";
2384            case MSPL: return "MS-PL";
2385            case MSRL: return "MS-RL";
2386            case MTLL: return "MTLL";
2387            case MULTICS: return "Multics";
2388            case MUP: return "Mup";
2389            case NASA1_3: return "NASA-1.3";
2390            case NAUMEN: return "Naumen";
2391            case NBPL1_0: return "NBPL-1.0";
2392            case NCSA: return "NCSA";
2393            case NETSNMP: return "Net-SNMP";
2394            case NETCDF: return "NetCDF";
2395            case NEWSLETR: return "Newsletr";
2396            case NGPL: return "NGPL";
2397            case NLOD1_0: return "NLOD-1.0";
2398            case NLPL: return "NLPL";
2399            case NOKIA: return "Nokia";
2400            case NOSL: return "NOSL";
2401            case NOWEB: return "Noweb";
2402            case NPL1_0: return "NPL-1.0";
2403            case NPL1_1: return "NPL-1.1";
2404            case NPOSL3_0: return "NPOSL-3.0";
2405            case NRL: return "NRL";
2406            case NTP: return "NTP";
2407            case OCCTPL: return "OCCT-PL";
2408            case OCLC2_0: return "OCLC-2.0";
2409            case ODBL1_0: return "ODbL-1.0";
2410            case OFL1_0: return "OFL-1.0";
2411            case OFL1_1: return "OFL-1.1";
2412            case OGTSL: return "OGTSL";
2413            case OLDAP1_1: return "OLDAP-1.1";
2414            case OLDAP1_2: return "OLDAP-1.2";
2415            case OLDAP1_3: return "OLDAP-1.3";
2416            case OLDAP1_4: return "OLDAP-1.4";
2417            case OLDAP2_0_1: return "OLDAP-2.0.1";
2418            case OLDAP2_0: return "OLDAP-2.0";
2419            case OLDAP2_1: return "OLDAP-2.1";
2420            case OLDAP2_2_1: return "OLDAP-2.2.1";
2421            case OLDAP2_2_2: return "OLDAP-2.2.2";
2422            case OLDAP2_2: return "OLDAP-2.2";
2423            case OLDAP2_3: return "OLDAP-2.3";
2424            case OLDAP2_4: return "OLDAP-2.4";
2425            case OLDAP2_5: return "OLDAP-2.5";
2426            case OLDAP2_6: return "OLDAP-2.6";
2427            case OLDAP2_7: return "OLDAP-2.7";
2428            case OLDAP2_8: return "OLDAP-2.8";
2429            case OML: return "OML";
2430            case OPENSSL: return "OpenSSL";
2431            case OPL1_0: return "OPL-1.0";
2432            case OSETPL2_1: return "OSET-PL-2.1";
2433            case OSL1_0: return "OSL-1.0";
2434            case OSL1_1: return "OSL-1.1";
2435            case OSL2_0: return "OSL-2.0";
2436            case OSL2_1: return "OSL-2.1";
2437            case OSL3_0: return "OSL-3.0";
2438            case PDDL1_0: return "PDDL-1.0";
2439            case PHP3_0: return "PHP-3.0";
2440            case PHP3_01: return "PHP-3.01";
2441            case PLEXUS: return "Plexus";
2442            case POSTGRESQL: return "PostgreSQL";
2443            case PSFRAG: return "psfrag";
2444            case PSUTILS: return "psutils";
2445            case PYTHON2_0: return "Python-2.0";
2446            case QHULL: return "Qhull";
2447            case QPL1_0: return "QPL-1.0";
2448            case RDISC: return "Rdisc";
2449            case RHECOS1_1: return "RHeCos-1.1";
2450            case RPL1_1: return "RPL-1.1";
2451            case RPL1_5: return "RPL-1.5";
2452            case RPSL1_0: return "RPSL-1.0";
2453            case RSAMD: return "RSA-MD";
2454            case RSCPL: return "RSCPL";
2455            case RUBY: return "Ruby";
2456            case SAXPD: return "SAX-PD";
2457            case SAXPATH: return "Saxpath";
2458            case SCEA: return "SCEA";
2459            case SENDMAIL: return "Sendmail";
2460            case SGIB1_0: return "SGI-B-1.0";
2461            case SGIB1_1: return "SGI-B-1.1";
2462            case SGIB2_0: return "SGI-B-2.0";
2463            case SIMPL2_0: return "SimPL-2.0";
2464            case SISSL1_2: return "SISSL-1.2";
2465            case SISSL: return "SISSL";
2466            case SLEEPYCAT: return "Sleepycat";
2467            case SMLNJ: return "SMLNJ";
2468            case SMPPL: return "SMPPL";
2469            case SNIA: return "SNIA";
2470            case SPENCER86: return "Spencer-86";
2471            case SPENCER94: return "Spencer-94";
2472            case SPENCER99: return "Spencer-99";
2473            case SPL1_0: return "SPL-1.0";
2474            case SUGARCRM1_1_3: return "SugarCRM-1.1.3";
2475            case SWL: return "SWL";
2476            case TCL: return "TCL";
2477            case TCPWRAPPERS: return "TCP-wrappers";
2478            case TMATE: return "TMate";
2479            case TORQUE1_1: return "TORQUE-1.1";
2480            case TOSL: return "TOSL";
2481            case UNICODEDFS2015: return "Unicode-DFS-2015";
2482            case UNICODEDFS2016: return "Unicode-DFS-2016";
2483            case UNICODETOU: return "Unicode-TOU";
2484            case UNLICENSE: return "Unlicense";
2485            case UPL1_0: return "UPL-1.0";
2486            case VIM: return "Vim";
2487            case VOSTROM: return "VOSTROM";
2488            case VSL1_0: return "VSL-1.0";
2489            case W3C19980720: return "W3C-19980720";
2490            case W3C20150513: return "W3C-20150513";
2491            case W3C: return "W3C";
2492            case WATCOM1_0: return "Watcom-1.0";
2493            case WSUIPA: return "Wsuipa";
2494            case WTFPL: return "WTFPL";
2495            case X11: return "X11";
2496            case XEROX: return "Xerox";
2497            case XFREE861_1: return "XFree86-1.1";
2498            case XINETD: return "xinetd";
2499            case XNET: return "Xnet";
2500            case XPP: return "xpp";
2501            case XSKAT: return "XSkat";
2502            case YPL1_0: return "YPL-1.0";
2503            case YPL1_1: return "YPL-1.1";
2504            case ZED: return "Zed";
2505            case ZEND2_0: return "Zend-2.0";
2506            case ZIMBRA1_3: return "Zimbra-1.3";
2507            case ZIMBRA1_4: return "Zimbra-1.4";
2508            case ZLIBACKNOWLEDGEMENT: return "zlib-acknowledgement";
2509            case ZLIB: return "Zlib";
2510            case ZPL1_1: return "ZPL-1.1";
2511            case ZPL2_0: return "ZPL-2.0";
2512            case ZPL2_1: return "ZPL-2.1";
2513            default: return "?";
2514          }
2515        }
2516        public String getSystem() {
2517          switch (this) {
2518            case NOTOPENSOURCE: return "http://hl7.org/fhir/spdx-license";
2519            case _0BSD: return "http://hl7.org/fhir/spdx-license";
2520            case AAL: return "http://hl7.org/fhir/spdx-license";
2521            case ABSTYLES: return "http://hl7.org/fhir/spdx-license";
2522            case ADOBE2006: return "http://hl7.org/fhir/spdx-license";
2523            case ADOBEGLYPH: return "http://hl7.org/fhir/spdx-license";
2524            case ADSL: return "http://hl7.org/fhir/spdx-license";
2525            case AFL1_1: return "http://hl7.org/fhir/spdx-license";
2526            case AFL1_2: return "http://hl7.org/fhir/spdx-license";
2527            case AFL2_0: return "http://hl7.org/fhir/spdx-license";
2528            case AFL2_1: return "http://hl7.org/fhir/spdx-license";
2529            case AFL3_0: return "http://hl7.org/fhir/spdx-license";
2530            case AFMPARSE: return "http://hl7.org/fhir/spdx-license";
2531            case AGPL1_0ONLY: return "http://hl7.org/fhir/spdx-license";
2532            case AGPL1_0ORLATER: return "http://hl7.org/fhir/spdx-license";
2533            case AGPL3_0ONLY: return "http://hl7.org/fhir/spdx-license";
2534            case AGPL3_0ORLATER: return "http://hl7.org/fhir/spdx-license";
2535            case ALADDIN: return "http://hl7.org/fhir/spdx-license";
2536            case AMDPLPA: return "http://hl7.org/fhir/spdx-license";
2537            case AML: return "http://hl7.org/fhir/spdx-license";
2538            case AMPAS: return "http://hl7.org/fhir/spdx-license";
2539            case ANTLRPD: return "http://hl7.org/fhir/spdx-license";
2540            case APACHE1_0: return "http://hl7.org/fhir/spdx-license";
2541            case APACHE1_1: return "http://hl7.org/fhir/spdx-license";
2542            case APACHE2_0: return "http://hl7.org/fhir/spdx-license";
2543            case APAFML: return "http://hl7.org/fhir/spdx-license";
2544            case APL1_0: return "http://hl7.org/fhir/spdx-license";
2545            case APSL1_0: return "http://hl7.org/fhir/spdx-license";
2546            case APSL1_1: return "http://hl7.org/fhir/spdx-license";
2547            case APSL1_2: return "http://hl7.org/fhir/spdx-license";
2548            case APSL2_0: return "http://hl7.org/fhir/spdx-license";
2549            case ARTISTIC1_0CL8: return "http://hl7.org/fhir/spdx-license";
2550            case ARTISTIC1_0PERL: return "http://hl7.org/fhir/spdx-license";
2551            case ARTISTIC1_0: return "http://hl7.org/fhir/spdx-license";
2552            case ARTISTIC2_0: return "http://hl7.org/fhir/spdx-license";
2553            case BAHYPH: return "http://hl7.org/fhir/spdx-license";
2554            case BARR: return "http://hl7.org/fhir/spdx-license";
2555            case BEERWARE: return "http://hl7.org/fhir/spdx-license";
2556            case BITTORRENT1_0: return "http://hl7.org/fhir/spdx-license";
2557            case BITTORRENT1_1: return "http://hl7.org/fhir/spdx-license";
2558            case BORCEUX: return "http://hl7.org/fhir/spdx-license";
2559            case BSD1CLAUSE: return "http://hl7.org/fhir/spdx-license";
2560            case BSD2CLAUSEFREEBSD: return "http://hl7.org/fhir/spdx-license";
2561            case BSD2CLAUSENETBSD: return "http://hl7.org/fhir/spdx-license";
2562            case BSD2CLAUSEPATENT: return "http://hl7.org/fhir/spdx-license";
2563            case BSD2CLAUSE: return "http://hl7.org/fhir/spdx-license";
2564            case BSD3CLAUSEATTRIBUTION: return "http://hl7.org/fhir/spdx-license";
2565            case BSD3CLAUSECLEAR: return "http://hl7.org/fhir/spdx-license";
2566            case BSD3CLAUSELBNL: return "http://hl7.org/fhir/spdx-license";
2567            case BSD3CLAUSENONUCLEARLICENSE2014: return "http://hl7.org/fhir/spdx-license";
2568            case BSD3CLAUSENONUCLEARLICENSE: return "http://hl7.org/fhir/spdx-license";
2569            case BSD3CLAUSENONUCLEARWARRANTY: return "http://hl7.org/fhir/spdx-license";
2570            case BSD3CLAUSE: return "http://hl7.org/fhir/spdx-license";
2571            case BSD4CLAUSEUC: return "http://hl7.org/fhir/spdx-license";
2572            case BSD4CLAUSE: return "http://hl7.org/fhir/spdx-license";
2573            case BSDPROTECTION: return "http://hl7.org/fhir/spdx-license";
2574            case BSDSOURCECODE: return "http://hl7.org/fhir/spdx-license";
2575            case BSL1_0: return "http://hl7.org/fhir/spdx-license";
2576            case BZIP21_0_5: return "http://hl7.org/fhir/spdx-license";
2577            case BZIP21_0_6: return "http://hl7.org/fhir/spdx-license";
2578            case CALDERA: return "http://hl7.org/fhir/spdx-license";
2579            case CATOSL1_1: return "http://hl7.org/fhir/spdx-license";
2580            case CCBY1_0: return "http://hl7.org/fhir/spdx-license";
2581            case CCBY2_0: return "http://hl7.org/fhir/spdx-license";
2582            case CCBY2_5: return "http://hl7.org/fhir/spdx-license";
2583            case CCBY3_0: return "http://hl7.org/fhir/spdx-license";
2584            case CCBY4_0: return "http://hl7.org/fhir/spdx-license";
2585            case CCBYNC1_0: return "http://hl7.org/fhir/spdx-license";
2586            case CCBYNC2_0: return "http://hl7.org/fhir/spdx-license";
2587            case CCBYNC2_5: return "http://hl7.org/fhir/spdx-license";
2588            case CCBYNC3_0: return "http://hl7.org/fhir/spdx-license";
2589            case CCBYNC4_0: return "http://hl7.org/fhir/spdx-license";
2590            case CCBYNCND1_0: return "http://hl7.org/fhir/spdx-license";
2591            case CCBYNCND2_0: return "http://hl7.org/fhir/spdx-license";
2592            case CCBYNCND2_5: return "http://hl7.org/fhir/spdx-license";
2593            case CCBYNCND3_0: return "http://hl7.org/fhir/spdx-license";
2594            case CCBYNCND4_0: return "http://hl7.org/fhir/spdx-license";
2595            case CCBYNCSA1_0: return "http://hl7.org/fhir/spdx-license";
2596            case CCBYNCSA2_0: return "http://hl7.org/fhir/spdx-license";
2597            case CCBYNCSA2_5: return "http://hl7.org/fhir/spdx-license";
2598            case CCBYNCSA3_0: return "http://hl7.org/fhir/spdx-license";
2599            case CCBYNCSA4_0: return "http://hl7.org/fhir/spdx-license";
2600            case CCBYND1_0: return "http://hl7.org/fhir/spdx-license";
2601            case CCBYND2_0: return "http://hl7.org/fhir/spdx-license";
2602            case CCBYND2_5: return "http://hl7.org/fhir/spdx-license";
2603            case CCBYND3_0: return "http://hl7.org/fhir/spdx-license";
2604            case CCBYND4_0: return "http://hl7.org/fhir/spdx-license";
2605            case CCBYSA1_0: return "http://hl7.org/fhir/spdx-license";
2606            case CCBYSA2_0: return "http://hl7.org/fhir/spdx-license";
2607            case CCBYSA2_5: return "http://hl7.org/fhir/spdx-license";
2608            case CCBYSA3_0: return "http://hl7.org/fhir/spdx-license";
2609            case CCBYSA4_0: return "http://hl7.org/fhir/spdx-license";
2610            case CC01_0: return "http://hl7.org/fhir/spdx-license";
2611            case CDDL1_0: return "http://hl7.org/fhir/spdx-license";
2612            case CDDL1_1: return "http://hl7.org/fhir/spdx-license";
2613            case CDLAPERMISSIVE1_0: return "http://hl7.org/fhir/spdx-license";
2614            case CDLASHARING1_0: return "http://hl7.org/fhir/spdx-license";
2615            case CECILL1_0: return "http://hl7.org/fhir/spdx-license";
2616            case CECILL1_1: return "http://hl7.org/fhir/spdx-license";
2617            case CECILL2_0: return "http://hl7.org/fhir/spdx-license";
2618            case CECILL2_1: return "http://hl7.org/fhir/spdx-license";
2619            case CECILLB: return "http://hl7.org/fhir/spdx-license";
2620            case CECILLC: return "http://hl7.org/fhir/spdx-license";
2621            case CLARTISTIC: return "http://hl7.org/fhir/spdx-license";
2622            case CNRIJYTHON: return "http://hl7.org/fhir/spdx-license";
2623            case CNRIPYTHONGPLCOMPATIBLE: return "http://hl7.org/fhir/spdx-license";
2624            case CNRIPYTHON: return "http://hl7.org/fhir/spdx-license";
2625            case CONDOR1_1: return "http://hl7.org/fhir/spdx-license";
2626            case CPAL1_0: return "http://hl7.org/fhir/spdx-license";
2627            case CPL1_0: return "http://hl7.org/fhir/spdx-license";
2628            case CPOL1_02: return "http://hl7.org/fhir/spdx-license";
2629            case CROSSWORD: return "http://hl7.org/fhir/spdx-license";
2630            case CRYSTALSTACKER: return "http://hl7.org/fhir/spdx-license";
2631            case CUAOPL1_0: return "http://hl7.org/fhir/spdx-license";
2632            case CUBE: return "http://hl7.org/fhir/spdx-license";
2633            case CURL: return "http://hl7.org/fhir/spdx-license";
2634            case DFSL1_0: return "http://hl7.org/fhir/spdx-license";
2635            case DIFFMARK: return "http://hl7.org/fhir/spdx-license";
2636            case DOC: return "http://hl7.org/fhir/spdx-license";
2637            case DOTSEQN: return "http://hl7.org/fhir/spdx-license";
2638            case DSDP: return "http://hl7.org/fhir/spdx-license";
2639            case DVIPDFM: return "http://hl7.org/fhir/spdx-license";
2640            case ECL1_0: return "http://hl7.org/fhir/spdx-license";
2641            case ECL2_0: return "http://hl7.org/fhir/spdx-license";
2642            case EFL1_0: return "http://hl7.org/fhir/spdx-license";
2643            case EFL2_0: return "http://hl7.org/fhir/spdx-license";
2644            case EGENIX: return "http://hl7.org/fhir/spdx-license";
2645            case ENTESSA: return "http://hl7.org/fhir/spdx-license";
2646            case EPL1_0: return "http://hl7.org/fhir/spdx-license";
2647            case EPL2_0: return "http://hl7.org/fhir/spdx-license";
2648            case ERLPL1_1: return "http://hl7.org/fhir/spdx-license";
2649            case EUDATAGRID: return "http://hl7.org/fhir/spdx-license";
2650            case EUPL1_0: return "http://hl7.org/fhir/spdx-license";
2651            case EUPL1_1: return "http://hl7.org/fhir/spdx-license";
2652            case EUPL1_2: return "http://hl7.org/fhir/spdx-license";
2653            case EUROSYM: return "http://hl7.org/fhir/spdx-license";
2654            case FAIR: return "http://hl7.org/fhir/spdx-license";
2655            case FRAMEWORX1_0: return "http://hl7.org/fhir/spdx-license";
2656            case FREEIMAGE: return "http://hl7.org/fhir/spdx-license";
2657            case FSFAP: return "http://hl7.org/fhir/spdx-license";
2658            case FSFUL: return "http://hl7.org/fhir/spdx-license";
2659            case FSFULLR: return "http://hl7.org/fhir/spdx-license";
2660            case FTL: return "http://hl7.org/fhir/spdx-license";
2661            case GFDL1_1ONLY: return "http://hl7.org/fhir/spdx-license";
2662            case GFDL1_1ORLATER: return "http://hl7.org/fhir/spdx-license";
2663            case GFDL1_2ONLY: return "http://hl7.org/fhir/spdx-license";
2664            case GFDL1_2ORLATER: return "http://hl7.org/fhir/spdx-license";
2665            case GFDL1_3ONLY: return "http://hl7.org/fhir/spdx-license";
2666            case GFDL1_3ORLATER: return "http://hl7.org/fhir/spdx-license";
2667            case GIFTWARE: return "http://hl7.org/fhir/spdx-license";
2668            case GL2PS: return "http://hl7.org/fhir/spdx-license";
2669            case GLIDE: return "http://hl7.org/fhir/spdx-license";
2670            case GLULXE: return "http://hl7.org/fhir/spdx-license";
2671            case GNUPLOT: return "http://hl7.org/fhir/spdx-license";
2672            case GPL1_0ONLY: return "http://hl7.org/fhir/spdx-license";
2673            case GPL1_0ORLATER: return "http://hl7.org/fhir/spdx-license";
2674            case GPL2_0ONLY: return "http://hl7.org/fhir/spdx-license";
2675            case GPL2_0ORLATER: return "http://hl7.org/fhir/spdx-license";
2676            case GPL3_0ONLY: return "http://hl7.org/fhir/spdx-license";
2677            case GPL3_0ORLATER: return "http://hl7.org/fhir/spdx-license";
2678            case GSOAP1_3B: return "http://hl7.org/fhir/spdx-license";
2679            case HASKELLREPORT: return "http://hl7.org/fhir/spdx-license";
2680            case HPND: return "http://hl7.org/fhir/spdx-license";
2681            case IBMPIBS: return "http://hl7.org/fhir/spdx-license";
2682            case ICU: return "http://hl7.org/fhir/spdx-license";
2683            case IJG: return "http://hl7.org/fhir/spdx-license";
2684            case IMAGEMAGICK: return "http://hl7.org/fhir/spdx-license";
2685            case IMATIX: return "http://hl7.org/fhir/spdx-license";
2686            case IMLIB2: return "http://hl7.org/fhir/spdx-license";
2687            case INFOZIP: return "http://hl7.org/fhir/spdx-license";
2688            case INTELACPI: return "http://hl7.org/fhir/spdx-license";
2689            case INTEL: return "http://hl7.org/fhir/spdx-license";
2690            case INTERBASE1_0: return "http://hl7.org/fhir/spdx-license";
2691            case IPA: return "http://hl7.org/fhir/spdx-license";
2692            case IPL1_0: return "http://hl7.org/fhir/spdx-license";
2693            case ISC: return "http://hl7.org/fhir/spdx-license";
2694            case JASPER2_0: return "http://hl7.org/fhir/spdx-license";
2695            case JSON: return "http://hl7.org/fhir/spdx-license";
2696            case LAL1_2: return "http://hl7.org/fhir/spdx-license";
2697            case LAL1_3: return "http://hl7.org/fhir/spdx-license";
2698            case LATEX2E: return "http://hl7.org/fhir/spdx-license";
2699            case LEPTONICA: return "http://hl7.org/fhir/spdx-license";
2700            case LGPL2_0ONLY: return "http://hl7.org/fhir/spdx-license";
2701            case LGPL2_0ORLATER: return "http://hl7.org/fhir/spdx-license";
2702            case LGPL2_1ONLY: return "http://hl7.org/fhir/spdx-license";
2703            case LGPL2_1ORLATER: return "http://hl7.org/fhir/spdx-license";
2704            case LGPL3_0ONLY: return "http://hl7.org/fhir/spdx-license";
2705            case LGPL3_0ORLATER: return "http://hl7.org/fhir/spdx-license";
2706            case LGPLLR: return "http://hl7.org/fhir/spdx-license";
2707            case LIBPNG: return "http://hl7.org/fhir/spdx-license";
2708            case LIBTIFF: return "http://hl7.org/fhir/spdx-license";
2709            case LILIQP1_1: return "http://hl7.org/fhir/spdx-license";
2710            case LILIQR1_1: return "http://hl7.org/fhir/spdx-license";
2711            case LILIQRPLUS1_1: return "http://hl7.org/fhir/spdx-license";
2712            case LINUXOPENIB: return "http://hl7.org/fhir/spdx-license";
2713            case LPL1_0: return "http://hl7.org/fhir/spdx-license";
2714            case LPL1_02: return "http://hl7.org/fhir/spdx-license";
2715            case LPPL1_0: return "http://hl7.org/fhir/spdx-license";
2716            case LPPL1_1: return "http://hl7.org/fhir/spdx-license";
2717            case LPPL1_2: return "http://hl7.org/fhir/spdx-license";
2718            case LPPL1_3A: return "http://hl7.org/fhir/spdx-license";
2719            case LPPL1_3C: return "http://hl7.org/fhir/spdx-license";
2720            case MAKEINDEX: return "http://hl7.org/fhir/spdx-license";
2721            case MIROS: return "http://hl7.org/fhir/spdx-license";
2722            case MIT0: return "http://hl7.org/fhir/spdx-license";
2723            case MITADVERTISING: return "http://hl7.org/fhir/spdx-license";
2724            case MITCMU: return "http://hl7.org/fhir/spdx-license";
2725            case MITENNA: return "http://hl7.org/fhir/spdx-license";
2726            case MITFEH: return "http://hl7.org/fhir/spdx-license";
2727            case MIT: return "http://hl7.org/fhir/spdx-license";
2728            case MITNFA: return "http://hl7.org/fhir/spdx-license";
2729            case MOTOSOTO: return "http://hl7.org/fhir/spdx-license";
2730            case MPICH2: return "http://hl7.org/fhir/spdx-license";
2731            case MPL1_0: return "http://hl7.org/fhir/spdx-license";
2732            case MPL1_1: return "http://hl7.org/fhir/spdx-license";
2733            case MPL2_0NOCOPYLEFTEXCEPTION: return "http://hl7.org/fhir/spdx-license";
2734            case MPL2_0: return "http://hl7.org/fhir/spdx-license";
2735            case MSPL: return "http://hl7.org/fhir/spdx-license";
2736            case MSRL: return "http://hl7.org/fhir/spdx-license";
2737            case MTLL: return "http://hl7.org/fhir/spdx-license";
2738            case MULTICS: return "http://hl7.org/fhir/spdx-license";
2739            case MUP: return "http://hl7.org/fhir/spdx-license";
2740            case NASA1_3: return "http://hl7.org/fhir/spdx-license";
2741            case NAUMEN: return "http://hl7.org/fhir/spdx-license";
2742            case NBPL1_0: return "http://hl7.org/fhir/spdx-license";
2743            case NCSA: return "http://hl7.org/fhir/spdx-license";
2744            case NETSNMP: return "http://hl7.org/fhir/spdx-license";
2745            case NETCDF: return "http://hl7.org/fhir/spdx-license";
2746            case NEWSLETR: return "http://hl7.org/fhir/spdx-license";
2747            case NGPL: return "http://hl7.org/fhir/spdx-license";
2748            case NLOD1_0: return "http://hl7.org/fhir/spdx-license";
2749            case NLPL: return "http://hl7.org/fhir/spdx-license";
2750            case NOKIA: return "http://hl7.org/fhir/spdx-license";
2751            case NOSL: return "http://hl7.org/fhir/spdx-license";
2752            case NOWEB: return "http://hl7.org/fhir/spdx-license";
2753            case NPL1_0: return "http://hl7.org/fhir/spdx-license";
2754            case NPL1_1: return "http://hl7.org/fhir/spdx-license";
2755            case NPOSL3_0: return "http://hl7.org/fhir/spdx-license";
2756            case NRL: return "http://hl7.org/fhir/spdx-license";
2757            case NTP: return "http://hl7.org/fhir/spdx-license";
2758            case OCCTPL: return "http://hl7.org/fhir/spdx-license";
2759            case OCLC2_0: return "http://hl7.org/fhir/spdx-license";
2760            case ODBL1_0: return "http://hl7.org/fhir/spdx-license";
2761            case OFL1_0: return "http://hl7.org/fhir/spdx-license";
2762            case OFL1_1: return "http://hl7.org/fhir/spdx-license";
2763            case OGTSL: return "http://hl7.org/fhir/spdx-license";
2764            case OLDAP1_1: return "http://hl7.org/fhir/spdx-license";
2765            case OLDAP1_2: return "http://hl7.org/fhir/spdx-license";
2766            case OLDAP1_3: return "http://hl7.org/fhir/spdx-license";
2767            case OLDAP1_4: return "http://hl7.org/fhir/spdx-license";
2768            case OLDAP2_0_1: return "http://hl7.org/fhir/spdx-license";
2769            case OLDAP2_0: return "http://hl7.org/fhir/spdx-license";
2770            case OLDAP2_1: return "http://hl7.org/fhir/spdx-license";
2771            case OLDAP2_2_1: return "http://hl7.org/fhir/spdx-license";
2772            case OLDAP2_2_2: return "http://hl7.org/fhir/spdx-license";
2773            case OLDAP2_2: return "http://hl7.org/fhir/spdx-license";
2774            case OLDAP2_3: return "http://hl7.org/fhir/spdx-license";
2775            case OLDAP2_4: return "http://hl7.org/fhir/spdx-license";
2776            case OLDAP2_5: return "http://hl7.org/fhir/spdx-license";
2777            case OLDAP2_6: return "http://hl7.org/fhir/spdx-license";
2778            case OLDAP2_7: return "http://hl7.org/fhir/spdx-license";
2779            case OLDAP2_8: return "http://hl7.org/fhir/spdx-license";
2780            case OML: return "http://hl7.org/fhir/spdx-license";
2781            case OPENSSL: return "http://hl7.org/fhir/spdx-license";
2782            case OPL1_0: return "http://hl7.org/fhir/spdx-license";
2783            case OSETPL2_1: return "http://hl7.org/fhir/spdx-license";
2784            case OSL1_0: return "http://hl7.org/fhir/spdx-license";
2785            case OSL1_1: return "http://hl7.org/fhir/spdx-license";
2786            case OSL2_0: return "http://hl7.org/fhir/spdx-license";
2787            case OSL2_1: return "http://hl7.org/fhir/spdx-license";
2788            case OSL3_0: return "http://hl7.org/fhir/spdx-license";
2789            case PDDL1_0: return "http://hl7.org/fhir/spdx-license";
2790            case PHP3_0: return "http://hl7.org/fhir/spdx-license";
2791            case PHP3_01: return "http://hl7.org/fhir/spdx-license";
2792            case PLEXUS: return "http://hl7.org/fhir/spdx-license";
2793            case POSTGRESQL: return "http://hl7.org/fhir/spdx-license";
2794            case PSFRAG: return "http://hl7.org/fhir/spdx-license";
2795            case PSUTILS: return "http://hl7.org/fhir/spdx-license";
2796            case PYTHON2_0: return "http://hl7.org/fhir/spdx-license";
2797            case QHULL: return "http://hl7.org/fhir/spdx-license";
2798            case QPL1_0: return "http://hl7.org/fhir/spdx-license";
2799            case RDISC: return "http://hl7.org/fhir/spdx-license";
2800            case RHECOS1_1: return "http://hl7.org/fhir/spdx-license";
2801            case RPL1_1: return "http://hl7.org/fhir/spdx-license";
2802            case RPL1_5: return "http://hl7.org/fhir/spdx-license";
2803            case RPSL1_0: return "http://hl7.org/fhir/spdx-license";
2804            case RSAMD: return "http://hl7.org/fhir/spdx-license";
2805            case RSCPL: return "http://hl7.org/fhir/spdx-license";
2806            case RUBY: return "http://hl7.org/fhir/spdx-license";
2807            case SAXPD: return "http://hl7.org/fhir/spdx-license";
2808            case SAXPATH: return "http://hl7.org/fhir/spdx-license";
2809            case SCEA: return "http://hl7.org/fhir/spdx-license";
2810            case SENDMAIL: return "http://hl7.org/fhir/spdx-license";
2811            case SGIB1_0: return "http://hl7.org/fhir/spdx-license";
2812            case SGIB1_1: return "http://hl7.org/fhir/spdx-license";
2813            case SGIB2_0: return "http://hl7.org/fhir/spdx-license";
2814            case SIMPL2_0: return "http://hl7.org/fhir/spdx-license";
2815            case SISSL1_2: return "http://hl7.org/fhir/spdx-license";
2816            case SISSL: return "http://hl7.org/fhir/spdx-license";
2817            case SLEEPYCAT: return "http://hl7.org/fhir/spdx-license";
2818            case SMLNJ: return "http://hl7.org/fhir/spdx-license";
2819            case SMPPL: return "http://hl7.org/fhir/spdx-license";
2820            case SNIA: return "http://hl7.org/fhir/spdx-license";
2821            case SPENCER86: return "http://hl7.org/fhir/spdx-license";
2822            case SPENCER94: return "http://hl7.org/fhir/spdx-license";
2823            case SPENCER99: return "http://hl7.org/fhir/spdx-license";
2824            case SPL1_0: return "http://hl7.org/fhir/spdx-license";
2825            case SUGARCRM1_1_3: return "http://hl7.org/fhir/spdx-license";
2826            case SWL: return "http://hl7.org/fhir/spdx-license";
2827            case TCL: return "http://hl7.org/fhir/spdx-license";
2828            case TCPWRAPPERS: return "http://hl7.org/fhir/spdx-license";
2829            case TMATE: return "http://hl7.org/fhir/spdx-license";
2830            case TORQUE1_1: return "http://hl7.org/fhir/spdx-license";
2831            case TOSL: return "http://hl7.org/fhir/spdx-license";
2832            case UNICODEDFS2015: return "http://hl7.org/fhir/spdx-license";
2833            case UNICODEDFS2016: return "http://hl7.org/fhir/spdx-license";
2834            case UNICODETOU: return "http://hl7.org/fhir/spdx-license";
2835            case UNLICENSE: return "http://hl7.org/fhir/spdx-license";
2836            case UPL1_0: return "http://hl7.org/fhir/spdx-license";
2837            case VIM: return "http://hl7.org/fhir/spdx-license";
2838            case VOSTROM: return "http://hl7.org/fhir/spdx-license";
2839            case VSL1_0: return "http://hl7.org/fhir/spdx-license";
2840            case W3C19980720: return "http://hl7.org/fhir/spdx-license";
2841            case W3C20150513: return "http://hl7.org/fhir/spdx-license";
2842            case W3C: return "http://hl7.org/fhir/spdx-license";
2843            case WATCOM1_0: return "http://hl7.org/fhir/spdx-license";
2844            case WSUIPA: return "http://hl7.org/fhir/spdx-license";
2845            case WTFPL: return "http://hl7.org/fhir/spdx-license";
2846            case X11: return "http://hl7.org/fhir/spdx-license";
2847            case XEROX: return "http://hl7.org/fhir/spdx-license";
2848            case XFREE861_1: return "http://hl7.org/fhir/spdx-license";
2849            case XINETD: return "http://hl7.org/fhir/spdx-license";
2850            case XNET: return "http://hl7.org/fhir/spdx-license";
2851            case XPP: return "http://hl7.org/fhir/spdx-license";
2852            case XSKAT: return "http://hl7.org/fhir/spdx-license";
2853            case YPL1_0: return "http://hl7.org/fhir/spdx-license";
2854            case YPL1_1: return "http://hl7.org/fhir/spdx-license";
2855            case ZED: return "http://hl7.org/fhir/spdx-license";
2856            case ZEND2_0: return "http://hl7.org/fhir/spdx-license";
2857            case ZIMBRA1_3: return "http://hl7.org/fhir/spdx-license";
2858            case ZIMBRA1_4: return "http://hl7.org/fhir/spdx-license";
2859            case ZLIBACKNOWLEDGEMENT: return "http://hl7.org/fhir/spdx-license";
2860            case ZLIB: return "http://hl7.org/fhir/spdx-license";
2861            case ZPL1_1: return "http://hl7.org/fhir/spdx-license";
2862            case ZPL2_0: return "http://hl7.org/fhir/spdx-license";
2863            case ZPL2_1: return "http://hl7.org/fhir/spdx-license";
2864            default: return "?";
2865          }
2866        }
2867        public String getDefinition() {
2868          switch (this) {
2869            case NOTOPENSOURCE: return "Not an open source license.";
2870            case _0BSD: return "BSD Zero Clause License.";
2871            case AAL: return "Attribution Assurance License.";
2872            case ABSTYLES: return "Abstyles License.";
2873            case ADOBE2006: return "Adobe Systems Incorporated Source Code License Agreement.";
2874            case ADOBEGLYPH: return "Adobe Glyph List License.";
2875            case ADSL: return "Amazon Digital Services License.";
2876            case AFL1_1: return "Academic Free License v1.1.";
2877            case AFL1_2: return "Academic Free License v1.2.";
2878            case AFL2_0: return "Academic Free License v2.0.";
2879            case AFL2_1: return "Academic Free License v2.1.";
2880            case AFL3_0: return "Academic Free License v3.0.";
2881            case AFMPARSE: return "Afmparse License.";
2882            case AGPL1_0ONLY: return "Affero General Public License v1.0 only.";
2883            case AGPL1_0ORLATER: return "Affero General Public License v1.0 or later.";
2884            case AGPL3_0ONLY: return "GNU Affero General Public License v3.0 only.";
2885            case AGPL3_0ORLATER: return "GNU Affero General Public License v3.0 or later.";
2886            case ALADDIN: return "Aladdin Free Public License.";
2887            case AMDPLPA: return "AMD's plpa_map.c License.";
2888            case AML: return "Apple MIT License.";
2889            case AMPAS: return "Academy of Motion Picture Arts and Sciences BSD.";
2890            case ANTLRPD: return "ANTLR Software Rights Notice.";
2891            case APACHE1_0: return "Apache License 1.0.";
2892            case APACHE1_1: return "Apache License 1.1.";
2893            case APACHE2_0: return "Apache License 2.0.";
2894            case APAFML: return "Adobe Postscript AFM License.";
2895            case APL1_0: return "Adaptive Public License 1.0.";
2896            case APSL1_0: return "Apple Public Source License 1.0.";
2897            case APSL1_1: return "Apple Public Source License 1.1.";
2898            case APSL1_2: return "Apple Public Source License 1.2.";
2899            case APSL2_0: return "Apple Public Source License 2.0.";
2900            case ARTISTIC1_0CL8: return "Artistic License 1.0 w/clause 8.";
2901            case ARTISTIC1_0PERL: return "Artistic License 1.0 (Perl).";
2902            case ARTISTIC1_0: return "Artistic License 1.0.";
2903            case ARTISTIC2_0: return "Artistic License 2.0.";
2904            case BAHYPH: return "Bahyph License.";
2905            case BARR: return "Barr License.";
2906            case BEERWARE: return "Beerware License.";
2907            case BITTORRENT1_0: return "BitTorrent Open Source License v1.0.";
2908            case BITTORRENT1_1: return "BitTorrent Open Source License v1.1.";
2909            case BORCEUX: return "Borceux license.";
2910            case BSD1CLAUSE: return "BSD 1-Clause License.";
2911            case BSD2CLAUSEFREEBSD: return "BSD 2-Clause FreeBSD License.";
2912            case BSD2CLAUSENETBSD: return "BSD 2-Clause NetBSD License.";
2913            case BSD2CLAUSEPATENT: return "BSD-2-Clause Plus Patent License.";
2914            case BSD2CLAUSE: return "BSD 2-Clause \"Simplified\" License.";
2915            case BSD3CLAUSEATTRIBUTION: return "BSD with attribution.";
2916            case BSD3CLAUSECLEAR: return "BSD 3-Clause Clear License.";
2917            case BSD3CLAUSELBNL: return "Lawrence Berkeley National Labs BSD variant license.";
2918            case BSD3CLAUSENONUCLEARLICENSE2014: return "BSD 3-Clause No Nuclear License 2014.";
2919            case BSD3CLAUSENONUCLEARLICENSE: return "BSD 3-Clause No Nuclear License.";
2920            case BSD3CLAUSENONUCLEARWARRANTY: return "BSD 3-Clause No Nuclear Warranty.";
2921            case BSD3CLAUSE: return "BSD 3-Clause \"New\" or \"Revised\" License.";
2922            case BSD4CLAUSEUC: return "BSD-4-Clause (University of California-Specific).";
2923            case BSD4CLAUSE: return "BSD 4-Clause \"Original\" or \"Old\" License.";
2924            case BSDPROTECTION: return "BSD Protection License.";
2925            case BSDSOURCECODE: return "BSD Source Code Attribution.";
2926            case BSL1_0: return "Boost Software License 1.0.";
2927            case BZIP21_0_5: return "bzip2 and libbzip2 License v1.0.5.";
2928            case BZIP21_0_6: return "bzip2 and libbzip2 License v1.0.6.";
2929            case CALDERA: return "Caldera License.";
2930            case CATOSL1_1: return "Computer Associates Trusted Open Source License 1.1.";
2931            case CCBY1_0: return "Creative Commons Attribution 1.0 Generic.";
2932            case CCBY2_0: return "Creative Commons Attribution 2.0 Generic.";
2933            case CCBY2_5: return "Creative Commons Attribution 2.5 Generic.";
2934            case CCBY3_0: return "Creative Commons Attribution 3.0 Unported.";
2935            case CCBY4_0: return "Creative Commons Attribution 4.0 International.";
2936            case CCBYNC1_0: return "Creative Commons Attribution Non Commercial 1.0 Generic.";
2937            case CCBYNC2_0: return "Creative Commons Attribution Non Commercial 2.0 Generic.";
2938            case CCBYNC2_5: return "Creative Commons Attribution Non Commercial 2.5 Generic.";
2939            case CCBYNC3_0: return "Creative Commons Attribution Non Commercial 3.0 Unported.";
2940            case CCBYNC4_0: return "Creative Commons Attribution Non Commercial 4.0 International.";
2941            case CCBYNCND1_0: return "Creative Commons Attribution Non Commercial No Derivatives 1.0 Generic.";
2942            case CCBYNCND2_0: return "Creative Commons Attribution Non Commercial No Derivatives 2.0 Generic.";
2943            case CCBYNCND2_5: return "Creative Commons Attribution Non Commercial No Derivatives 2.5 Generic.";
2944            case CCBYNCND3_0: return "Creative Commons Attribution Non Commercial No Derivatives 3.0 Unported.";
2945            case CCBYNCND4_0: return "Creative Commons Attribution Non Commercial No Derivatives 4.0 International.";
2946            case CCBYNCSA1_0: return "Creative Commons Attribution Non Commercial Share Alike 1.0 Generic.";
2947            case CCBYNCSA2_0: return "Creative Commons Attribution Non Commercial Share Alike 2.0 Generic.";
2948            case CCBYNCSA2_5: return "Creative Commons Attribution Non Commercial Share Alike 2.5 Generic.";
2949            case CCBYNCSA3_0: return "Creative Commons Attribution Non Commercial Share Alike 3.0 Unported.";
2950            case CCBYNCSA4_0: return "Creative Commons Attribution Non Commercial Share Alike 4.0 International.";
2951            case CCBYND1_0: return "Creative Commons Attribution No Derivatives 1.0 Generic.";
2952            case CCBYND2_0: return "Creative Commons Attribution No Derivatives 2.0 Generic.";
2953            case CCBYND2_5: return "Creative Commons Attribution No Derivatives 2.5 Generic.";
2954            case CCBYND3_0: return "Creative Commons Attribution No Derivatives 3.0 Unported.";
2955            case CCBYND4_0: return "Creative Commons Attribution No Derivatives 4.0 International.";
2956            case CCBYSA1_0: return "Creative Commons Attribution Share Alike 1.0 Generic.";
2957            case CCBYSA2_0: return "Creative Commons Attribution Share Alike 2.0 Generic.";
2958            case CCBYSA2_5: return "Creative Commons Attribution Share Alike 2.5 Generic.";
2959            case CCBYSA3_0: return "Creative Commons Attribution Share Alike 3.0 Unported.";
2960            case CCBYSA4_0: return "Creative Commons Attribution Share Alike 4.0 International.";
2961            case CC01_0: return "Creative Commons Zero v1.0 Universal.";
2962            case CDDL1_0: return "Common Development and Distribution License 1.0.";
2963            case CDDL1_1: return "Common Development and Distribution License 1.1.";
2964            case CDLAPERMISSIVE1_0: return "Community Data License Agreement Permissive 1.0.";
2965            case CDLASHARING1_0: return "Community Data License Agreement Sharing 1.0.";
2966            case CECILL1_0: return "CeCILL Free Software License Agreement v1.0.";
2967            case CECILL1_1: return "CeCILL Free Software License Agreement v1.1.";
2968            case CECILL2_0: return "CeCILL Free Software License Agreement v2.0.";
2969            case CECILL2_1: return "CeCILL Free Software License Agreement v2.1.";
2970            case CECILLB: return "CeCILL-B Free Software License Agreement.";
2971            case CECILLC: return "CeCILL-C Free Software License Agreement.";
2972            case CLARTISTIC: return "Clarified Artistic License.";
2973            case CNRIJYTHON: return "CNRI Jython License.";
2974            case CNRIPYTHONGPLCOMPATIBLE: return "CNRI Python Open Source GPL Compatible License Agreement.";
2975            case CNRIPYTHON: return "CNRI Python License.";
2976            case CONDOR1_1: return "Condor Public License v1.1.";
2977            case CPAL1_0: return "Common Public Attribution License 1.0.";
2978            case CPL1_0: return "Common Public License 1.0.";
2979            case CPOL1_02: return "Code Project Open License 1.02.";
2980            case CROSSWORD: return "Crossword License.";
2981            case CRYSTALSTACKER: return "CrystalStacker License.";
2982            case CUAOPL1_0: return "CUA Office Public License v1.0.";
2983            case CUBE: return "Cube License.";
2984            case CURL: return "curl License.";
2985            case DFSL1_0: return "Deutsche Freie Software Lizenz.";
2986            case DIFFMARK: return "diffmark license.";
2987            case DOC: return "DOC License.";
2988            case DOTSEQN: return "Dotseqn License.";
2989            case DSDP: return "DSDP License.";
2990            case DVIPDFM: return "dvipdfm License.";
2991            case ECL1_0: return "Educational Community License v1.0.";
2992            case ECL2_0: return "Educational Community License v2.0.";
2993            case EFL1_0: return "Eiffel Forum License v1.0.";
2994            case EFL2_0: return "Eiffel Forum License v2.0.";
2995            case EGENIX: return "eGenix.com Public License 1.1.0.";
2996            case ENTESSA: return "Entessa Public License v1.0.";
2997            case EPL1_0: return "Eclipse Public License 1.0.";
2998            case EPL2_0: return "Eclipse Public License 2.0.";
2999            case ERLPL1_1: return "Erlang Public License v1.1.";
3000            case EUDATAGRID: return "EU DataGrid Software License.";
3001            case EUPL1_0: return "European Union Public License 1.0.";
3002            case EUPL1_1: return "European Union Public License 1.1.";
3003            case EUPL1_2: return "European Union Public License 1.2.";
3004            case EUROSYM: return "Eurosym License.";
3005            case FAIR: return "Fair License.";
3006            case FRAMEWORX1_0: return "Frameworx Open License 1.0.";
3007            case FREEIMAGE: return "FreeImage Public License v1.0.";
3008            case FSFAP: return "FSF All Permissive License.";
3009            case FSFUL: return "FSF Unlimited License.";
3010            case FSFULLR: return "FSF Unlimited License (with License Retention).";
3011            case FTL: return "Freetype Project License.";
3012            case GFDL1_1ONLY: return "GNU Free Documentation License v1.1 only.";
3013            case GFDL1_1ORLATER: return "GNU Free Documentation License v1.1 or later.";
3014            case GFDL1_2ONLY: return "GNU Free Documentation License v1.2 only.";
3015            case GFDL1_2ORLATER: return "GNU Free Documentation License v1.2 or later.";
3016            case GFDL1_3ONLY: return "GNU Free Documentation License v1.3 only.";
3017            case GFDL1_3ORLATER: return "GNU Free Documentation License v1.3 or later.";
3018            case GIFTWARE: return "Giftware License.";
3019            case GL2PS: return "GL2PS License.";
3020            case GLIDE: return "3dfx Glide License.";
3021            case GLULXE: return "Glulxe License.";
3022            case GNUPLOT: return "gnuplot License.";
3023            case GPL1_0ONLY: return "GNU General Public License v1.0 only.";
3024            case GPL1_0ORLATER: return "GNU General Public License v1.0 or later.";
3025            case GPL2_0ONLY: return "GNU General Public License v2.0 only.";
3026            case GPL2_0ORLATER: return "GNU General Public License v2.0 or later.";
3027            case GPL3_0ONLY: return "GNU General Public License v3.0 only.";
3028            case GPL3_0ORLATER: return "GNU General Public License v3.0 or later.";
3029            case GSOAP1_3B: return "gSOAP Public License v1.3b.";
3030            case HASKELLREPORT: return "Haskell Language Report License.";
3031            case HPND: return "Historical Permission Notice and Disclaimer.";
3032            case IBMPIBS: return "IBM PowerPC Initialization and Boot Software.";
3033            case ICU: return "ICU License.";
3034            case IJG: return "Independent JPEG Group License.";
3035            case IMAGEMAGICK: return "ImageMagick License.";
3036            case IMATIX: return "iMatix Standard Function Library Agreement.";
3037            case IMLIB2: return "Imlib2 License.";
3038            case INFOZIP: return "Info-ZIP License.";
3039            case INTELACPI: return "Intel ACPI Software License Agreement.";
3040            case INTEL: return "Intel Open Source License.";
3041            case INTERBASE1_0: return "Interbase Public License v1.0.";
3042            case IPA: return "IPA Font License.";
3043            case IPL1_0: return "IBM Public License v1.0.";
3044            case ISC: return "ISC License.";
3045            case JASPER2_0: return "JasPer License.";
3046            case JSON: return "JSON License.";
3047            case LAL1_2: return "Licence Art Libre 1.2.";
3048            case LAL1_3: return "Licence Art Libre 1.3.";
3049            case LATEX2E: return "Latex2e License.";
3050            case LEPTONICA: return "Leptonica License.";
3051            case LGPL2_0ONLY: return "GNU Library General Public License v2 only.";
3052            case LGPL2_0ORLATER: return "GNU Library General Public License v2 or later.";
3053            case LGPL2_1ONLY: return "GNU Lesser General Public License v2.1 only.";
3054            case LGPL2_1ORLATER: return "GNU Lesser General Public License v2.1 or later.";
3055            case LGPL3_0ONLY: return "GNU Lesser General Public License v3.0 only.";
3056            case LGPL3_0ORLATER: return "GNU Lesser General Public License v3.0 or later.";
3057            case LGPLLR: return "Lesser General Public License For Linguistic Resources.";
3058            case LIBPNG: return "libpng License.";
3059            case LIBTIFF: return "libtiff License.";
3060            case LILIQP1_1: return "Licence Libre du Québec – Permissive version 1.1.";
3061            case LILIQR1_1: return "Licence Libre du Québec – Réciprocité version 1.1.";
3062            case LILIQRPLUS1_1: return "Licence Libre du Québec – Réciprocité forte version 1.1.";
3063            case LINUXOPENIB: return "Linux Kernel Variant of OpenIB.org license.";
3064            case LPL1_0: return "Lucent Public License Version 1.0.";
3065            case LPL1_02: return "Lucent Public License v1.02.";
3066            case LPPL1_0: return "LaTeX Project Public License v1.0.";
3067            case LPPL1_1: return "LaTeX Project Public License v1.1.";
3068            case LPPL1_2: return "LaTeX Project Public License v1.2.";
3069            case LPPL1_3A: return "LaTeX Project Public License v1.3a.";
3070            case LPPL1_3C: return "LaTeX Project Public License v1.3c.";
3071            case MAKEINDEX: return "MakeIndex License.";
3072            case MIROS: return "MirOS License.";
3073            case MIT0: return "MIT No Attribution.";
3074            case MITADVERTISING: return "Enlightenment License (e16).";
3075            case MITCMU: return "CMU License.";
3076            case MITENNA: return "enna License.";
3077            case MITFEH: return "feh License.";
3078            case MIT: return "MIT License.";
3079            case MITNFA: return "MIT +no-false-attribs license.";
3080            case MOTOSOTO: return "Motosoto License.";
3081            case MPICH2: return "mpich2 License.";
3082            case MPL1_0: return "Mozilla Public License 1.0.";
3083            case MPL1_1: return "Mozilla Public License 1.1.";
3084            case MPL2_0NOCOPYLEFTEXCEPTION: return "Mozilla Public License 2.0 (no copyleft exception).";
3085            case MPL2_0: return "Mozilla Public License 2.0.";
3086            case MSPL: return "Microsoft Public License.";
3087            case MSRL: return "Microsoft Reciprocal License.";
3088            case MTLL: return "Matrix Template Library License.";
3089            case MULTICS: return "Multics License.";
3090            case MUP: return "Mup License.";
3091            case NASA1_3: return "NASA Open Source Agreement 1.3.";
3092            case NAUMEN: return "Naumen Public License.";
3093            case NBPL1_0: return "Net Boolean Public License v1.";
3094            case NCSA: return "University of Illinois/NCSA Open Source License.";
3095            case NETSNMP: return "Net-SNMP License.";
3096            case NETCDF: return "NetCDF license.";
3097            case NEWSLETR: return "Newsletr License.";
3098            case NGPL: return "Nethack General Public License.";
3099            case NLOD1_0: return "Norwegian Licence for Open Government Data.";
3100            case NLPL: return "No Limit Public License.";
3101            case NOKIA: return "Nokia Open Source License.";
3102            case NOSL: return "Netizen Open Source License.";
3103            case NOWEB: return "Noweb License.";
3104            case NPL1_0: return "Netscape Public License v1.0.";
3105            case NPL1_1: return "Netscape Public License v1.1.";
3106            case NPOSL3_0: return "Non-Profit Open Software License 3.0.";
3107            case NRL: return "NRL License.";
3108            case NTP: return "NTP License.";
3109            case OCCTPL: return "Open CASCADE Technology Public License.";
3110            case OCLC2_0: return "OCLC Research Public License 2.0.";
3111            case ODBL1_0: return "ODC Open Database License v1.0.";
3112            case OFL1_0: return "SIL Open Font License 1.0.";
3113            case OFL1_1: return "SIL Open Font License 1.1.";
3114            case OGTSL: return "Open Group Test Suite License.";
3115            case OLDAP1_1: return "Open LDAP Public License v1.1.";
3116            case OLDAP1_2: return "Open LDAP Public License v1.2.";
3117            case OLDAP1_3: return "Open LDAP Public License v1.3.";
3118            case OLDAP1_4: return "Open LDAP Public License v1.4.";
3119            case OLDAP2_0_1: return "Open LDAP Public License v2.0.1.";
3120            case OLDAP2_0: return "Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B).";
3121            case OLDAP2_1: return "Open LDAP Public License v2.1.";
3122            case OLDAP2_2_1: return "Open LDAP Public License v2.2.1.";
3123            case OLDAP2_2_2: return "Open LDAP Public License 2.2.2.";
3124            case OLDAP2_2: return "Open LDAP Public License v2.2.";
3125            case OLDAP2_3: return "Open LDAP Public License v2.3.";
3126            case OLDAP2_4: return "Open LDAP Public License v2.4.";
3127            case OLDAP2_5: return "Open LDAP Public License v2.5.";
3128            case OLDAP2_6: return "Open LDAP Public License v2.6.";
3129            case OLDAP2_7: return "Open LDAP Public License v2.7.";
3130            case OLDAP2_8: return "Open LDAP Public License v2.8.";
3131            case OML: return "Open Market License.";
3132            case OPENSSL: return "OpenSSL License.";
3133            case OPL1_0: return "Open Public License v1.0.";
3134            case OSETPL2_1: return "OSET Public License version 2.1.";
3135            case OSL1_0: return "Open Software License 1.0.";
3136            case OSL1_1: return "Open Software License 1.1.";
3137            case OSL2_0: return "Open Software License 2.0.";
3138            case OSL2_1: return "Open Software License 2.1.";
3139            case OSL3_0: return "Open Software License 3.0.";
3140            case PDDL1_0: return "ODC Public Domain Dedication & License 1.0.";
3141            case PHP3_0: return "PHP License v3.0.";
3142            case PHP3_01: return "PHP License v3.01.";
3143            case PLEXUS: return "Plexus Classworlds License.";
3144            case POSTGRESQL: return "PostgreSQL License.";
3145            case PSFRAG: return "psfrag License.";
3146            case PSUTILS: return "psutils License.";
3147            case PYTHON2_0: return "Python License 2.0.";
3148            case QHULL: return "Qhull License.";
3149            case QPL1_0: return "Q Public License 1.0.";
3150            case RDISC: return "Rdisc License.";
3151            case RHECOS1_1: return "Red Hat eCos Public License v1.1.";
3152            case RPL1_1: return "Reciprocal Public License 1.1.";
3153            case RPL1_5: return "Reciprocal Public License 1.5.";
3154            case RPSL1_0: return "RealNetworks Public Source License v1.0.";
3155            case RSAMD: return "RSA Message-Digest License.";
3156            case RSCPL: return "Ricoh Source Code Public License.";
3157            case RUBY: return "Ruby License.";
3158            case SAXPD: return "Sax Public Domain Notice.";
3159            case SAXPATH: return "Saxpath License.";
3160            case SCEA: return "SCEA Shared Source License.";
3161            case SENDMAIL: return "Sendmail License.";
3162            case SGIB1_0: return "SGI Free Software License B v1.0.";
3163            case SGIB1_1: return "SGI Free Software License B v1.1.";
3164            case SGIB2_0: return "SGI Free Software License B v2.0.";
3165            case SIMPL2_0: return "Simple Public License 2.0.";
3166            case SISSL1_2: return "Sun Industry Standards Source License v1.2.";
3167            case SISSL: return "Sun Industry Standards Source License v1.1.";
3168            case SLEEPYCAT: return "Sleepycat License.";
3169            case SMLNJ: return "Standard ML of New Jersey License.";
3170            case SMPPL: return "Secure Messaging Protocol Public License.";
3171            case SNIA: return "SNIA Public License 1.1.";
3172            case SPENCER86: return "Spencer License 86.";
3173            case SPENCER94: return "Spencer License 94.";
3174            case SPENCER99: return "Spencer License 99.";
3175            case SPL1_0: return "Sun Public License v1.0.";
3176            case SUGARCRM1_1_3: return "SugarCRM Public License v1.1.3.";
3177            case SWL: return "Scheme Widget Library (SWL) Software License Agreement.";
3178            case TCL: return "TCL/TK License.";
3179            case TCPWRAPPERS: return "TCP Wrappers License.";
3180            case TMATE: return "TMate Open Source License.";
3181            case TORQUE1_1: return "TORQUE v2.5+ Software License v1.1.";
3182            case TOSL: return "Trusster Open Source License.";
3183            case UNICODEDFS2015: return "Unicode License Agreement - Data Files and Software (2015).";
3184            case UNICODEDFS2016: return "Unicode License Agreement - Data Files and Software (2016).";
3185            case UNICODETOU: return "Unicode Terms of Use.";
3186            case UNLICENSE: return "The Unlicense.";
3187            case UPL1_0: return "Universal Permissive License v1.0.";
3188            case VIM: return "Vim License.";
3189            case VOSTROM: return "VOSTROM Public License for Open Source.";
3190            case VSL1_0: return "Vovida Software License v1.0.";
3191            case W3C19980720: return "W3C Software Notice and License (1998-07-20).";
3192            case W3C20150513: return "W3C Software Notice and Document License (2015-05-13).";
3193            case W3C: return "W3C Software Notice and License (2002-12-31).";
3194            case WATCOM1_0: return "Sybase Open Watcom Public License 1.0.";
3195            case WSUIPA: return "Wsuipa License.";
3196            case WTFPL: return "Do What The F*ck You Want To Public License.";
3197            case X11: return "X11 License.";
3198            case XEROX: return "Xerox License.";
3199            case XFREE861_1: return "XFree86 License 1.1.";
3200            case XINETD: return "xinetd License.";
3201            case XNET: return "X.Net License.";
3202            case XPP: return "XPP License.";
3203            case XSKAT: return "XSkat License.";
3204            case YPL1_0: return "Yahoo! Public License v1.0.";
3205            case YPL1_1: return "Yahoo! Public License v1.1.";
3206            case ZED: return "Zed License.";
3207            case ZEND2_0: return "Zend License v2.0.";
3208            case ZIMBRA1_3: return "Zimbra Public License v1.3.";
3209            case ZIMBRA1_4: return "Zimbra Public License v1.4.";
3210            case ZLIBACKNOWLEDGEMENT: return "zlib/libpng License with Acknowledgement.";
3211            case ZLIB: return "zlib License.";
3212            case ZPL1_1: return "Zope Public License 1.1.";
3213            case ZPL2_0: return "Zope Public License 2.0.";
3214            case ZPL2_1: return "Zope Public License 2.1.";
3215            default: return "?";
3216          }
3217        }
3218        public String getDisplay() {
3219          switch (this) {
3220            case NOTOPENSOURCE: return "Not open source";
3221            case _0BSD: return "BSD Zero Clause License";
3222            case AAL: return "Attribution Assurance License";
3223            case ABSTYLES: return "Abstyles License";
3224            case ADOBE2006: return "Adobe Systems Incorporated Source Code License Agreement";
3225            case ADOBEGLYPH: return "Adobe Glyph List License";
3226            case ADSL: return "Amazon Digital Services License";
3227            case AFL1_1: return "Academic Free License v1.1";
3228            case AFL1_2: return "Academic Free License v1.2";
3229            case AFL2_0: return "Academic Free License v2.0";
3230            case AFL2_1: return "Academic Free License v2.1";
3231            case AFL3_0: return "Academic Free License v3.0";
3232            case AFMPARSE: return "Afmparse License";
3233            case AGPL1_0ONLY: return "Affero General Public License v1.0 only";
3234            case AGPL1_0ORLATER: return "Affero General Public License v1.0 or later";
3235            case AGPL3_0ONLY: return "GNU Affero General Public License v3.0 only";
3236            case AGPL3_0ORLATER: return "GNU Affero General Public License v3.0 or later";
3237            case ALADDIN: return "Aladdin Free Public License";
3238            case AMDPLPA: return "AMD's plpa_map.c License";
3239            case AML: return "Apple MIT License";
3240            case AMPAS: return "Academy of Motion Picture Arts and Sciences BSD";
3241            case ANTLRPD: return "ANTLR Software Rights Notice";
3242            case APACHE1_0: return "Apache License 1.0";
3243            case APACHE1_1: return "Apache License 1.1";
3244            case APACHE2_0: return "Apache License 2.0";
3245            case APAFML: return "Adobe Postscript AFM License";
3246            case APL1_0: return "Adaptive Public License 1.0";
3247            case APSL1_0: return "Apple Public Source License 1.0";
3248            case APSL1_1: return "Apple Public Source License 1.1";
3249            case APSL1_2: return "Apple Public Source License 1.2";
3250            case APSL2_0: return "Apple Public Source License 2.0";
3251            case ARTISTIC1_0CL8: return "Artistic License 1.0 w/clause 8";
3252            case ARTISTIC1_0PERL: return "Artistic License 1.0 (Perl)";
3253            case ARTISTIC1_0: return "Artistic License 1.0";
3254            case ARTISTIC2_0: return "Artistic License 2.0";
3255            case BAHYPH: return "Bahyph License";
3256            case BARR: return "Barr License";
3257            case BEERWARE: return "Beerware License";
3258            case BITTORRENT1_0: return "BitTorrent Open Source License v1.0";
3259            case BITTORRENT1_1: return "BitTorrent Open Source License v1.1";
3260            case BORCEUX: return "Borceux license";
3261            case BSD1CLAUSE: return "BSD 1-Clause License";
3262            case BSD2CLAUSEFREEBSD: return "BSD 2-Clause FreeBSD License";
3263            case BSD2CLAUSENETBSD: return "BSD 2-Clause NetBSD License";
3264            case BSD2CLAUSEPATENT: return "BSD-2-Clause Plus Patent License";
3265            case BSD2CLAUSE: return "BSD 2-Clause \"Simplified\" License";
3266            case BSD3CLAUSEATTRIBUTION: return "BSD with attribution";
3267            case BSD3CLAUSECLEAR: return "BSD 3-Clause Clear License";
3268            case BSD3CLAUSELBNL: return "Lawrence Berkeley National Labs BSD variant license";
3269            case BSD3CLAUSENONUCLEARLICENSE2014: return "BSD 3-Clause No Nuclear License 2014";
3270            case BSD3CLAUSENONUCLEARLICENSE: return "BSD 3-Clause No Nuclear License";
3271            case BSD3CLAUSENONUCLEARWARRANTY: return "BSD 3-Clause No Nuclear Warranty";
3272            case BSD3CLAUSE: return "BSD 3-Clause \"New\" or \"Revised\" License";
3273            case BSD4CLAUSEUC: return "BSD-4-Clause (University of California-Specific)";
3274            case BSD4CLAUSE: return "BSD 4-Clause \"Original\" or \"Old\" License";
3275            case BSDPROTECTION: return "BSD Protection License";
3276            case BSDSOURCECODE: return "BSD Source Code Attribution";
3277            case BSL1_0: return "Boost Software License 1.0";
3278            case BZIP21_0_5: return "bzip2 and libbzip2 License v1.0.5";
3279            case BZIP21_0_6: return "bzip2 and libbzip2 License v1.0.6";
3280            case CALDERA: return "Caldera License";
3281            case CATOSL1_1: return "Computer Associates Trusted Open Source License 1.1";
3282            case CCBY1_0: return "Creative Commons Attribution 1.0 Generic";
3283            case CCBY2_0: return "Creative Commons Attribution 2.0 Generic";
3284            case CCBY2_5: return "Creative Commons Attribution 2.5 Generic";
3285            case CCBY3_0: return "Creative Commons Attribution 3.0 Unported";
3286            case CCBY4_0: return "Creative Commons Attribution 4.0 International";
3287            case CCBYNC1_0: return "Creative Commons Attribution Non Commercial 1.0 Generic";
3288            case CCBYNC2_0: return "Creative Commons Attribution Non Commercial 2.0 Generic";
3289            case CCBYNC2_5: return "Creative Commons Attribution Non Commercial 2.5 Generic";
3290            case CCBYNC3_0: return "Creative Commons Attribution Non Commercial 3.0 Unported";
3291            case CCBYNC4_0: return "Creative Commons Attribution Non Commercial 4.0 International";
3292            case CCBYNCND1_0: return "Creative Commons Attribution Non Commercial No Derivatives 1.0 Generic";
3293            case CCBYNCND2_0: return "Creative Commons Attribution Non Commercial No Derivatives 2.0 Generic";
3294            case CCBYNCND2_5: return "Creative Commons Attribution Non Commercial No Derivatives 2.5 Generic";
3295            case CCBYNCND3_0: return "Creative Commons Attribution Non Commercial No Derivatives 3.0 Unported";
3296            case CCBYNCND4_0: return "Creative Commons Attribution Non Commercial No Derivatives 4.0 International";
3297            case CCBYNCSA1_0: return "Creative Commons Attribution Non Commercial Share Alike 1.0 Generic";
3298            case CCBYNCSA2_0: return "Creative Commons Attribution Non Commercial Share Alike 2.0 Generic";
3299            case CCBYNCSA2_5: return "Creative Commons Attribution Non Commercial Share Alike 2.5 Generic";
3300            case CCBYNCSA3_0: return "Creative Commons Attribution Non Commercial Share Alike 3.0 Unported";
3301            case CCBYNCSA4_0: return "Creative Commons Attribution Non Commercial Share Alike 4.0 International";
3302            case CCBYND1_0: return "Creative Commons Attribution No Derivatives 1.0 Generic";
3303            case CCBYND2_0: return "Creative Commons Attribution No Derivatives 2.0 Generic";
3304            case CCBYND2_5: return "Creative Commons Attribution No Derivatives 2.5 Generic";
3305            case CCBYND3_0: return "Creative Commons Attribution No Derivatives 3.0 Unported";
3306            case CCBYND4_0: return "Creative Commons Attribution No Derivatives 4.0 International";
3307            case CCBYSA1_0: return "Creative Commons Attribution Share Alike 1.0 Generic";
3308            case CCBYSA2_0: return "Creative Commons Attribution Share Alike 2.0 Generic";
3309            case CCBYSA2_5: return "Creative Commons Attribution Share Alike 2.5 Generic";
3310            case CCBYSA3_0: return "Creative Commons Attribution Share Alike 3.0 Unported";
3311            case CCBYSA4_0: return "Creative Commons Attribution Share Alike 4.0 International";
3312            case CC01_0: return "Creative Commons Zero v1.0 Universal";
3313            case CDDL1_0: return "Common Development and Distribution License 1.0";
3314            case CDDL1_1: return "Common Development and Distribution License 1.1";
3315            case CDLAPERMISSIVE1_0: return "Community Data License Agreement Permissive 1.0";
3316            case CDLASHARING1_0: return "Community Data License Agreement Sharing 1.0";
3317            case CECILL1_0: return "CeCILL Free Software License Agreement v1.0";
3318            case CECILL1_1: return "CeCILL Free Software License Agreement v1.1";
3319            case CECILL2_0: return "CeCILL Free Software License Agreement v2.0";
3320            case CECILL2_1: return "CeCILL Free Software License Agreement v2.1";
3321            case CECILLB: return "CeCILL-B Free Software License Agreement";
3322            case CECILLC: return "CeCILL-C Free Software License Agreement";
3323            case CLARTISTIC: return "Clarified Artistic License";
3324            case CNRIJYTHON: return "CNRI Jython License";
3325            case CNRIPYTHONGPLCOMPATIBLE: return "CNRI Python Open Source GPL Compatible License Agreement";
3326            case CNRIPYTHON: return "CNRI Python License";
3327            case CONDOR1_1: return "Condor Public License v1.1";
3328            case CPAL1_0: return "Common Public Attribution License 1.0";
3329            case CPL1_0: return "Common Public License 1.0";
3330            case CPOL1_02: return "Code Project Open License 1.02";
3331            case CROSSWORD: return "Crossword License";
3332            case CRYSTALSTACKER: return "CrystalStacker License";
3333            case CUAOPL1_0: return "CUA Office Public License v1.0";
3334            case CUBE: return "Cube License";
3335            case CURL: return "curl License";
3336            case DFSL1_0: return "Deutsche Freie Software Lizenz";
3337            case DIFFMARK: return "diffmark license";
3338            case DOC: return "DOC License";
3339            case DOTSEQN: return "Dotseqn License";
3340            case DSDP: return "DSDP License";
3341            case DVIPDFM: return "dvipdfm License";
3342            case ECL1_0: return "Educational Community License v1.0";
3343            case ECL2_0: return "Educational Community License v2.0";
3344            case EFL1_0: return "Eiffel Forum License v1.0";
3345            case EFL2_0: return "Eiffel Forum License v2.0";
3346            case EGENIX: return "eGenix.com Public License 1.1.0";
3347            case ENTESSA: return "Entessa Public License v1.0";
3348            case EPL1_0: return "Eclipse Public License 1.0";
3349            case EPL2_0: return "Eclipse Public License 2.0";
3350            case ERLPL1_1: return "Erlang Public License v1.1";
3351            case EUDATAGRID: return "EU DataGrid Software License";
3352            case EUPL1_0: return "European Union Public License 1.0";
3353            case EUPL1_1: return "European Union Public License 1.1";
3354            case EUPL1_2: return "European Union Public License 1.2";
3355            case EUROSYM: return "Eurosym License";
3356            case FAIR: return "Fair License";
3357            case FRAMEWORX1_0: return "Frameworx Open License 1.0";
3358            case FREEIMAGE: return "FreeImage Public License v1.0";
3359            case FSFAP: return "FSF All Permissive License";
3360            case FSFUL: return "FSF Unlimited License";
3361            case FSFULLR: return "FSF Unlimited License (with License Retention)";
3362            case FTL: return "Freetype Project License";
3363            case GFDL1_1ONLY: return "GNU Free Documentation License v1.1 only";
3364            case GFDL1_1ORLATER: return "GNU Free Documentation License v1.1 or later";
3365            case GFDL1_2ONLY: return "GNU Free Documentation License v1.2 only";
3366            case GFDL1_2ORLATER: return "GNU Free Documentation License v1.2 or later";
3367            case GFDL1_3ONLY: return "GNU Free Documentation License v1.3 only";
3368            case GFDL1_3ORLATER: return "GNU Free Documentation License v1.3 or later";
3369            case GIFTWARE: return "Giftware License";
3370            case GL2PS: return "GL2PS License";
3371            case GLIDE: return "3dfx Glide License";
3372            case GLULXE: return "Glulxe License";
3373            case GNUPLOT: return "gnuplot License";
3374            case GPL1_0ONLY: return "GNU General Public License v1.0 only";
3375            case GPL1_0ORLATER: return "GNU General Public License v1.0 or later";
3376            case GPL2_0ONLY: return "GNU General Public License v2.0 only";
3377            case GPL2_0ORLATER: return "GNU General Public License v2.0 or later";
3378            case GPL3_0ONLY: return "GNU General Public License v3.0 only";
3379            case GPL3_0ORLATER: return "GNU General Public License v3.0 or later";
3380            case GSOAP1_3B: return "gSOAP Public License v1.3b";
3381            case HASKELLREPORT: return "Haskell Language Report License";
3382            case HPND: return "Historical Permission Notice and Disclaimer";
3383            case IBMPIBS: return "IBM PowerPC Initialization and Boot Software";
3384            case ICU: return "ICU License";
3385            case IJG: return "Independent JPEG Group License";
3386            case IMAGEMAGICK: return "ImageMagick License";
3387            case IMATIX: return "iMatix Standard Function Library Agreement";
3388            case IMLIB2: return "Imlib2 License";
3389            case INFOZIP: return "Info-ZIP License";
3390            case INTELACPI: return "Intel ACPI Software License Agreement";
3391            case INTEL: return "Intel Open Source License";
3392            case INTERBASE1_0: return "Interbase Public License v1.0";
3393            case IPA: return "IPA Font License";
3394            case IPL1_0: return "IBM Public License v1.0";
3395            case ISC: return "ISC License";
3396            case JASPER2_0: return "JasPer License";
3397            case JSON: return "JSON License";
3398            case LAL1_2: return "Licence Art Libre 1.2";
3399            case LAL1_3: return "Licence Art Libre 1.3";
3400            case LATEX2E: return "Latex2e License";
3401            case LEPTONICA: return "Leptonica License";
3402            case LGPL2_0ONLY: return "GNU Library General Public License v2 only";
3403            case LGPL2_0ORLATER: return "GNU Library General Public License v2 or later";
3404            case LGPL2_1ONLY: return "GNU Lesser General Public License v2.1 only";
3405            case LGPL2_1ORLATER: return "GNU Lesser General Public License v2.1 or later";
3406            case LGPL3_0ONLY: return "GNU Lesser General Public License v3.0 only";
3407            case LGPL3_0ORLATER: return "GNU Lesser General Public License v3.0 or later";
3408            case LGPLLR: return "Lesser General Public License For Linguistic Resources";
3409            case LIBPNG: return "libpng License";
3410            case LIBTIFF: return "libtiff License";
3411            case LILIQP1_1: return "Licence Libre du Québec – Permissive version 1.1";
3412            case LILIQR1_1: return "Licence Libre du Québec – Réciprocité version 1.1";
3413            case LILIQRPLUS1_1: return "Licence Libre du Québec – Réciprocité forte version 1.1";
3414            case LINUXOPENIB: return "Linux Kernel Variant of OpenIB.org license";
3415            case LPL1_0: return "Lucent Public License Version 1.0";
3416            case LPL1_02: return "Lucent Public License v1.02";
3417            case LPPL1_0: return "LaTeX Project Public License v1.0";
3418            case LPPL1_1: return "LaTeX Project Public License v1.1";
3419            case LPPL1_2: return "LaTeX Project Public License v1.2";
3420            case LPPL1_3A: return "LaTeX Project Public License v1.3a";
3421            case LPPL1_3C: return "LaTeX Project Public License v1.3c";
3422            case MAKEINDEX: return "MakeIndex License";
3423            case MIROS: return "MirOS License";
3424            case MIT0: return "MIT No Attribution";
3425            case MITADVERTISING: return "Enlightenment License (e16)";
3426            case MITCMU: return "CMU License";
3427            case MITENNA: return "enna License";
3428            case MITFEH: return "feh License";
3429            case MIT: return "MIT License";
3430            case MITNFA: return "MIT +no-false-attribs license";
3431            case MOTOSOTO: return "Motosoto License";
3432            case MPICH2: return "mpich2 License";
3433            case MPL1_0: return "Mozilla Public License 1.0";
3434            case MPL1_1: return "Mozilla Public License 1.1";
3435            case MPL2_0NOCOPYLEFTEXCEPTION: return "Mozilla Public License 2.0 (no copyleft exception)";
3436            case MPL2_0: return "Mozilla Public License 2.0";
3437            case MSPL: return "Microsoft Public License";
3438            case MSRL: return "Microsoft Reciprocal License";
3439            case MTLL: return "Matrix Template Library License";
3440            case MULTICS: return "Multics License";
3441            case MUP: return "Mup License";
3442            case NASA1_3: return "NASA Open Source Agreement 1.3";
3443            case NAUMEN: return "Naumen Public License";
3444            case NBPL1_0: return "Net Boolean Public License v1";
3445            case NCSA: return "University of Illinois/NCSA Open Source License";
3446            case NETSNMP: return "Net-SNMP License";
3447            case NETCDF: return "NetCDF license";
3448            case NEWSLETR: return "Newsletr License";
3449            case NGPL: return "Nethack General Public License";
3450            case NLOD1_0: return "Norwegian Licence for Open Government Data";
3451            case NLPL: return "No Limit Public License";
3452            case NOKIA: return "Nokia Open Source License";
3453            case NOSL: return "Netizen Open Source License";
3454            case NOWEB: return "Noweb License";
3455            case NPL1_0: return "Netscape Public License v1.0";
3456            case NPL1_1: return "Netscape Public License v1.1";
3457            case NPOSL3_0: return "Non-Profit Open Software License 3.0";
3458            case NRL: return "NRL License";
3459            case NTP: return "NTP License";
3460            case OCCTPL: return "Open CASCADE Technology Public License";
3461            case OCLC2_0: return "OCLC Research Public License 2.0";
3462            case ODBL1_0: return "ODC Open Database License v1.0";
3463            case OFL1_0: return "SIL Open Font License 1.0";
3464            case OFL1_1: return "SIL Open Font License 1.1";
3465            case OGTSL: return "Open Group Test Suite License";
3466            case OLDAP1_1: return "Open LDAP Public License v1.1";
3467            case OLDAP1_2: return "Open LDAP Public License v1.2";
3468            case OLDAP1_3: return "Open LDAP Public License v1.3";
3469            case OLDAP1_4: return "Open LDAP Public License v1.4";
3470            case OLDAP2_0_1: return "Open LDAP Public License v2.0.1";
3471            case OLDAP2_0: return "Open LDAP Public License v2.0 (or possibly 2.0A and 2.0B)";
3472            case OLDAP2_1: return "Open LDAP Public License v2.1";
3473            case OLDAP2_2_1: return "Open LDAP Public License v2.2.1";
3474            case OLDAP2_2_2: return "Open LDAP Public License 2.2.2";
3475            case OLDAP2_2: return "Open LDAP Public License v2.2";
3476            case OLDAP2_3: return "Open LDAP Public License v2.3";
3477            case OLDAP2_4: return "Open LDAP Public License v2.4";
3478            case OLDAP2_5: return "Open LDAP Public License v2.5";
3479            case OLDAP2_6: return "Open LDAP Public License v2.6";
3480            case OLDAP2_7: return "Open LDAP Public License v2.7";
3481            case OLDAP2_8: return "Open LDAP Public License v2.8";
3482            case OML: return "Open Market License";
3483            case OPENSSL: return "OpenSSL License";
3484            case OPL1_0: return "Open Public License v1.0";
3485            case OSETPL2_1: return "OSET Public License version 2.1";
3486            case OSL1_0: return "Open Software License 1.0";
3487            case OSL1_1: return "Open Software License 1.1";
3488            case OSL2_0: return "Open Software License 2.0";
3489            case OSL2_1: return "Open Software License 2.1";
3490            case OSL3_0: return "Open Software License 3.0";
3491            case PDDL1_0: return "ODC Public Domain Dedication & License 1.0";
3492            case PHP3_0: return "PHP License v3.0";
3493            case PHP3_01: return "PHP License v3.01";
3494            case PLEXUS: return "Plexus Classworlds License";
3495            case POSTGRESQL: return "PostgreSQL License";
3496            case PSFRAG: return "psfrag License";
3497            case PSUTILS: return "psutils License";
3498            case PYTHON2_0: return "Python License 2.0";
3499            case QHULL: return "Qhull License";
3500            case QPL1_0: return "Q Public License 1.0";
3501            case RDISC: return "Rdisc License";
3502            case RHECOS1_1: return "Red Hat eCos Public License v1.1";
3503            case RPL1_1: return "Reciprocal Public License 1.1";
3504            case RPL1_5: return "Reciprocal Public License 1.5";
3505            case RPSL1_0: return "RealNetworks Public Source License v1.0";
3506            case RSAMD: return "RSA Message-Digest License";
3507            case RSCPL: return "Ricoh Source Code Public License";
3508            case RUBY: return "Ruby License";
3509            case SAXPD: return "Sax Public Domain Notice";
3510            case SAXPATH: return "Saxpath License";
3511            case SCEA: return "SCEA Shared Source License";
3512            case SENDMAIL: return "Sendmail License";
3513            case SGIB1_0: return "SGI Free Software License B v1.0";
3514            case SGIB1_1: return "SGI Free Software License B v1.1";
3515            case SGIB2_0: return "SGI Free Software License B v2.0";
3516            case SIMPL2_0: return "Simple Public License 2.0";
3517            case SISSL1_2: return "Sun Industry Standards Source License v1.2";
3518            case SISSL: return "Sun Industry Standards Source License v1.1";
3519            case SLEEPYCAT: return "Sleepycat License";
3520            case SMLNJ: return "Standard ML of New Jersey License";
3521            case SMPPL: return "Secure Messaging Protocol Public License";
3522            case SNIA: return "SNIA Public License 1.1";
3523            case SPENCER86: return "Spencer License 86";
3524            case SPENCER94: return "Spencer License 94";
3525            case SPENCER99: return "Spencer License 99";
3526            case SPL1_0: return "Sun Public License v1.0";
3527            case SUGARCRM1_1_3: return "SugarCRM Public License v1.1.3";
3528            case SWL: return "Scheme Widget Library (SWL) Software License Agreement";
3529            case TCL: return "TCL/TK License";
3530            case TCPWRAPPERS: return "TCP Wrappers License";
3531            case TMATE: return "TMate Open Source License";
3532            case TORQUE1_1: return "TORQUE v2.5+ Software License v1.1";
3533            case TOSL: return "Trusster Open Source License";
3534            case UNICODEDFS2015: return "Unicode License Agreement - Data Files and Software (2015)";
3535            case UNICODEDFS2016: return "Unicode License Agreement - Data Files and Software (2016)";
3536            case UNICODETOU: return "Unicode Terms of Use";
3537            case UNLICENSE: return "The Unlicense";
3538            case UPL1_0: return "Universal Permissive License v1.0";
3539            case VIM: return "Vim License";
3540            case VOSTROM: return "VOSTROM Public License for Open Source";
3541            case VSL1_0: return "Vovida Software License v1.0";
3542            case W3C19980720: return "W3C Software Notice and License (1998-07-20)";
3543            case W3C20150513: return "W3C Software Notice and Document License (2015-05-13)";
3544            case W3C: return "W3C Software Notice and License (2002-12-31)";
3545            case WATCOM1_0: return "Sybase Open Watcom Public License 1.0";
3546            case WSUIPA: return "Wsuipa License";
3547            case WTFPL: return "Do What The F*ck You Want To Public License";
3548            case X11: return "X11 License";
3549            case XEROX: return "Xerox License";
3550            case XFREE861_1: return "XFree86 License 1.1";
3551            case XINETD: return "xinetd License";
3552            case XNET: return "X.Net License";
3553            case XPP: return "XPP License";
3554            case XSKAT: return "XSkat License";
3555            case YPL1_0: return "Yahoo! Public License v1.0";
3556            case YPL1_1: return "Yahoo! Public License v1.1";
3557            case ZED: return "Zed License";
3558            case ZEND2_0: return "Zend License v2.0";
3559            case ZIMBRA1_3: return "Zimbra Public License v1.3";
3560            case ZIMBRA1_4: return "Zimbra Public License v1.4";
3561            case ZLIBACKNOWLEDGEMENT: return "zlib/libpng License with Acknowledgement";
3562            case ZLIB: return "zlib License";
3563            case ZPL1_1: return "Zope Public License 1.1";
3564            case ZPL2_0: return "Zope Public License 2.0";
3565            case ZPL2_1: return "Zope Public License 2.1";
3566            default: return "?";
3567          }
3568        }
3569    }
3570
3571  public static class SPDXLicenseEnumFactory implements EnumFactory<SPDXLicense> {
3572    public SPDXLicense fromCode(String codeString) throws IllegalArgumentException {
3573      if (codeString == null || "".equals(codeString))
3574            if (codeString == null || "".equals(codeString))
3575                return null;
3576        if ("not-open-source".equals(codeString))
3577          return SPDXLicense.NOTOPENSOURCE;
3578        if ("0BSD".equals(codeString))
3579          return SPDXLicense._0BSD;
3580        if ("AAL".equals(codeString))
3581          return SPDXLicense.AAL;
3582        if ("Abstyles".equals(codeString))
3583          return SPDXLicense.ABSTYLES;
3584        if ("Adobe-2006".equals(codeString))
3585          return SPDXLicense.ADOBE2006;
3586        if ("Adobe-Glyph".equals(codeString))
3587          return SPDXLicense.ADOBEGLYPH;
3588        if ("ADSL".equals(codeString))
3589          return SPDXLicense.ADSL;
3590        if ("AFL-1.1".equals(codeString))
3591          return SPDXLicense.AFL1_1;
3592        if ("AFL-1.2".equals(codeString))
3593          return SPDXLicense.AFL1_2;
3594        if ("AFL-2.0".equals(codeString))
3595          return SPDXLicense.AFL2_0;
3596        if ("AFL-2.1".equals(codeString))
3597          return SPDXLicense.AFL2_1;
3598        if ("AFL-3.0".equals(codeString))
3599          return SPDXLicense.AFL3_0;
3600        if ("Afmparse".equals(codeString))
3601          return SPDXLicense.AFMPARSE;
3602        if ("AGPL-1.0-only".equals(codeString))
3603          return SPDXLicense.AGPL1_0ONLY;
3604        if ("AGPL-1.0-or-later".equals(codeString))
3605          return SPDXLicense.AGPL1_0ORLATER;
3606        if ("AGPL-3.0-only".equals(codeString))
3607          return SPDXLicense.AGPL3_0ONLY;
3608        if ("AGPL-3.0-or-later".equals(codeString))
3609          return SPDXLicense.AGPL3_0ORLATER;
3610        if ("Aladdin".equals(codeString))
3611          return SPDXLicense.ALADDIN;
3612        if ("AMDPLPA".equals(codeString))
3613          return SPDXLicense.AMDPLPA;
3614        if ("AML".equals(codeString))
3615          return SPDXLicense.AML;
3616        if ("AMPAS".equals(codeString))
3617          return SPDXLicense.AMPAS;
3618        if ("ANTLR-PD".equals(codeString))
3619          return SPDXLicense.ANTLRPD;
3620        if ("Apache-1.0".equals(codeString))
3621          return SPDXLicense.APACHE1_0;
3622        if ("Apache-1.1".equals(codeString))
3623          return SPDXLicense.APACHE1_1;
3624        if ("Apache-2.0".equals(codeString))
3625          return SPDXLicense.APACHE2_0;
3626        if ("APAFML".equals(codeString))
3627          return SPDXLicense.APAFML;
3628        if ("APL-1.0".equals(codeString))
3629          return SPDXLicense.APL1_0;
3630        if ("APSL-1.0".equals(codeString))
3631          return SPDXLicense.APSL1_0;
3632        if ("APSL-1.1".equals(codeString))
3633          return SPDXLicense.APSL1_1;
3634        if ("APSL-1.2".equals(codeString))
3635          return SPDXLicense.APSL1_2;
3636        if ("APSL-2.0".equals(codeString))
3637          return SPDXLicense.APSL2_0;
3638        if ("Artistic-1.0-cl8".equals(codeString))
3639          return SPDXLicense.ARTISTIC1_0CL8;
3640        if ("Artistic-1.0-Perl".equals(codeString))
3641          return SPDXLicense.ARTISTIC1_0PERL;
3642        if ("Artistic-1.0".equals(codeString))
3643          return SPDXLicense.ARTISTIC1_0;
3644        if ("Artistic-2.0".equals(codeString))
3645          return SPDXLicense.ARTISTIC2_0;
3646        if ("Bahyph".equals(codeString))
3647          return SPDXLicense.BAHYPH;
3648        if ("Barr".equals(codeString))
3649          return SPDXLicense.BARR;
3650        if ("Beerware".equals(codeString))
3651          return SPDXLicense.BEERWARE;
3652        if ("BitTorrent-1.0".equals(codeString))
3653          return SPDXLicense.BITTORRENT1_0;
3654        if ("BitTorrent-1.1".equals(codeString))
3655          return SPDXLicense.BITTORRENT1_1;
3656        if ("Borceux".equals(codeString))
3657          return SPDXLicense.BORCEUX;
3658        if ("BSD-1-Clause".equals(codeString))
3659          return SPDXLicense.BSD1CLAUSE;
3660        if ("BSD-2-Clause-FreeBSD".equals(codeString))
3661          return SPDXLicense.BSD2CLAUSEFREEBSD;
3662        if ("BSD-2-Clause-NetBSD".equals(codeString))
3663          return SPDXLicense.BSD2CLAUSENETBSD;
3664        if ("BSD-2-Clause-Patent".equals(codeString))
3665          return SPDXLicense.BSD2CLAUSEPATENT;
3666        if ("BSD-2-Clause".equals(codeString))
3667          return SPDXLicense.BSD2CLAUSE;
3668        if ("BSD-3-Clause-Attribution".equals(codeString))
3669          return SPDXLicense.BSD3CLAUSEATTRIBUTION;
3670        if ("BSD-3-Clause-Clear".equals(codeString))
3671          return SPDXLicense.BSD3CLAUSECLEAR;
3672        if ("BSD-3-Clause-LBNL".equals(codeString))
3673          return SPDXLicense.BSD3CLAUSELBNL;
3674        if ("BSD-3-Clause-No-Nuclear-License-2014".equals(codeString))
3675          return SPDXLicense.BSD3CLAUSENONUCLEARLICENSE2014;
3676        if ("BSD-3-Clause-No-Nuclear-License".equals(codeString))
3677          return SPDXLicense.BSD3CLAUSENONUCLEARLICENSE;
3678        if ("BSD-3-Clause-No-Nuclear-Warranty".equals(codeString))
3679          return SPDXLicense.BSD3CLAUSENONUCLEARWARRANTY;
3680        if ("BSD-3-Clause".equals(codeString))
3681          return SPDXLicense.BSD3CLAUSE;
3682        if ("BSD-4-Clause-UC".equals(codeString))
3683          return SPDXLicense.BSD4CLAUSEUC;
3684        if ("BSD-4-Clause".equals(codeString))
3685          return SPDXLicense.BSD4CLAUSE;
3686        if ("BSD-Protection".equals(codeString))
3687          return SPDXLicense.BSDPROTECTION;
3688        if ("BSD-Source-Code".equals(codeString))
3689          return SPDXLicense.BSDSOURCECODE;
3690        if ("BSL-1.0".equals(codeString))
3691          return SPDXLicense.BSL1_0;
3692        if ("bzip2-1.0.5".equals(codeString))
3693          return SPDXLicense.BZIP21_0_5;
3694        if ("bzip2-1.0.6".equals(codeString))
3695          return SPDXLicense.BZIP21_0_6;
3696        if ("Caldera".equals(codeString))
3697          return SPDXLicense.CALDERA;
3698        if ("CATOSL-1.1".equals(codeString))
3699          return SPDXLicense.CATOSL1_1;
3700        if ("CC-BY-1.0".equals(codeString))
3701          return SPDXLicense.CCBY1_0;
3702        if ("CC-BY-2.0".equals(codeString))
3703          return SPDXLicense.CCBY2_0;
3704        if ("CC-BY-2.5".equals(codeString))
3705          return SPDXLicense.CCBY2_5;
3706        if ("CC-BY-3.0".equals(codeString))
3707          return SPDXLicense.CCBY3_0;
3708        if ("CC-BY-4.0".equals(codeString))
3709          return SPDXLicense.CCBY4_0;
3710        if ("CC-BY-NC-1.0".equals(codeString))
3711          return SPDXLicense.CCBYNC1_0;
3712        if ("CC-BY-NC-2.0".equals(codeString))
3713          return SPDXLicense.CCBYNC2_0;
3714        if ("CC-BY-NC-2.5".equals(codeString))
3715          return SPDXLicense.CCBYNC2_5;
3716        if ("CC-BY-NC-3.0".equals(codeString))
3717          return SPDXLicense.CCBYNC3_0;
3718        if ("CC-BY-NC-4.0".equals(codeString))
3719          return SPDXLicense.CCBYNC4_0;
3720        if ("CC-BY-NC-ND-1.0".equals(codeString))
3721          return SPDXLicense.CCBYNCND1_0;
3722        if ("CC-BY-NC-ND-2.0".equals(codeString))
3723          return SPDXLicense.CCBYNCND2_0;
3724        if ("CC-BY-NC-ND-2.5".equals(codeString))
3725          return SPDXLicense.CCBYNCND2_5;
3726        if ("CC-BY-NC-ND-3.0".equals(codeString))
3727          return SPDXLicense.CCBYNCND3_0;
3728        if ("CC-BY-NC-ND-4.0".equals(codeString))
3729          return SPDXLicense.CCBYNCND4_0;
3730        if ("CC-BY-NC-SA-1.0".equals(codeString))
3731          return SPDXLicense.CCBYNCSA1_0;
3732        if ("CC-BY-NC-SA-2.0".equals(codeString))
3733          return SPDXLicense.CCBYNCSA2_0;
3734        if ("CC-BY-NC-SA-2.5".equals(codeString))
3735          return SPDXLicense.CCBYNCSA2_5;
3736        if ("CC-BY-NC-SA-3.0".equals(codeString))
3737          return SPDXLicense.CCBYNCSA3_0;
3738        if ("CC-BY-NC-SA-4.0".equals(codeString))
3739          return SPDXLicense.CCBYNCSA4_0;
3740        if ("CC-BY-ND-1.0".equals(codeString))
3741          return SPDXLicense.CCBYND1_0;
3742        if ("CC-BY-ND-2.0".equals(codeString))
3743          return SPDXLicense.CCBYND2_0;
3744        if ("CC-BY-ND-2.5".equals(codeString))
3745          return SPDXLicense.CCBYND2_5;
3746        if ("CC-BY-ND-3.0".equals(codeString))
3747          return SPDXLicense.CCBYND3_0;
3748        if ("CC-BY-ND-4.0".equals(codeString))
3749          return SPDXLicense.CCBYND4_0;
3750        if ("CC-BY-SA-1.0".equals(codeString))
3751          return SPDXLicense.CCBYSA1_0;
3752        if ("CC-BY-SA-2.0".equals(codeString))
3753          return SPDXLicense.CCBYSA2_0;
3754        if ("CC-BY-SA-2.5".equals(codeString))
3755          return SPDXLicense.CCBYSA2_5;
3756        if ("CC-BY-SA-3.0".equals(codeString))
3757          return SPDXLicense.CCBYSA3_0;
3758        if ("CC-BY-SA-4.0".equals(codeString))
3759          return SPDXLicense.CCBYSA4_0;
3760        if ("CC0-1.0".equals(codeString))
3761          return SPDXLicense.CC01_0;
3762        if ("CDDL-1.0".equals(codeString))
3763          return SPDXLicense.CDDL1_0;
3764        if ("CDDL-1.1".equals(codeString))
3765          return SPDXLicense.CDDL1_1;
3766        if ("CDLA-Permissive-1.0".equals(codeString))
3767          return SPDXLicense.CDLAPERMISSIVE1_0;
3768        if ("CDLA-Sharing-1.0".equals(codeString))
3769          return SPDXLicense.CDLASHARING1_0;
3770        if ("CECILL-1.0".equals(codeString))
3771          return SPDXLicense.CECILL1_0;
3772        if ("CECILL-1.1".equals(codeString))
3773          return SPDXLicense.CECILL1_1;
3774        if ("CECILL-2.0".equals(codeString))
3775          return SPDXLicense.CECILL2_0;
3776        if ("CECILL-2.1".equals(codeString))
3777          return SPDXLicense.CECILL2_1;
3778        if ("CECILL-B".equals(codeString))
3779          return SPDXLicense.CECILLB;
3780        if ("CECILL-C".equals(codeString))
3781          return SPDXLicense.CECILLC;
3782        if ("ClArtistic".equals(codeString))
3783          return SPDXLicense.CLARTISTIC;
3784        if ("CNRI-Jython".equals(codeString))
3785          return SPDXLicense.CNRIJYTHON;
3786        if ("CNRI-Python-GPL-Compatible".equals(codeString))
3787          return SPDXLicense.CNRIPYTHONGPLCOMPATIBLE;
3788        if ("CNRI-Python".equals(codeString))
3789          return SPDXLicense.CNRIPYTHON;
3790        if ("Condor-1.1".equals(codeString))
3791          return SPDXLicense.CONDOR1_1;
3792        if ("CPAL-1.0".equals(codeString))
3793          return SPDXLicense.CPAL1_0;
3794        if ("CPL-1.0".equals(codeString))
3795          return SPDXLicense.CPL1_0;
3796        if ("CPOL-1.02".equals(codeString))
3797          return SPDXLicense.CPOL1_02;
3798        if ("Crossword".equals(codeString))
3799          return SPDXLicense.CROSSWORD;
3800        if ("CrystalStacker".equals(codeString))
3801          return SPDXLicense.CRYSTALSTACKER;
3802        if ("CUA-OPL-1.0".equals(codeString))
3803          return SPDXLicense.CUAOPL1_0;
3804        if ("Cube".equals(codeString))
3805          return SPDXLicense.CUBE;
3806        if ("curl".equals(codeString))
3807          return SPDXLicense.CURL;
3808        if ("D-FSL-1.0".equals(codeString))
3809          return SPDXLicense.DFSL1_0;
3810        if ("diffmark".equals(codeString))
3811          return SPDXLicense.DIFFMARK;
3812        if ("DOC".equals(codeString))
3813          return SPDXLicense.DOC;
3814        if ("Dotseqn".equals(codeString))
3815          return SPDXLicense.DOTSEQN;
3816        if ("DSDP".equals(codeString))
3817          return SPDXLicense.DSDP;
3818        if ("dvipdfm".equals(codeString))
3819          return SPDXLicense.DVIPDFM;
3820        if ("ECL-1.0".equals(codeString))
3821          return SPDXLicense.ECL1_0;
3822        if ("ECL-2.0".equals(codeString))
3823          return SPDXLicense.ECL2_0;
3824        if ("EFL-1.0".equals(codeString))
3825          return SPDXLicense.EFL1_0;
3826        if ("EFL-2.0".equals(codeString))
3827          return SPDXLicense.EFL2_0;
3828        if ("eGenix".equals(codeString))
3829          return SPDXLicense.EGENIX;
3830        if ("Entessa".equals(codeString))
3831          return SPDXLicense.ENTESSA;
3832        if ("EPL-1.0".equals(codeString))
3833          return SPDXLicense.EPL1_0;
3834        if ("EPL-2.0".equals(codeString))
3835          return SPDXLicense.EPL2_0;
3836        if ("ErlPL-1.1".equals(codeString))
3837          return SPDXLicense.ERLPL1_1;
3838        if ("EUDatagrid".equals(codeString))
3839          return SPDXLicense.EUDATAGRID;
3840        if ("EUPL-1.0".equals(codeString))
3841          return SPDXLicense.EUPL1_0;
3842        if ("EUPL-1.1".equals(codeString))
3843          return SPDXLicense.EUPL1_1;
3844        if ("EUPL-1.2".equals(codeString))
3845          return SPDXLicense.EUPL1_2;
3846        if ("Eurosym".equals(codeString))
3847          return SPDXLicense.EUROSYM;
3848        if ("Fair".equals(codeString))
3849          return SPDXLicense.FAIR;
3850        if ("Frameworx-1.0".equals(codeString))
3851          return SPDXLicense.FRAMEWORX1_0;
3852        if ("FreeImage".equals(codeString))
3853          return SPDXLicense.FREEIMAGE;
3854        if ("FSFAP".equals(codeString))
3855          return SPDXLicense.FSFAP;
3856        if ("FSFUL".equals(codeString))
3857          return SPDXLicense.FSFUL;
3858        if ("FSFULLR".equals(codeString))
3859          return SPDXLicense.FSFULLR;
3860        if ("FTL".equals(codeString))
3861          return SPDXLicense.FTL;
3862        if ("GFDL-1.1-only".equals(codeString))
3863          return SPDXLicense.GFDL1_1ONLY;
3864        if ("GFDL-1.1-or-later".equals(codeString))
3865          return SPDXLicense.GFDL1_1ORLATER;
3866        if ("GFDL-1.2-only".equals(codeString))
3867          return SPDXLicense.GFDL1_2ONLY;
3868        if ("GFDL-1.2-or-later".equals(codeString))
3869          return SPDXLicense.GFDL1_2ORLATER;
3870        if ("GFDL-1.3-only".equals(codeString))
3871          return SPDXLicense.GFDL1_3ONLY;
3872        if ("GFDL-1.3-or-later".equals(codeString))
3873          return SPDXLicense.GFDL1_3ORLATER;
3874        if ("Giftware".equals(codeString))
3875          return SPDXLicense.GIFTWARE;
3876        if ("GL2PS".equals(codeString))
3877          return SPDXLicense.GL2PS;
3878        if ("Glide".equals(codeString))
3879          return SPDXLicense.GLIDE;
3880        if ("Glulxe".equals(codeString))
3881          return SPDXLicense.GLULXE;
3882        if ("gnuplot".equals(codeString))
3883          return SPDXLicense.GNUPLOT;
3884        if ("GPL-1.0-only".equals(codeString))
3885          return SPDXLicense.GPL1_0ONLY;
3886        if ("GPL-1.0-or-later".equals(codeString))
3887          return SPDXLicense.GPL1_0ORLATER;
3888        if ("GPL-2.0-only".equals(codeString))
3889          return SPDXLicense.GPL2_0ONLY;
3890        if ("GPL-2.0-or-later".equals(codeString))
3891          return SPDXLicense.GPL2_0ORLATER;
3892        if ("GPL-3.0-only".equals(codeString))
3893          return SPDXLicense.GPL3_0ONLY;
3894        if ("GPL-3.0-or-later".equals(codeString))
3895          return SPDXLicense.GPL3_0ORLATER;
3896        if ("gSOAP-1.3b".equals(codeString))
3897          return SPDXLicense.GSOAP1_3B;
3898        if ("HaskellReport".equals(codeString))
3899          return SPDXLicense.HASKELLREPORT;
3900        if ("HPND".equals(codeString))
3901          return SPDXLicense.HPND;
3902        if ("IBM-pibs".equals(codeString))
3903          return SPDXLicense.IBMPIBS;
3904        if ("ICU".equals(codeString))
3905          return SPDXLicense.ICU;
3906        if ("IJG".equals(codeString))
3907          return SPDXLicense.IJG;
3908        if ("ImageMagick".equals(codeString))
3909          return SPDXLicense.IMAGEMAGICK;
3910        if ("iMatix".equals(codeString))
3911          return SPDXLicense.IMATIX;
3912        if ("Imlib2".equals(codeString))
3913          return SPDXLicense.IMLIB2;
3914        if ("Info-ZIP".equals(codeString))
3915          return SPDXLicense.INFOZIP;
3916        if ("Intel-ACPI".equals(codeString))
3917          return SPDXLicense.INTELACPI;
3918        if ("Intel".equals(codeString))
3919          return SPDXLicense.INTEL;
3920        if ("Interbase-1.0".equals(codeString))
3921          return SPDXLicense.INTERBASE1_0;
3922        if ("IPA".equals(codeString))
3923          return SPDXLicense.IPA;
3924        if ("IPL-1.0".equals(codeString))
3925          return SPDXLicense.IPL1_0;
3926        if ("ISC".equals(codeString))
3927          return SPDXLicense.ISC;
3928        if ("JasPer-2.0".equals(codeString))
3929          return SPDXLicense.JASPER2_0;
3930        if ("JSON".equals(codeString))
3931          return SPDXLicense.JSON;
3932        if ("LAL-1.2".equals(codeString))
3933          return SPDXLicense.LAL1_2;
3934        if ("LAL-1.3".equals(codeString))
3935          return SPDXLicense.LAL1_3;
3936        if ("Latex2e".equals(codeString))
3937          return SPDXLicense.LATEX2E;
3938        if ("Leptonica".equals(codeString))
3939          return SPDXLicense.LEPTONICA;
3940        if ("LGPL-2.0-only".equals(codeString))
3941          return SPDXLicense.LGPL2_0ONLY;
3942        if ("LGPL-2.0-or-later".equals(codeString))
3943          return SPDXLicense.LGPL2_0ORLATER;
3944        if ("LGPL-2.1-only".equals(codeString))
3945          return SPDXLicense.LGPL2_1ONLY;
3946        if ("LGPL-2.1-or-later".equals(codeString))
3947          return SPDXLicense.LGPL2_1ORLATER;
3948        if ("LGPL-3.0-only".equals(codeString))
3949          return SPDXLicense.LGPL3_0ONLY;
3950        if ("LGPL-3.0-or-later".equals(codeString))
3951          return SPDXLicense.LGPL3_0ORLATER;
3952        if ("LGPLLR".equals(codeString))
3953          return SPDXLicense.LGPLLR;
3954        if ("Libpng".equals(codeString))
3955          return SPDXLicense.LIBPNG;
3956        if ("libtiff".equals(codeString))
3957          return SPDXLicense.LIBTIFF;
3958        if ("LiLiQ-P-1.1".equals(codeString))
3959          return SPDXLicense.LILIQP1_1;
3960        if ("LiLiQ-R-1.1".equals(codeString))
3961          return SPDXLicense.LILIQR1_1;
3962        if ("LiLiQ-Rplus-1.1".equals(codeString))
3963          return SPDXLicense.LILIQRPLUS1_1;
3964        if ("Linux-OpenIB".equals(codeString))
3965          return SPDXLicense.LINUXOPENIB;
3966        if ("LPL-1.0".equals(codeString))
3967          return SPDXLicense.LPL1_0;
3968        if ("LPL-1.02".equals(codeString))
3969          return SPDXLicense.LPL1_02;
3970        if ("LPPL-1.0".equals(codeString))
3971          return SPDXLicense.LPPL1_0;
3972        if ("LPPL-1.1".equals(codeString))
3973          return SPDXLicense.LPPL1_1;
3974        if ("LPPL-1.2".equals(codeString))
3975          return SPDXLicense.LPPL1_2;
3976        if ("LPPL-1.3a".equals(codeString))
3977          return SPDXLicense.LPPL1_3A;
3978        if ("LPPL-1.3c".equals(codeString))
3979          return SPDXLicense.LPPL1_3C;
3980        if ("MakeIndex".equals(codeString))
3981          return SPDXLicense.MAKEINDEX;
3982        if ("MirOS".equals(codeString))
3983          return SPDXLicense.MIROS;
3984        if ("MIT-0".equals(codeString))
3985          return SPDXLicense.MIT0;
3986        if ("MIT-advertising".equals(codeString))
3987          return SPDXLicense.MITADVERTISING;
3988        if ("MIT-CMU".equals(codeString))
3989          return SPDXLicense.MITCMU;
3990        if ("MIT-enna".equals(codeString))
3991          return SPDXLicense.MITENNA;
3992        if ("MIT-feh".equals(codeString))
3993          return SPDXLicense.MITFEH;
3994        if ("MIT".equals(codeString))
3995          return SPDXLicense.MIT;
3996        if ("MITNFA".equals(codeString))
3997          return SPDXLicense.MITNFA;
3998        if ("Motosoto".equals(codeString))
3999          return SPDXLicense.MOTOSOTO;
4000        if ("mpich2".equals(codeString))
4001          return SPDXLicense.MPICH2;
4002        if ("MPL-1.0".equals(codeString))
4003          return SPDXLicense.MPL1_0;
4004        if ("MPL-1.1".equals(codeString))
4005          return SPDXLicense.MPL1_1;
4006        if ("MPL-2.0-no-copyleft-exception".equals(codeString))
4007          return SPDXLicense.MPL2_0NOCOPYLEFTEXCEPTION;
4008        if ("MPL-2.0".equals(codeString))
4009          return SPDXLicense.MPL2_0;
4010        if ("MS-PL".equals(codeString))
4011          return SPDXLicense.MSPL;
4012        if ("MS-RL".equals(codeString))
4013          return SPDXLicense.MSRL;
4014        if ("MTLL".equals(codeString))
4015          return SPDXLicense.MTLL;
4016        if ("Multics".equals(codeString))
4017          return SPDXLicense.MULTICS;
4018        if ("Mup".equals(codeString))
4019          return SPDXLicense.MUP;
4020        if ("NASA-1.3".equals(codeString))
4021          return SPDXLicense.NASA1_3;
4022        if ("Naumen".equals(codeString))
4023          return SPDXLicense.NAUMEN;
4024        if ("NBPL-1.0".equals(codeString))
4025          return SPDXLicense.NBPL1_0;
4026        if ("NCSA".equals(codeString))
4027          return SPDXLicense.NCSA;
4028        if ("Net-SNMP".equals(codeString))
4029          return SPDXLicense.NETSNMP;
4030        if ("NetCDF".equals(codeString))
4031          return SPDXLicense.NETCDF;
4032        if ("Newsletr".equals(codeString))
4033          return SPDXLicense.NEWSLETR;
4034        if ("NGPL".equals(codeString))
4035          return SPDXLicense.NGPL;
4036        if ("NLOD-1.0".equals(codeString))
4037          return SPDXLicense.NLOD1_0;
4038        if ("NLPL".equals(codeString))
4039          return SPDXLicense.NLPL;
4040        if ("Nokia".equals(codeString))
4041          return SPDXLicense.NOKIA;
4042        if ("NOSL".equals(codeString))
4043          return SPDXLicense.NOSL;
4044        if ("Noweb".equals(codeString))
4045          return SPDXLicense.NOWEB;
4046        if ("NPL-1.0".equals(codeString))
4047          return SPDXLicense.NPL1_0;
4048        if ("NPL-1.1".equals(codeString))
4049          return SPDXLicense.NPL1_1;
4050        if ("NPOSL-3.0".equals(codeString))
4051          return SPDXLicense.NPOSL3_0;
4052        if ("NRL".equals(codeString))
4053          return SPDXLicense.NRL;
4054        if ("NTP".equals(codeString))
4055          return SPDXLicense.NTP;
4056        if ("OCCT-PL".equals(codeString))
4057          return SPDXLicense.OCCTPL;
4058        if ("OCLC-2.0".equals(codeString))
4059          return SPDXLicense.OCLC2_0;
4060        if ("ODbL-1.0".equals(codeString))
4061          return SPDXLicense.ODBL1_0;
4062        if ("OFL-1.0".equals(codeString))
4063          return SPDXLicense.OFL1_0;
4064        if ("OFL-1.1".equals(codeString))
4065          return SPDXLicense.OFL1_1;
4066        if ("OGTSL".equals(codeString))
4067          return SPDXLicense.OGTSL;
4068        if ("OLDAP-1.1".equals(codeString))
4069          return SPDXLicense.OLDAP1_1;
4070        if ("OLDAP-1.2".equals(codeString))
4071          return SPDXLicense.OLDAP1_2;
4072        if ("OLDAP-1.3".equals(codeString))
4073          return SPDXLicense.OLDAP1_3;
4074        if ("OLDAP-1.4".equals(codeString))
4075          return SPDXLicense.OLDAP1_4;
4076        if ("OLDAP-2.0.1".equals(codeString))
4077          return SPDXLicense.OLDAP2_0_1;
4078        if ("OLDAP-2.0".equals(codeString))
4079          return SPDXLicense.OLDAP2_0;
4080        if ("OLDAP-2.1".equals(codeString))
4081          return SPDXLicense.OLDAP2_1;
4082        if ("OLDAP-2.2.1".equals(codeString))
4083          return SPDXLicense.OLDAP2_2_1;
4084        if ("OLDAP-2.2.2".equals(codeString))
4085          return SPDXLicense.OLDAP2_2_2;
4086        if ("OLDAP-2.2".equals(codeString))
4087          return SPDXLicense.OLDAP2_2;
4088        if ("OLDAP-2.3".equals(codeString))
4089          return SPDXLicense.OLDAP2_3;
4090        if ("OLDAP-2.4".equals(codeString))
4091          return SPDXLicense.OLDAP2_4;
4092        if ("OLDAP-2.5".equals(codeString))
4093          return SPDXLicense.OLDAP2_5;
4094        if ("OLDAP-2.6".equals(codeString))
4095          return SPDXLicense.OLDAP2_6;
4096        if ("OLDAP-2.7".equals(codeString))
4097          return SPDXLicense.OLDAP2_7;
4098        if ("OLDAP-2.8".equals(codeString))
4099          return SPDXLicense.OLDAP2_8;
4100        if ("OML".equals(codeString))
4101          return SPDXLicense.OML;
4102        if ("OpenSSL".equals(codeString))
4103          return SPDXLicense.OPENSSL;
4104        if ("OPL-1.0".equals(codeString))
4105          return SPDXLicense.OPL1_0;
4106        if ("OSET-PL-2.1".equals(codeString))
4107          return SPDXLicense.OSETPL2_1;
4108        if ("OSL-1.0".equals(codeString))
4109          return SPDXLicense.OSL1_0;
4110        if ("OSL-1.1".equals(codeString))
4111          return SPDXLicense.OSL1_1;
4112        if ("OSL-2.0".equals(codeString))
4113          return SPDXLicense.OSL2_0;
4114        if ("OSL-2.1".equals(codeString))
4115          return SPDXLicense.OSL2_1;
4116        if ("OSL-3.0".equals(codeString))
4117          return SPDXLicense.OSL3_0;
4118        if ("PDDL-1.0".equals(codeString))
4119          return SPDXLicense.PDDL1_0;
4120        if ("PHP-3.0".equals(codeString))
4121          return SPDXLicense.PHP3_0;
4122        if ("PHP-3.01".equals(codeString))
4123          return SPDXLicense.PHP3_01;
4124        if ("Plexus".equals(codeString))
4125          return SPDXLicense.PLEXUS;
4126        if ("PostgreSQL".equals(codeString))
4127          return SPDXLicense.POSTGRESQL;
4128        if ("psfrag".equals(codeString))
4129          return SPDXLicense.PSFRAG;
4130        if ("psutils".equals(codeString))
4131          return SPDXLicense.PSUTILS;
4132        if ("Python-2.0".equals(codeString))
4133          return SPDXLicense.PYTHON2_0;
4134        if ("Qhull".equals(codeString))
4135          return SPDXLicense.QHULL;
4136        if ("QPL-1.0".equals(codeString))
4137          return SPDXLicense.QPL1_0;
4138        if ("Rdisc".equals(codeString))
4139          return SPDXLicense.RDISC;
4140        if ("RHeCos-1.1".equals(codeString))
4141          return SPDXLicense.RHECOS1_1;
4142        if ("RPL-1.1".equals(codeString))
4143          return SPDXLicense.RPL1_1;
4144        if ("RPL-1.5".equals(codeString))
4145          return SPDXLicense.RPL1_5;
4146        if ("RPSL-1.0".equals(codeString))
4147          return SPDXLicense.RPSL1_0;
4148        if ("RSA-MD".equals(codeString))
4149          return SPDXLicense.RSAMD;
4150        if ("RSCPL".equals(codeString))
4151          return SPDXLicense.RSCPL;
4152        if ("Ruby".equals(codeString))
4153          return SPDXLicense.RUBY;
4154        if ("SAX-PD".equals(codeString))
4155          return SPDXLicense.SAXPD;
4156        if ("Saxpath".equals(codeString))
4157          return SPDXLicense.SAXPATH;
4158        if ("SCEA".equals(codeString))
4159          return SPDXLicense.SCEA;
4160        if ("Sendmail".equals(codeString))
4161          return SPDXLicense.SENDMAIL;
4162        if ("SGI-B-1.0".equals(codeString))
4163          return SPDXLicense.SGIB1_0;
4164        if ("SGI-B-1.1".equals(codeString))
4165          return SPDXLicense.SGIB1_1;
4166        if ("SGI-B-2.0".equals(codeString))
4167          return SPDXLicense.SGIB2_0;
4168        if ("SimPL-2.0".equals(codeString))
4169          return SPDXLicense.SIMPL2_0;
4170        if ("SISSL-1.2".equals(codeString))
4171          return SPDXLicense.SISSL1_2;
4172        if ("SISSL".equals(codeString))
4173          return SPDXLicense.SISSL;
4174        if ("Sleepycat".equals(codeString))
4175          return SPDXLicense.SLEEPYCAT;
4176        if ("SMLNJ".equals(codeString))
4177          return SPDXLicense.SMLNJ;
4178        if ("SMPPL".equals(codeString))
4179          return SPDXLicense.SMPPL;
4180        if ("SNIA".equals(codeString))
4181          return SPDXLicense.SNIA;
4182        if ("Spencer-86".equals(codeString))
4183          return SPDXLicense.SPENCER86;
4184        if ("Spencer-94".equals(codeString))
4185          return SPDXLicense.SPENCER94;
4186        if ("Spencer-99".equals(codeString))
4187          return SPDXLicense.SPENCER99;
4188        if ("SPL-1.0".equals(codeString))
4189          return SPDXLicense.SPL1_0;
4190        if ("SugarCRM-1.1.3".equals(codeString))
4191          return SPDXLicense.SUGARCRM1_1_3;
4192        if ("SWL".equals(codeString))
4193          return SPDXLicense.SWL;
4194        if ("TCL".equals(codeString))
4195          return SPDXLicense.TCL;
4196        if ("TCP-wrappers".equals(codeString))
4197          return SPDXLicense.TCPWRAPPERS;
4198        if ("TMate".equals(codeString))
4199          return SPDXLicense.TMATE;
4200        if ("TORQUE-1.1".equals(codeString))
4201          return SPDXLicense.TORQUE1_1;
4202        if ("TOSL".equals(codeString))
4203          return SPDXLicense.TOSL;
4204        if ("Unicode-DFS-2015".equals(codeString))
4205          return SPDXLicense.UNICODEDFS2015;
4206        if ("Unicode-DFS-2016".equals(codeString))
4207          return SPDXLicense.UNICODEDFS2016;
4208        if ("Unicode-TOU".equals(codeString))
4209          return SPDXLicense.UNICODETOU;
4210        if ("Unlicense".equals(codeString))
4211          return SPDXLicense.UNLICENSE;
4212        if ("UPL-1.0".equals(codeString))
4213          return SPDXLicense.UPL1_0;
4214        if ("Vim".equals(codeString))
4215          return SPDXLicense.VIM;
4216        if ("VOSTROM".equals(codeString))
4217          return SPDXLicense.VOSTROM;
4218        if ("VSL-1.0".equals(codeString))
4219          return SPDXLicense.VSL1_0;
4220        if ("W3C-19980720".equals(codeString))
4221          return SPDXLicense.W3C19980720;
4222        if ("W3C-20150513".equals(codeString))
4223          return SPDXLicense.W3C20150513;
4224        if ("W3C".equals(codeString))
4225          return SPDXLicense.W3C;
4226        if ("Watcom-1.0".equals(codeString))
4227          return SPDXLicense.WATCOM1_0;
4228        if ("Wsuipa".equals(codeString))
4229          return SPDXLicense.WSUIPA;
4230        if ("WTFPL".equals(codeString))
4231          return SPDXLicense.WTFPL;
4232        if ("X11".equals(codeString))
4233          return SPDXLicense.X11;
4234        if ("Xerox".equals(codeString))
4235          return SPDXLicense.XEROX;
4236        if ("XFree86-1.1".equals(codeString))
4237          return SPDXLicense.XFREE861_1;
4238        if ("xinetd".equals(codeString))
4239          return SPDXLicense.XINETD;
4240        if ("Xnet".equals(codeString))
4241          return SPDXLicense.XNET;
4242        if ("xpp".equals(codeString))
4243          return SPDXLicense.XPP;
4244        if ("XSkat".equals(codeString))
4245          return SPDXLicense.XSKAT;
4246        if ("YPL-1.0".equals(codeString))
4247          return SPDXLicense.YPL1_0;
4248        if ("YPL-1.1".equals(codeString))
4249          return SPDXLicense.YPL1_1;
4250        if ("Zed".equals(codeString))
4251          return SPDXLicense.ZED;
4252        if ("Zend-2.0".equals(codeString))
4253          return SPDXLicense.ZEND2_0;
4254        if ("Zimbra-1.3".equals(codeString))
4255          return SPDXLicense.ZIMBRA1_3;
4256        if ("Zimbra-1.4".equals(codeString))
4257          return SPDXLicense.ZIMBRA1_4;
4258        if ("zlib-acknowledgement".equals(codeString))
4259          return SPDXLicense.ZLIBACKNOWLEDGEMENT;
4260        if ("Zlib".equals(codeString))
4261          return SPDXLicense.ZLIB;
4262        if ("ZPL-1.1".equals(codeString))
4263          return SPDXLicense.ZPL1_1;
4264        if ("ZPL-2.0".equals(codeString))
4265          return SPDXLicense.ZPL2_0;
4266        if ("ZPL-2.1".equals(codeString))
4267          return SPDXLicense.ZPL2_1;
4268        throw new IllegalArgumentException("Unknown SPDXLicense code '"+codeString+"'");
4269        }
4270        public Enumeration<SPDXLicense> fromType(Base code) throws FHIRException {
4271          if (code == null)
4272            return null;
4273          if (code.isEmpty())
4274            return new Enumeration<SPDXLicense>(this);
4275          String codeString = ((PrimitiveType) code).asStringValue();
4276          if (codeString == null || "".equals(codeString))
4277            return null;
4278        if ("not-open-source".equals(codeString))
4279          return new Enumeration<SPDXLicense>(this, SPDXLicense.NOTOPENSOURCE);
4280        if ("0BSD".equals(codeString))
4281          return new Enumeration<SPDXLicense>(this, SPDXLicense._0BSD);
4282        if ("AAL".equals(codeString))
4283          return new Enumeration<SPDXLicense>(this, SPDXLicense.AAL);
4284        if ("Abstyles".equals(codeString))
4285          return new Enumeration<SPDXLicense>(this, SPDXLicense.ABSTYLES);
4286        if ("Adobe-2006".equals(codeString))
4287          return new Enumeration<SPDXLicense>(this, SPDXLicense.ADOBE2006);
4288        if ("Adobe-Glyph".equals(codeString))
4289          return new Enumeration<SPDXLicense>(this, SPDXLicense.ADOBEGLYPH);
4290        if ("ADSL".equals(codeString))
4291          return new Enumeration<SPDXLicense>(this, SPDXLicense.ADSL);
4292        if ("AFL-1.1".equals(codeString))
4293          return new Enumeration<SPDXLicense>(this, SPDXLicense.AFL1_1);
4294        if ("AFL-1.2".equals(codeString))
4295          return new Enumeration<SPDXLicense>(this, SPDXLicense.AFL1_2);
4296        if ("AFL-2.0".equals(codeString))
4297          return new Enumeration<SPDXLicense>(this, SPDXLicense.AFL2_0);
4298        if ("AFL-2.1".equals(codeString))
4299          return new Enumeration<SPDXLicense>(this, SPDXLicense.AFL2_1);
4300        if ("AFL-3.0".equals(codeString))
4301          return new Enumeration<SPDXLicense>(this, SPDXLicense.AFL3_0);
4302        if ("Afmparse".equals(codeString))
4303          return new Enumeration<SPDXLicense>(this, SPDXLicense.AFMPARSE);
4304        if ("AGPL-1.0-only".equals(codeString))
4305          return new Enumeration<SPDXLicense>(this, SPDXLicense.AGPL1_0ONLY);
4306        if ("AGPL-1.0-or-later".equals(codeString))
4307          return new Enumeration<SPDXLicense>(this, SPDXLicense.AGPL1_0ORLATER);
4308        if ("AGPL-3.0-only".equals(codeString))
4309          return new Enumeration<SPDXLicense>(this, SPDXLicense.AGPL3_0ONLY);
4310        if ("AGPL-3.0-or-later".equals(codeString))
4311          return new Enumeration<SPDXLicense>(this, SPDXLicense.AGPL3_0ORLATER);
4312        if ("Aladdin".equals(codeString))
4313          return new Enumeration<SPDXLicense>(this, SPDXLicense.ALADDIN);
4314        if ("AMDPLPA".equals(codeString))
4315          return new Enumeration<SPDXLicense>(this, SPDXLicense.AMDPLPA);
4316        if ("AML".equals(codeString))
4317          return new Enumeration<SPDXLicense>(this, SPDXLicense.AML);
4318        if ("AMPAS".equals(codeString))
4319          return new Enumeration<SPDXLicense>(this, SPDXLicense.AMPAS);
4320        if ("ANTLR-PD".equals(codeString))
4321          return new Enumeration<SPDXLicense>(this, SPDXLicense.ANTLRPD);
4322        if ("Apache-1.0".equals(codeString))
4323          return new Enumeration<SPDXLicense>(this, SPDXLicense.APACHE1_0);
4324        if ("Apache-1.1".equals(codeString))
4325          return new Enumeration<SPDXLicense>(this, SPDXLicense.APACHE1_1);
4326        if ("Apache-2.0".equals(codeString))
4327          return new Enumeration<SPDXLicense>(this, SPDXLicense.APACHE2_0);
4328        if ("APAFML".equals(codeString))
4329          return new Enumeration<SPDXLicense>(this, SPDXLicense.APAFML);
4330        if ("APL-1.0".equals(codeString))
4331          return new Enumeration<SPDXLicense>(this, SPDXLicense.APL1_0);
4332        if ("APSL-1.0".equals(codeString))
4333          return new Enumeration<SPDXLicense>(this, SPDXLicense.APSL1_0);
4334        if ("APSL-1.1".equals(codeString))
4335          return new Enumeration<SPDXLicense>(this, SPDXLicense.APSL1_1);
4336        if ("APSL-1.2".equals(codeString))
4337          return new Enumeration<SPDXLicense>(this, SPDXLicense.APSL1_2);
4338        if ("APSL-2.0".equals(codeString))
4339          return new Enumeration<SPDXLicense>(this, SPDXLicense.APSL2_0);
4340        if ("Artistic-1.0-cl8".equals(codeString))
4341          return new Enumeration<SPDXLicense>(this, SPDXLicense.ARTISTIC1_0CL8);
4342        if ("Artistic-1.0-Perl".equals(codeString))
4343          return new Enumeration<SPDXLicense>(this, SPDXLicense.ARTISTIC1_0PERL);
4344        if ("Artistic-1.0".equals(codeString))
4345          return new Enumeration<SPDXLicense>(this, SPDXLicense.ARTISTIC1_0);
4346        if ("Artistic-2.0".equals(codeString))
4347          return new Enumeration<SPDXLicense>(this, SPDXLicense.ARTISTIC2_0);
4348        if ("Bahyph".equals(codeString))
4349          return new Enumeration<SPDXLicense>(this, SPDXLicense.BAHYPH);
4350        if ("Barr".equals(codeString))
4351          return new Enumeration<SPDXLicense>(this, SPDXLicense.BARR);
4352        if ("Beerware".equals(codeString))
4353          return new Enumeration<SPDXLicense>(this, SPDXLicense.BEERWARE);
4354        if ("BitTorrent-1.0".equals(codeString))
4355          return new Enumeration<SPDXLicense>(this, SPDXLicense.BITTORRENT1_0);
4356        if ("BitTorrent-1.1".equals(codeString))
4357          return new Enumeration<SPDXLicense>(this, SPDXLicense.BITTORRENT1_1);
4358        if ("Borceux".equals(codeString))
4359          return new Enumeration<SPDXLicense>(this, SPDXLicense.BORCEUX);
4360        if ("BSD-1-Clause".equals(codeString))
4361          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD1CLAUSE);
4362        if ("BSD-2-Clause-FreeBSD".equals(codeString))
4363          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD2CLAUSEFREEBSD);
4364        if ("BSD-2-Clause-NetBSD".equals(codeString))
4365          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD2CLAUSENETBSD);
4366        if ("BSD-2-Clause-Patent".equals(codeString))
4367          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD2CLAUSEPATENT);
4368        if ("BSD-2-Clause".equals(codeString))
4369          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD2CLAUSE);
4370        if ("BSD-3-Clause-Attribution".equals(codeString))
4371          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD3CLAUSEATTRIBUTION);
4372        if ("BSD-3-Clause-Clear".equals(codeString))
4373          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD3CLAUSECLEAR);
4374        if ("BSD-3-Clause-LBNL".equals(codeString))
4375          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD3CLAUSELBNL);
4376        if ("BSD-3-Clause-No-Nuclear-License-2014".equals(codeString))
4377          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD3CLAUSENONUCLEARLICENSE2014);
4378        if ("BSD-3-Clause-No-Nuclear-License".equals(codeString))
4379          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD3CLAUSENONUCLEARLICENSE);
4380        if ("BSD-3-Clause-No-Nuclear-Warranty".equals(codeString))
4381          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD3CLAUSENONUCLEARWARRANTY);
4382        if ("BSD-3-Clause".equals(codeString))
4383          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD3CLAUSE);
4384        if ("BSD-4-Clause-UC".equals(codeString))
4385          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD4CLAUSEUC);
4386        if ("BSD-4-Clause".equals(codeString))
4387          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSD4CLAUSE);
4388        if ("BSD-Protection".equals(codeString))
4389          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSDPROTECTION);
4390        if ("BSD-Source-Code".equals(codeString))
4391          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSDSOURCECODE);
4392        if ("BSL-1.0".equals(codeString))
4393          return new Enumeration<SPDXLicense>(this, SPDXLicense.BSL1_0);
4394        if ("bzip2-1.0.5".equals(codeString))
4395          return new Enumeration<SPDXLicense>(this, SPDXLicense.BZIP21_0_5);
4396        if ("bzip2-1.0.6".equals(codeString))
4397          return new Enumeration<SPDXLicense>(this, SPDXLicense.BZIP21_0_6);
4398        if ("Caldera".equals(codeString))
4399          return new Enumeration<SPDXLicense>(this, SPDXLicense.CALDERA);
4400        if ("CATOSL-1.1".equals(codeString))
4401          return new Enumeration<SPDXLicense>(this, SPDXLicense.CATOSL1_1);
4402        if ("CC-BY-1.0".equals(codeString))
4403          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBY1_0);
4404        if ("CC-BY-2.0".equals(codeString))
4405          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBY2_0);
4406        if ("CC-BY-2.5".equals(codeString))
4407          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBY2_5);
4408        if ("CC-BY-3.0".equals(codeString))
4409          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBY3_0);
4410        if ("CC-BY-4.0".equals(codeString))
4411          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBY4_0);
4412        if ("CC-BY-NC-1.0".equals(codeString))
4413          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNC1_0);
4414        if ("CC-BY-NC-2.0".equals(codeString))
4415          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNC2_0);
4416        if ("CC-BY-NC-2.5".equals(codeString))
4417          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNC2_5);
4418        if ("CC-BY-NC-3.0".equals(codeString))
4419          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNC3_0);
4420        if ("CC-BY-NC-4.0".equals(codeString))
4421          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNC4_0);
4422        if ("CC-BY-NC-ND-1.0".equals(codeString))
4423          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNCND1_0);
4424        if ("CC-BY-NC-ND-2.0".equals(codeString))
4425          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNCND2_0);
4426        if ("CC-BY-NC-ND-2.5".equals(codeString))
4427          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNCND2_5);
4428        if ("CC-BY-NC-ND-3.0".equals(codeString))
4429          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNCND3_0);
4430        if ("CC-BY-NC-ND-4.0".equals(codeString))
4431          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNCND4_0);
4432        if ("CC-BY-NC-SA-1.0".equals(codeString))
4433          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNCSA1_0);
4434        if ("CC-BY-NC-SA-2.0".equals(codeString))
4435          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNCSA2_0);
4436        if ("CC-BY-NC-SA-2.5".equals(codeString))
4437          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNCSA2_5);
4438        if ("CC-BY-NC-SA-3.0".equals(codeString))
4439          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNCSA3_0);
4440        if ("CC-BY-NC-SA-4.0".equals(codeString))
4441          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYNCSA4_0);
4442        if ("CC-BY-ND-1.0".equals(codeString))
4443          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYND1_0);
4444        if ("CC-BY-ND-2.0".equals(codeString))
4445          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYND2_0);
4446        if ("CC-BY-ND-2.5".equals(codeString))
4447          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYND2_5);
4448        if ("CC-BY-ND-3.0".equals(codeString))
4449          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYND3_0);
4450        if ("CC-BY-ND-4.0".equals(codeString))
4451          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYND4_0);
4452        if ("CC-BY-SA-1.0".equals(codeString))
4453          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYSA1_0);
4454        if ("CC-BY-SA-2.0".equals(codeString))
4455          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYSA2_0);
4456        if ("CC-BY-SA-2.5".equals(codeString))
4457          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYSA2_5);
4458        if ("CC-BY-SA-3.0".equals(codeString))
4459          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYSA3_0);
4460        if ("CC-BY-SA-4.0".equals(codeString))
4461          return new Enumeration<SPDXLicense>(this, SPDXLicense.CCBYSA4_0);
4462        if ("CC0-1.0".equals(codeString))
4463          return new Enumeration<SPDXLicense>(this, SPDXLicense.CC01_0);
4464        if ("CDDL-1.0".equals(codeString))
4465          return new Enumeration<SPDXLicense>(this, SPDXLicense.CDDL1_0);
4466        if ("CDDL-1.1".equals(codeString))
4467          return new Enumeration<SPDXLicense>(this, SPDXLicense.CDDL1_1);
4468        if ("CDLA-Permissive-1.0".equals(codeString))
4469          return new Enumeration<SPDXLicense>(this, SPDXLicense.CDLAPERMISSIVE1_0);
4470        if ("CDLA-Sharing-1.0".equals(codeString))
4471          return new Enumeration<SPDXLicense>(this, SPDXLicense.CDLASHARING1_0);
4472        if ("CECILL-1.0".equals(codeString))
4473          return new Enumeration<SPDXLicense>(this, SPDXLicense.CECILL1_0);
4474        if ("CECILL-1.1".equals(codeString))
4475          return new Enumeration<SPDXLicense>(this, SPDXLicense.CECILL1_1);
4476        if ("CECILL-2.0".equals(codeString))
4477          return new Enumeration<SPDXLicense>(this, SPDXLicense.CECILL2_0);
4478        if ("CECILL-2.1".equals(codeString))
4479          return new Enumeration<SPDXLicense>(this, SPDXLicense.CECILL2_1);
4480        if ("CECILL-B".equals(codeString))
4481          return new Enumeration<SPDXLicense>(this, SPDXLicense.CECILLB);
4482        if ("CECILL-C".equals(codeString))
4483          return new Enumeration<SPDXLicense>(this, SPDXLicense.CECILLC);
4484        if ("ClArtistic".equals(codeString))
4485          return new Enumeration<SPDXLicense>(this, SPDXLicense.CLARTISTIC);
4486        if ("CNRI-Jython".equals(codeString))
4487          return new Enumeration<SPDXLicense>(this, SPDXLicense.CNRIJYTHON);
4488        if ("CNRI-Python-GPL-Compatible".equals(codeString))
4489          return new Enumeration<SPDXLicense>(this, SPDXLicense.CNRIPYTHONGPLCOMPATIBLE);
4490        if ("CNRI-Python".equals(codeString))
4491          return new Enumeration<SPDXLicense>(this, SPDXLicense.CNRIPYTHON);
4492        if ("Condor-1.1".equals(codeString))
4493          return new Enumeration<SPDXLicense>(this, SPDXLicense.CONDOR1_1);
4494        if ("CPAL-1.0".equals(codeString))
4495          return new Enumeration<SPDXLicense>(this, SPDXLicense.CPAL1_0);
4496        if ("CPL-1.0".equals(codeString))
4497          return new Enumeration<SPDXLicense>(this, SPDXLicense.CPL1_0);
4498        if ("CPOL-1.02".equals(codeString))
4499          return new Enumeration<SPDXLicense>(this, SPDXLicense.CPOL1_02);
4500        if ("Crossword".equals(codeString))
4501          return new Enumeration<SPDXLicense>(this, SPDXLicense.CROSSWORD);
4502        if ("CrystalStacker".equals(codeString))
4503          return new Enumeration<SPDXLicense>(this, SPDXLicense.CRYSTALSTACKER);
4504        if ("CUA-OPL-1.0".equals(codeString))
4505          return new Enumeration<SPDXLicense>(this, SPDXLicense.CUAOPL1_0);
4506        if ("Cube".equals(codeString))
4507          return new Enumeration<SPDXLicense>(this, SPDXLicense.CUBE);
4508        if ("curl".equals(codeString))
4509          return new Enumeration<SPDXLicense>(this, SPDXLicense.CURL);
4510        if ("D-FSL-1.0".equals(codeString))
4511          return new Enumeration<SPDXLicense>(this, SPDXLicense.DFSL1_0);
4512        if ("diffmark".equals(codeString))
4513          return new Enumeration<SPDXLicense>(this, SPDXLicense.DIFFMARK);
4514        if ("DOC".equals(codeString))
4515          return new Enumeration<SPDXLicense>(this, SPDXLicense.DOC);
4516        if ("Dotseqn".equals(codeString))
4517          return new Enumeration<SPDXLicense>(this, SPDXLicense.DOTSEQN);
4518        if ("DSDP".equals(codeString))
4519          return new Enumeration<SPDXLicense>(this, SPDXLicense.DSDP);
4520        if ("dvipdfm".equals(codeString))
4521          return new Enumeration<SPDXLicense>(this, SPDXLicense.DVIPDFM);
4522        if ("ECL-1.0".equals(codeString))
4523          return new Enumeration<SPDXLicense>(this, SPDXLicense.ECL1_0);
4524        if ("ECL-2.0".equals(codeString))
4525          return new Enumeration<SPDXLicense>(this, SPDXLicense.ECL2_0);
4526        if ("EFL-1.0".equals(codeString))
4527          return new Enumeration<SPDXLicense>(this, SPDXLicense.EFL1_0);
4528        if ("EFL-2.0".equals(codeString))
4529          return new Enumeration<SPDXLicense>(this, SPDXLicense.EFL2_0);
4530        if ("eGenix".equals(codeString))
4531          return new Enumeration<SPDXLicense>(this, SPDXLicense.EGENIX);
4532        if ("Entessa".equals(codeString))
4533          return new Enumeration<SPDXLicense>(this, SPDXLicense.ENTESSA);
4534        if ("EPL-1.0".equals(codeString))
4535          return new Enumeration<SPDXLicense>(this, SPDXLicense.EPL1_0);
4536        if ("EPL-2.0".equals(codeString))
4537          return new Enumeration<SPDXLicense>(this, SPDXLicense.EPL2_0);
4538        if ("ErlPL-1.1".equals(codeString))
4539          return new Enumeration<SPDXLicense>(this, SPDXLicense.ERLPL1_1);
4540        if ("EUDatagrid".equals(codeString))
4541          return new Enumeration<SPDXLicense>(this, SPDXLicense.EUDATAGRID);
4542        if ("EUPL-1.0".equals(codeString))
4543          return new Enumeration<SPDXLicense>(this, SPDXLicense.EUPL1_0);
4544        if ("EUPL-1.1".equals(codeString))
4545          return new Enumeration<SPDXLicense>(this, SPDXLicense.EUPL1_1);
4546        if ("EUPL-1.2".equals(codeString))
4547          return new Enumeration<SPDXLicense>(this, SPDXLicense.EUPL1_2);
4548        if ("Eurosym".equals(codeString))
4549          return new Enumeration<SPDXLicense>(this, SPDXLicense.EUROSYM);
4550        if ("Fair".equals(codeString))
4551          return new Enumeration<SPDXLicense>(this, SPDXLicense.FAIR);
4552        if ("Frameworx-1.0".equals(codeString))
4553          return new Enumeration<SPDXLicense>(this, SPDXLicense.FRAMEWORX1_0);
4554        if ("FreeImage".equals(codeString))
4555          return new Enumeration<SPDXLicense>(this, SPDXLicense.FREEIMAGE);
4556        if ("FSFAP".equals(codeString))
4557          return new Enumeration<SPDXLicense>(this, SPDXLicense.FSFAP);
4558        if ("FSFUL".equals(codeString))
4559          return new Enumeration<SPDXLicense>(this, SPDXLicense.FSFUL);
4560        if ("FSFULLR".equals(codeString))
4561          return new Enumeration<SPDXLicense>(this, SPDXLicense.FSFULLR);
4562        if ("FTL".equals(codeString))
4563          return new Enumeration<SPDXLicense>(this, SPDXLicense.FTL);
4564        if ("GFDL-1.1-only".equals(codeString))
4565          return new Enumeration<SPDXLicense>(this, SPDXLicense.GFDL1_1ONLY);
4566        if ("GFDL-1.1-or-later".equals(codeString))
4567          return new Enumeration<SPDXLicense>(this, SPDXLicense.GFDL1_1ORLATER);
4568        if ("GFDL-1.2-only".equals(codeString))
4569          return new Enumeration<SPDXLicense>(this, SPDXLicense.GFDL1_2ONLY);
4570        if ("GFDL-1.2-or-later".equals(codeString))
4571          return new Enumeration<SPDXLicense>(this, SPDXLicense.GFDL1_2ORLATER);
4572        if ("GFDL-1.3-only".equals(codeString))
4573          return new Enumeration<SPDXLicense>(this, SPDXLicense.GFDL1_3ONLY);
4574        if ("GFDL-1.3-or-later".equals(codeString))
4575          return new Enumeration<SPDXLicense>(this, SPDXLicense.GFDL1_3ORLATER);
4576        if ("Giftware".equals(codeString))
4577          return new Enumeration<SPDXLicense>(this, SPDXLicense.GIFTWARE);
4578        if ("GL2PS".equals(codeString))
4579          return new Enumeration<SPDXLicense>(this, SPDXLicense.GL2PS);
4580        if ("Glide".equals(codeString))
4581          return new Enumeration<SPDXLicense>(this, SPDXLicense.GLIDE);
4582        if ("Glulxe".equals(codeString))
4583          return new Enumeration<SPDXLicense>(this, SPDXLicense.GLULXE);
4584        if ("gnuplot".equals(codeString))
4585          return new Enumeration<SPDXLicense>(this, SPDXLicense.GNUPLOT);
4586        if ("GPL-1.0-only".equals(codeString))
4587          return new Enumeration<SPDXLicense>(this, SPDXLicense.GPL1_0ONLY);
4588        if ("GPL-1.0-or-later".equals(codeString))
4589          return new Enumeration<SPDXLicense>(this, SPDXLicense.GPL1_0ORLATER);
4590        if ("GPL-2.0-only".equals(codeString))
4591          return new Enumeration<SPDXLicense>(this, SPDXLicense.GPL2_0ONLY);
4592        if ("GPL-2.0-or-later".equals(codeString))
4593          return new Enumeration<SPDXLicense>(this, SPDXLicense.GPL2_0ORLATER);
4594        if ("GPL-3.0-only".equals(codeString))
4595          return new Enumeration<SPDXLicense>(this, SPDXLicense.GPL3_0ONLY);
4596        if ("GPL-3.0-or-later".equals(codeString))
4597          return new Enumeration<SPDXLicense>(this, SPDXLicense.GPL3_0ORLATER);
4598        if ("gSOAP-1.3b".equals(codeString))
4599          return new Enumeration<SPDXLicense>(this, SPDXLicense.GSOAP1_3B);
4600        if ("HaskellReport".equals(codeString))
4601          return new Enumeration<SPDXLicense>(this, SPDXLicense.HASKELLREPORT);
4602        if ("HPND".equals(codeString))
4603          return new Enumeration<SPDXLicense>(this, SPDXLicense.HPND);
4604        if ("IBM-pibs".equals(codeString))
4605          return new Enumeration<SPDXLicense>(this, SPDXLicense.IBMPIBS);
4606        if ("ICU".equals(codeString))
4607          return new Enumeration<SPDXLicense>(this, SPDXLicense.ICU);
4608        if ("IJG".equals(codeString))
4609          return new Enumeration<SPDXLicense>(this, SPDXLicense.IJG);
4610        if ("ImageMagick".equals(codeString))
4611          return new Enumeration<SPDXLicense>(this, SPDXLicense.IMAGEMAGICK);
4612        if ("iMatix".equals(codeString))
4613          return new Enumeration<SPDXLicense>(this, SPDXLicense.IMATIX);
4614        if ("Imlib2".equals(codeString))
4615          return new Enumeration<SPDXLicense>(this, SPDXLicense.IMLIB2);
4616        if ("Info-ZIP".equals(codeString))
4617          return new Enumeration<SPDXLicense>(this, SPDXLicense.INFOZIP);
4618        if ("Intel-ACPI".equals(codeString))
4619          return new Enumeration<SPDXLicense>(this, SPDXLicense.INTELACPI);
4620        if ("Intel".equals(codeString))
4621          return new Enumeration<SPDXLicense>(this, SPDXLicense.INTEL);
4622        if ("Interbase-1.0".equals(codeString))
4623          return new Enumeration<SPDXLicense>(this, SPDXLicense.INTERBASE1_0);
4624        if ("IPA".equals(codeString))
4625          return new Enumeration<SPDXLicense>(this, SPDXLicense.IPA);
4626        if ("IPL-1.0".equals(codeString))
4627          return new Enumeration<SPDXLicense>(this, SPDXLicense.IPL1_0);
4628        if ("ISC".equals(codeString))
4629          return new Enumeration<SPDXLicense>(this, SPDXLicense.ISC);
4630        if ("JasPer-2.0".equals(codeString))
4631          return new Enumeration<SPDXLicense>(this, SPDXLicense.JASPER2_0);
4632        if ("JSON".equals(codeString))
4633          return new Enumeration<SPDXLicense>(this, SPDXLicense.JSON);
4634        if ("LAL-1.2".equals(codeString))
4635          return new Enumeration<SPDXLicense>(this, SPDXLicense.LAL1_2);
4636        if ("LAL-1.3".equals(codeString))
4637          return new Enumeration<SPDXLicense>(this, SPDXLicense.LAL1_3);
4638        if ("Latex2e".equals(codeString))
4639          return new Enumeration<SPDXLicense>(this, SPDXLicense.LATEX2E);
4640        if ("Leptonica".equals(codeString))
4641          return new Enumeration<SPDXLicense>(this, SPDXLicense.LEPTONICA);
4642        if ("LGPL-2.0-only".equals(codeString))
4643          return new Enumeration<SPDXLicense>(this, SPDXLicense.LGPL2_0ONLY);
4644        if ("LGPL-2.0-or-later".equals(codeString))
4645          return new Enumeration<SPDXLicense>(this, SPDXLicense.LGPL2_0ORLATER);
4646        if ("LGPL-2.1-only".equals(codeString))
4647          return new Enumeration<SPDXLicense>(this, SPDXLicense.LGPL2_1ONLY);
4648        if ("LGPL-2.1-or-later".equals(codeString))
4649          return new Enumeration<SPDXLicense>(this, SPDXLicense.LGPL2_1ORLATER);
4650        if ("LGPL-3.0-only".equals(codeString))
4651          return new Enumeration<SPDXLicense>(this, SPDXLicense.LGPL3_0ONLY);
4652        if ("LGPL-3.0-or-later".equals(codeString))
4653          return new Enumeration<SPDXLicense>(this, SPDXLicense.LGPL3_0ORLATER);
4654        if ("LGPLLR".equals(codeString))
4655          return new Enumeration<SPDXLicense>(this, SPDXLicense.LGPLLR);
4656        if ("Libpng".equals(codeString))
4657          return new Enumeration<SPDXLicense>(this, SPDXLicense.LIBPNG);
4658        if ("libtiff".equals(codeString))
4659          return new Enumeration<SPDXLicense>(this, SPDXLicense.LIBTIFF);
4660        if ("LiLiQ-P-1.1".equals(codeString))
4661          return new Enumeration<SPDXLicense>(this, SPDXLicense.LILIQP1_1);
4662        if ("LiLiQ-R-1.1".equals(codeString))
4663          return new Enumeration<SPDXLicense>(this, SPDXLicense.LILIQR1_1);
4664        if ("LiLiQ-Rplus-1.1".equals(codeString))
4665          return new Enumeration<SPDXLicense>(this, SPDXLicense.LILIQRPLUS1_1);
4666        if ("Linux-OpenIB".equals(codeString))
4667          return new Enumeration<SPDXLicense>(this, SPDXLicense.LINUXOPENIB);
4668        if ("LPL-1.0".equals(codeString))
4669          return new Enumeration<SPDXLicense>(this, SPDXLicense.LPL1_0);
4670        if ("LPL-1.02".equals(codeString))
4671          return new Enumeration<SPDXLicense>(this, SPDXLicense.LPL1_02);
4672        if ("LPPL-1.0".equals(codeString))
4673          return new Enumeration<SPDXLicense>(this, SPDXLicense.LPPL1_0);
4674        if ("LPPL-1.1".equals(codeString))
4675          return new Enumeration<SPDXLicense>(this, SPDXLicense.LPPL1_1);
4676        if ("LPPL-1.2".equals(codeString))
4677          return new Enumeration<SPDXLicense>(this, SPDXLicense.LPPL1_2);
4678        if ("LPPL-1.3a".equals(codeString))
4679          return new Enumeration<SPDXLicense>(this, SPDXLicense.LPPL1_3A);
4680        if ("LPPL-1.3c".equals(codeString))
4681          return new Enumeration<SPDXLicense>(this, SPDXLicense.LPPL1_3C);
4682        if ("MakeIndex".equals(codeString))
4683          return new Enumeration<SPDXLicense>(this, SPDXLicense.MAKEINDEX);
4684        if ("MirOS".equals(codeString))
4685          return new Enumeration<SPDXLicense>(this, SPDXLicense.MIROS);
4686        if ("MIT-0".equals(codeString))
4687          return new Enumeration<SPDXLicense>(this, SPDXLicense.MIT0);
4688        if ("MIT-advertising".equals(codeString))
4689          return new Enumeration<SPDXLicense>(this, SPDXLicense.MITADVERTISING);
4690        if ("MIT-CMU".equals(codeString))
4691          return new Enumeration<SPDXLicense>(this, SPDXLicense.MITCMU);
4692        if ("MIT-enna".equals(codeString))
4693          return new Enumeration<SPDXLicense>(this, SPDXLicense.MITENNA);
4694        if ("MIT-feh".equals(codeString))
4695          return new Enumeration<SPDXLicense>(this, SPDXLicense.MITFEH);
4696        if ("MIT".equals(codeString))
4697          return new Enumeration<SPDXLicense>(this, SPDXLicense.MIT);
4698        if ("MITNFA".equals(codeString))
4699          return new Enumeration<SPDXLicense>(this, SPDXLicense.MITNFA);
4700        if ("Motosoto".equals(codeString))
4701          return new Enumeration<SPDXLicense>(this, SPDXLicense.MOTOSOTO);
4702        if ("mpich2".equals(codeString))
4703          return new Enumeration<SPDXLicense>(this, SPDXLicense.MPICH2);
4704        if ("MPL-1.0".equals(codeString))
4705          return new Enumeration<SPDXLicense>(this, SPDXLicense.MPL1_0);
4706        if ("MPL-1.1".equals(codeString))
4707          return new Enumeration<SPDXLicense>(this, SPDXLicense.MPL1_1);
4708        if ("MPL-2.0-no-copyleft-exception".equals(codeString))
4709          return new Enumeration<SPDXLicense>(this, SPDXLicense.MPL2_0NOCOPYLEFTEXCEPTION);
4710        if ("MPL-2.0".equals(codeString))
4711          return new Enumeration<SPDXLicense>(this, SPDXLicense.MPL2_0);
4712        if ("MS-PL".equals(codeString))
4713          return new Enumeration<SPDXLicense>(this, SPDXLicense.MSPL);
4714        if ("MS-RL".equals(codeString))
4715          return new Enumeration<SPDXLicense>(this, SPDXLicense.MSRL);
4716        if ("MTLL".equals(codeString))
4717          return new Enumeration<SPDXLicense>(this, SPDXLicense.MTLL);
4718        if ("Multics".equals(codeString))
4719          return new Enumeration<SPDXLicense>(this, SPDXLicense.MULTICS);
4720        if ("Mup".equals(codeString))
4721          return new Enumeration<SPDXLicense>(this, SPDXLicense.MUP);
4722        if ("NASA-1.3".equals(codeString))
4723          return new Enumeration<SPDXLicense>(this, SPDXLicense.NASA1_3);
4724        if ("Naumen".equals(codeString))
4725          return new Enumeration<SPDXLicense>(this, SPDXLicense.NAUMEN);
4726        if ("NBPL-1.0".equals(codeString))
4727          return new Enumeration<SPDXLicense>(this, SPDXLicense.NBPL1_0);
4728        if ("NCSA".equals(codeString))
4729          return new Enumeration<SPDXLicense>(this, SPDXLicense.NCSA);
4730        if ("Net-SNMP".equals(codeString))
4731          return new Enumeration<SPDXLicense>(this, SPDXLicense.NETSNMP);
4732        if ("NetCDF".equals(codeString))
4733          return new Enumeration<SPDXLicense>(this, SPDXLicense.NETCDF);
4734        if ("Newsletr".equals(codeString))
4735          return new Enumeration<SPDXLicense>(this, SPDXLicense.NEWSLETR);
4736        if ("NGPL".equals(codeString))
4737          return new Enumeration<SPDXLicense>(this, SPDXLicense.NGPL);
4738        if ("NLOD-1.0".equals(codeString))
4739          return new Enumeration<SPDXLicense>(this, SPDXLicense.NLOD1_0);
4740        if ("NLPL".equals(codeString))
4741          return new Enumeration<SPDXLicense>(this, SPDXLicense.NLPL);
4742        if ("Nokia".equals(codeString))
4743          return new Enumeration<SPDXLicense>(this, SPDXLicense.NOKIA);
4744        if ("NOSL".equals(codeString))
4745          return new Enumeration<SPDXLicense>(this, SPDXLicense.NOSL);
4746        if ("Noweb".equals(codeString))
4747          return new Enumeration<SPDXLicense>(this, SPDXLicense.NOWEB);
4748        if ("NPL-1.0".equals(codeString))
4749          return new Enumeration<SPDXLicense>(this, SPDXLicense.NPL1_0);
4750        if ("NPL-1.1".equals(codeString))
4751          return new Enumeration<SPDXLicense>(this, SPDXLicense.NPL1_1);
4752        if ("NPOSL-3.0".equals(codeString))
4753          return new Enumeration<SPDXLicense>(this, SPDXLicense.NPOSL3_0);
4754        if ("NRL".equals(codeString))
4755          return new Enumeration<SPDXLicense>(this, SPDXLicense.NRL);
4756        if ("NTP".equals(codeString))
4757          return new Enumeration<SPDXLicense>(this, SPDXLicense.NTP);
4758        if ("OCCT-PL".equals(codeString))
4759          return new Enumeration<SPDXLicense>(this, SPDXLicense.OCCTPL);
4760        if ("OCLC-2.0".equals(codeString))
4761          return new Enumeration<SPDXLicense>(this, SPDXLicense.OCLC2_0);
4762        if ("ODbL-1.0".equals(codeString))
4763          return new Enumeration<SPDXLicense>(this, SPDXLicense.ODBL1_0);
4764        if ("OFL-1.0".equals(codeString))
4765          return new Enumeration<SPDXLicense>(this, SPDXLicense.OFL1_0);
4766        if ("OFL-1.1".equals(codeString))
4767          return new Enumeration<SPDXLicense>(this, SPDXLicense.OFL1_1);
4768        if ("OGTSL".equals(codeString))
4769          return new Enumeration<SPDXLicense>(this, SPDXLicense.OGTSL);
4770        if ("OLDAP-1.1".equals(codeString))
4771          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP1_1);
4772        if ("OLDAP-1.2".equals(codeString))
4773          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP1_2);
4774        if ("OLDAP-1.3".equals(codeString))
4775          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP1_3);
4776        if ("OLDAP-1.4".equals(codeString))
4777          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP1_4);
4778        if ("OLDAP-2.0.1".equals(codeString))
4779          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_0_1);
4780        if ("OLDAP-2.0".equals(codeString))
4781          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_0);
4782        if ("OLDAP-2.1".equals(codeString))
4783          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_1);
4784        if ("OLDAP-2.2.1".equals(codeString))
4785          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_2_1);
4786        if ("OLDAP-2.2.2".equals(codeString))
4787          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_2_2);
4788        if ("OLDAP-2.2".equals(codeString))
4789          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_2);
4790        if ("OLDAP-2.3".equals(codeString))
4791          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_3);
4792        if ("OLDAP-2.4".equals(codeString))
4793          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_4);
4794        if ("OLDAP-2.5".equals(codeString))
4795          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_5);
4796        if ("OLDAP-2.6".equals(codeString))
4797          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_6);
4798        if ("OLDAP-2.7".equals(codeString))
4799          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_7);
4800        if ("OLDAP-2.8".equals(codeString))
4801          return new Enumeration<SPDXLicense>(this, SPDXLicense.OLDAP2_8);
4802        if ("OML".equals(codeString))
4803          return new Enumeration<SPDXLicense>(this, SPDXLicense.OML);
4804        if ("OpenSSL".equals(codeString))
4805          return new Enumeration<SPDXLicense>(this, SPDXLicense.OPENSSL);
4806        if ("OPL-1.0".equals(codeString))
4807          return new Enumeration<SPDXLicense>(this, SPDXLicense.OPL1_0);
4808        if ("OSET-PL-2.1".equals(codeString))
4809          return new Enumeration<SPDXLicense>(this, SPDXLicense.OSETPL2_1);
4810        if ("OSL-1.0".equals(codeString))
4811          return new Enumeration<SPDXLicense>(this, SPDXLicense.OSL1_0);
4812        if ("OSL-1.1".equals(codeString))
4813          return new Enumeration<SPDXLicense>(this, SPDXLicense.OSL1_1);
4814        if ("OSL-2.0".equals(codeString))
4815          return new Enumeration<SPDXLicense>(this, SPDXLicense.OSL2_0);
4816        if ("OSL-2.1".equals(codeString))
4817          return new Enumeration<SPDXLicense>(this, SPDXLicense.OSL2_1);
4818        if ("OSL-3.0".equals(codeString))
4819          return new Enumeration<SPDXLicense>(this, SPDXLicense.OSL3_0);
4820        if ("PDDL-1.0".equals(codeString))
4821          return new Enumeration<SPDXLicense>(this, SPDXLicense.PDDL1_0);
4822        if ("PHP-3.0".equals(codeString))
4823          return new Enumeration<SPDXLicense>(this, SPDXLicense.PHP3_0);
4824        if ("PHP-3.01".equals(codeString))
4825          return new Enumeration<SPDXLicense>(this, SPDXLicense.PHP3_01);
4826        if ("Plexus".equals(codeString))
4827          return new Enumeration<SPDXLicense>(this, SPDXLicense.PLEXUS);
4828        if ("PostgreSQL".equals(codeString))
4829          return new Enumeration<SPDXLicense>(this, SPDXLicense.POSTGRESQL);
4830        if ("psfrag".equals(codeString))
4831          return new Enumeration<SPDXLicense>(this, SPDXLicense.PSFRAG);
4832        if ("psutils".equals(codeString))
4833          return new Enumeration<SPDXLicense>(this, SPDXLicense.PSUTILS);
4834        if ("Python-2.0".equals(codeString))
4835          return new Enumeration<SPDXLicense>(this, SPDXLicense.PYTHON2_0);
4836        if ("Qhull".equals(codeString))
4837          return new Enumeration<SPDXLicense>(this, SPDXLicense.QHULL);
4838        if ("QPL-1.0".equals(codeString))
4839          return new Enumeration<SPDXLicense>(this, SPDXLicense.QPL1_0);
4840        if ("Rdisc".equals(codeString))
4841          return new Enumeration<SPDXLicense>(this, SPDXLicense.RDISC);
4842        if ("RHeCos-1.1".equals(codeString))
4843          return new Enumeration<SPDXLicense>(this, SPDXLicense.RHECOS1_1);
4844        if ("RPL-1.1".equals(codeString))
4845          return new Enumeration<SPDXLicense>(this, SPDXLicense.RPL1_1);
4846        if ("RPL-1.5".equals(codeString))
4847          return new Enumeration<SPDXLicense>(this, SPDXLicense.RPL1_5);
4848        if ("RPSL-1.0".equals(codeString))
4849          return new Enumeration<SPDXLicense>(this, SPDXLicense.RPSL1_0);
4850        if ("RSA-MD".equals(codeString))
4851          return new Enumeration<SPDXLicense>(this, SPDXLicense.RSAMD);
4852        if ("RSCPL".equals(codeString))
4853          return new Enumeration<SPDXLicense>(this, SPDXLicense.RSCPL);
4854        if ("Ruby".equals(codeString))
4855          return new Enumeration<SPDXLicense>(this, SPDXLicense.RUBY);
4856        if ("SAX-PD".equals(codeString))
4857          return new Enumeration<SPDXLicense>(this, SPDXLicense.SAXPD);
4858        if ("Saxpath".equals(codeString))
4859          return new Enumeration<SPDXLicense>(this, SPDXLicense.SAXPATH);
4860        if ("SCEA".equals(codeString))
4861          return new Enumeration<SPDXLicense>(this, SPDXLicense.SCEA);
4862        if ("Sendmail".equals(codeString))
4863          return new Enumeration<SPDXLicense>(this, SPDXLicense.SENDMAIL);
4864        if ("SGI-B-1.0".equals(codeString))
4865          return new Enumeration<SPDXLicense>(this, SPDXLicense.SGIB1_0);
4866        if ("SGI-B-1.1".equals(codeString))
4867          return new Enumeration<SPDXLicense>(this, SPDXLicense.SGIB1_1);
4868        if ("SGI-B-2.0".equals(codeString))
4869          return new Enumeration<SPDXLicense>(this, SPDXLicense.SGIB2_0);
4870        if ("SimPL-2.0".equals(codeString))
4871          return new Enumeration<SPDXLicense>(this, SPDXLicense.SIMPL2_0);
4872        if ("SISSL-1.2".equals(codeString))
4873          return new Enumeration<SPDXLicense>(this, SPDXLicense.SISSL1_2);
4874        if ("SISSL".equals(codeString))
4875          return new Enumeration<SPDXLicense>(this, SPDXLicense.SISSL);
4876        if ("Sleepycat".equals(codeString))
4877          return new Enumeration<SPDXLicense>(this, SPDXLicense.SLEEPYCAT);
4878        if ("SMLNJ".equals(codeString))
4879          return new Enumeration<SPDXLicense>(this, SPDXLicense.SMLNJ);
4880        if ("SMPPL".equals(codeString))
4881          return new Enumeration<SPDXLicense>(this, SPDXLicense.SMPPL);
4882        if ("SNIA".equals(codeString))
4883          return new Enumeration<SPDXLicense>(this, SPDXLicense.SNIA);
4884        if ("Spencer-86".equals(codeString))
4885          return new Enumeration<SPDXLicense>(this, SPDXLicense.SPENCER86);
4886        if ("Spencer-94".equals(codeString))
4887          return new Enumeration<SPDXLicense>(this, SPDXLicense.SPENCER94);
4888        if ("Spencer-99".equals(codeString))
4889          return new Enumeration<SPDXLicense>(this, SPDXLicense.SPENCER99);
4890        if ("SPL-1.0".equals(codeString))
4891          return new Enumeration<SPDXLicense>(this, SPDXLicense.SPL1_0);
4892        if ("SugarCRM-1.1.3".equals(codeString))
4893          return new Enumeration<SPDXLicense>(this, SPDXLicense.SUGARCRM1_1_3);
4894        if ("SWL".equals(codeString))
4895          return new Enumeration<SPDXLicense>(this, SPDXLicense.SWL);
4896        if ("TCL".equals(codeString))
4897          return new Enumeration<SPDXLicense>(this, SPDXLicense.TCL);
4898        if ("TCP-wrappers".equals(codeString))
4899          return new Enumeration<SPDXLicense>(this, SPDXLicense.TCPWRAPPERS);
4900        if ("TMate".equals(codeString))
4901          return new Enumeration<SPDXLicense>(this, SPDXLicense.TMATE);
4902        if ("TORQUE-1.1".equals(codeString))
4903          return new Enumeration<SPDXLicense>(this, SPDXLicense.TORQUE1_1);
4904        if ("TOSL".equals(codeString))
4905          return new Enumeration<SPDXLicense>(this, SPDXLicense.TOSL);
4906        if ("Unicode-DFS-2015".equals(codeString))
4907          return new Enumeration<SPDXLicense>(this, SPDXLicense.UNICODEDFS2015);
4908        if ("Unicode-DFS-2016".equals(codeString))
4909          return new Enumeration<SPDXLicense>(this, SPDXLicense.UNICODEDFS2016);
4910        if ("Unicode-TOU".equals(codeString))
4911          return new Enumeration<SPDXLicense>(this, SPDXLicense.UNICODETOU);
4912        if ("Unlicense".equals(codeString))
4913          return new Enumeration<SPDXLicense>(this, SPDXLicense.UNLICENSE);
4914        if ("UPL-1.0".equals(codeString))
4915          return new Enumeration<SPDXLicense>(this, SPDXLicense.UPL1_0);
4916        if ("Vim".equals(codeString))
4917          return new Enumeration<SPDXLicense>(this, SPDXLicense.VIM);
4918        if ("VOSTROM".equals(codeString))
4919          return new Enumeration<SPDXLicense>(this, SPDXLicense.VOSTROM);
4920        if ("VSL-1.0".equals(codeString))
4921          return new Enumeration<SPDXLicense>(this, SPDXLicense.VSL1_0);
4922        if ("W3C-19980720".equals(codeString))
4923          return new Enumeration<SPDXLicense>(this, SPDXLicense.W3C19980720);
4924        if ("W3C-20150513".equals(codeString))
4925          return new Enumeration<SPDXLicense>(this, SPDXLicense.W3C20150513);
4926        if ("W3C".equals(codeString))
4927          return new Enumeration<SPDXLicense>(this, SPDXLicense.W3C);
4928        if ("Watcom-1.0".equals(codeString))
4929          return new Enumeration<SPDXLicense>(this, SPDXLicense.WATCOM1_0);
4930        if ("Wsuipa".equals(codeString))
4931          return new Enumeration<SPDXLicense>(this, SPDXLicense.WSUIPA);
4932        if ("WTFPL".equals(codeString))
4933          return new Enumeration<SPDXLicense>(this, SPDXLicense.WTFPL);
4934        if ("X11".equals(codeString))
4935          return new Enumeration<SPDXLicense>(this, SPDXLicense.X11);
4936        if ("Xerox".equals(codeString))
4937          return new Enumeration<SPDXLicense>(this, SPDXLicense.XEROX);
4938        if ("XFree86-1.1".equals(codeString))
4939          return new Enumeration<SPDXLicense>(this, SPDXLicense.XFREE861_1);
4940        if ("xinetd".equals(codeString))
4941          return new Enumeration<SPDXLicense>(this, SPDXLicense.XINETD);
4942        if ("Xnet".equals(codeString))
4943          return new Enumeration<SPDXLicense>(this, SPDXLicense.XNET);
4944        if ("xpp".equals(codeString))
4945          return new Enumeration<SPDXLicense>(this, SPDXLicense.XPP);
4946        if ("XSkat".equals(codeString))
4947          return new Enumeration<SPDXLicense>(this, SPDXLicense.XSKAT);
4948        if ("YPL-1.0".equals(codeString))
4949          return new Enumeration<SPDXLicense>(this, SPDXLicense.YPL1_0);
4950        if ("YPL-1.1".equals(codeString))
4951          return new Enumeration<SPDXLicense>(this, SPDXLicense.YPL1_1);
4952        if ("Zed".equals(codeString))
4953          return new Enumeration<SPDXLicense>(this, SPDXLicense.ZED);
4954        if ("Zend-2.0".equals(codeString))
4955          return new Enumeration<SPDXLicense>(this, SPDXLicense.ZEND2_0);
4956        if ("Zimbra-1.3".equals(codeString))
4957          return new Enumeration<SPDXLicense>(this, SPDXLicense.ZIMBRA1_3);
4958        if ("Zimbra-1.4".equals(codeString))
4959          return new Enumeration<SPDXLicense>(this, SPDXLicense.ZIMBRA1_4);
4960        if ("zlib-acknowledgement".equals(codeString))
4961          return new Enumeration<SPDXLicense>(this, SPDXLicense.ZLIBACKNOWLEDGEMENT);
4962        if ("Zlib".equals(codeString))
4963          return new Enumeration<SPDXLicense>(this, SPDXLicense.ZLIB);
4964        if ("ZPL-1.1".equals(codeString))
4965          return new Enumeration<SPDXLicense>(this, SPDXLicense.ZPL1_1);
4966        if ("ZPL-2.0".equals(codeString))
4967          return new Enumeration<SPDXLicense>(this, SPDXLicense.ZPL2_0);
4968        if ("ZPL-2.1".equals(codeString))
4969          return new Enumeration<SPDXLicense>(this, SPDXLicense.ZPL2_1);
4970        throw new FHIRException("Unknown SPDXLicense code '"+codeString+"'");
4971        }
4972    public String toCode(SPDXLicense code) {
4973      if (code == SPDXLicense.NOTOPENSOURCE)
4974        return "not-open-source";
4975      if (code == SPDXLicense._0BSD)
4976        return "0BSD";
4977      if (code == SPDXLicense.AAL)
4978        return "AAL";
4979      if (code == SPDXLicense.ABSTYLES)
4980        return "Abstyles";
4981      if (code == SPDXLicense.ADOBE2006)
4982        return "Adobe-2006";
4983      if (code == SPDXLicense.ADOBEGLYPH)
4984        return "Adobe-Glyph";
4985      if (code == SPDXLicense.ADSL)
4986        return "ADSL";
4987      if (code == SPDXLicense.AFL1_1)
4988        return "AFL-1.1";
4989      if (code == SPDXLicense.AFL1_2)
4990        return "AFL-1.2";
4991      if (code == SPDXLicense.AFL2_0)
4992        return "AFL-2.0";
4993      if (code == SPDXLicense.AFL2_1)
4994        return "AFL-2.1";
4995      if (code == SPDXLicense.AFL3_0)
4996        return "AFL-3.0";
4997      if (code == SPDXLicense.AFMPARSE)
4998        return "Afmparse";
4999      if (code == SPDXLicense.AGPL1_0ONLY)
5000        return "AGPL-1.0-only";
5001      if (code == SPDXLicense.AGPL1_0ORLATER)
5002        return "AGPL-1.0-or-later";
5003      if (code == SPDXLicense.AGPL3_0ONLY)
5004        return "AGPL-3.0-only";
5005      if (code == SPDXLicense.AGPL3_0ORLATER)
5006        return "AGPL-3.0-or-later";
5007      if (code == SPDXLicense.ALADDIN)
5008        return "Aladdin";
5009      if (code == SPDXLicense.AMDPLPA)
5010        return "AMDPLPA";
5011      if (code == SPDXLicense.AML)
5012        return "AML";
5013      if (code == SPDXLicense.AMPAS)
5014        return "AMPAS";
5015      if (code == SPDXLicense.ANTLRPD)
5016        return "ANTLR-PD";
5017      if (code == SPDXLicense.APACHE1_0)
5018        return "Apache-1.0";
5019      if (code == SPDXLicense.APACHE1_1)
5020        return "Apache-1.1";
5021      if (code == SPDXLicense.APACHE2_0)
5022        return "Apache-2.0";
5023      if (code == SPDXLicense.APAFML)
5024        return "APAFML";
5025      if (code == SPDXLicense.APL1_0)
5026        return "APL-1.0";
5027      if (code == SPDXLicense.APSL1_0)
5028        return "APSL-1.0";
5029      if (code == SPDXLicense.APSL1_1)
5030        return "APSL-1.1";
5031      if (code == SPDXLicense.APSL1_2)
5032        return "APSL-1.2";
5033      if (code == SPDXLicense.APSL2_0)
5034        return "APSL-2.0";
5035      if (code == SPDXLicense.ARTISTIC1_0CL8)
5036        return "Artistic-1.0-cl8";
5037      if (code == SPDXLicense.ARTISTIC1_0PERL)
5038        return "Artistic-1.0-Perl";
5039      if (code == SPDXLicense.ARTISTIC1_0)
5040        return "Artistic-1.0";
5041      if (code == SPDXLicense.ARTISTIC2_0)
5042        return "Artistic-2.0";
5043      if (code == SPDXLicense.BAHYPH)
5044        return "Bahyph";
5045      if (code == SPDXLicense.BARR)
5046        return "Barr";
5047      if (code == SPDXLicense.BEERWARE)
5048        return "Beerware";
5049      if (code == SPDXLicense.BITTORRENT1_0)
5050        return "BitTorrent-1.0";
5051      if (code == SPDXLicense.BITTORRENT1_1)
5052        return "BitTorrent-1.1";
5053      if (code == SPDXLicense.BORCEUX)
5054        return "Borceux";
5055      if (code == SPDXLicense.BSD1CLAUSE)
5056        return "BSD-1-Clause";
5057      if (code == SPDXLicense.BSD2CLAUSEFREEBSD)
5058        return "BSD-2-Clause-FreeBSD";
5059      if (code == SPDXLicense.BSD2CLAUSENETBSD)
5060        return "BSD-2-Clause-NetBSD";
5061      if (code == SPDXLicense.BSD2CLAUSEPATENT)
5062        return "BSD-2-Clause-Patent";
5063      if (code == SPDXLicense.BSD2CLAUSE)
5064        return "BSD-2-Clause";
5065      if (code == SPDXLicense.BSD3CLAUSEATTRIBUTION)
5066        return "BSD-3-Clause-Attribution";
5067      if (code == SPDXLicense.BSD3CLAUSECLEAR)
5068        return "BSD-3-Clause-Clear";
5069      if (code == SPDXLicense.BSD3CLAUSELBNL)
5070        return "BSD-3-Clause-LBNL";
5071      if (code == SPDXLicense.BSD3CLAUSENONUCLEARLICENSE2014)
5072        return "BSD-3-Clause-No-Nuclear-License-2014";
5073      if (code == SPDXLicense.BSD3CLAUSENONUCLEARLICENSE)
5074        return "BSD-3-Clause-No-Nuclear-License";
5075      if (code == SPDXLicense.BSD3CLAUSENONUCLEARWARRANTY)
5076        return "BSD-3-Clause-No-Nuclear-Warranty";
5077      if (code == SPDXLicense.BSD3CLAUSE)
5078        return "BSD-3-Clause";
5079      if (code == SPDXLicense.BSD4CLAUSEUC)
5080        return "BSD-4-Clause-UC";
5081      if (code == SPDXLicense.BSD4CLAUSE)
5082        return "BSD-4-Clause";
5083      if (code == SPDXLicense.BSDPROTECTION)
5084        return "BSD-Protection";
5085      if (code == SPDXLicense.BSDSOURCECODE)
5086        return "BSD-Source-Code";
5087      if (code == SPDXLicense.BSL1_0)
5088        return "BSL-1.0";
5089      if (code == SPDXLicense.BZIP21_0_5)
5090        return "bzip2-1.0.5";
5091      if (code == SPDXLicense.BZIP21_0_6)
5092        return "bzip2-1.0.6";
5093      if (code == SPDXLicense.CALDERA)
5094        return "Caldera";
5095      if (code == SPDXLicense.CATOSL1_1)
5096        return "CATOSL-1.1";
5097      if (code == SPDXLicense.CCBY1_0)
5098        return "CC-BY-1.0";
5099      if (code == SPDXLicense.CCBY2_0)
5100        return "CC-BY-2.0";
5101      if (code == SPDXLicense.CCBY2_5)
5102        return "CC-BY-2.5";
5103      if (code == SPDXLicense.CCBY3_0)
5104        return "CC-BY-3.0";
5105      if (code == SPDXLicense.CCBY4_0)
5106        return "CC-BY-4.0";
5107      if (code == SPDXLicense.CCBYNC1_0)
5108        return "CC-BY-NC-1.0";
5109      if (code == SPDXLicense.CCBYNC2_0)
5110        return "CC-BY-NC-2.0";
5111      if (code == SPDXLicense.CCBYNC2_5)
5112        return "CC-BY-NC-2.5";
5113      if (code == SPDXLicense.CCBYNC3_0)
5114        return "CC-BY-NC-3.0";
5115      if (code == SPDXLicense.CCBYNC4_0)
5116        return "CC-BY-NC-4.0";
5117      if (code == SPDXLicense.CCBYNCND1_0)
5118        return "CC-BY-NC-ND-1.0";
5119      if (code == SPDXLicense.CCBYNCND2_0)
5120        return "CC-BY-NC-ND-2.0";
5121      if (code == SPDXLicense.CCBYNCND2_5)
5122        return "CC-BY-NC-ND-2.5";
5123      if (code == SPDXLicense.CCBYNCND3_0)
5124        return "CC-BY-NC-ND-3.0";
5125      if (code == SPDXLicense.CCBYNCND4_0)
5126        return "CC-BY-NC-ND-4.0";
5127      if (code == SPDXLicense.CCBYNCSA1_0)
5128        return "CC-BY-NC-SA-1.0";
5129      if (code == SPDXLicense.CCBYNCSA2_0)
5130        return "CC-BY-NC-SA-2.0";
5131      if (code == SPDXLicense.CCBYNCSA2_5)
5132        return "CC-BY-NC-SA-2.5";
5133      if (code == SPDXLicense.CCBYNCSA3_0)
5134        return "CC-BY-NC-SA-3.0";
5135      if (code == SPDXLicense.CCBYNCSA4_0)
5136        return "CC-BY-NC-SA-4.0";
5137      if (code == SPDXLicense.CCBYND1_0)
5138        return "CC-BY-ND-1.0";
5139      if (code == SPDXLicense.CCBYND2_0)
5140        return "CC-BY-ND-2.0";
5141      if (code == SPDXLicense.CCBYND2_5)
5142        return "CC-BY-ND-2.5";
5143      if (code == SPDXLicense.CCBYND3_0)
5144        return "CC-BY-ND-3.0";
5145      if (code == SPDXLicense.CCBYND4_0)
5146        return "CC-BY-ND-4.0";
5147      if (code == SPDXLicense.CCBYSA1_0)
5148        return "CC-BY-SA-1.0";
5149      if (code == SPDXLicense.CCBYSA2_0)
5150        return "CC-BY-SA-2.0";
5151      if (code == SPDXLicense.CCBYSA2_5)
5152        return "CC-BY-SA-2.5";
5153      if (code == SPDXLicense.CCBYSA3_0)
5154        return "CC-BY-SA-3.0";
5155      if (code == SPDXLicense.CCBYSA4_0)
5156        return "CC-BY-SA-4.0";
5157      if (code == SPDXLicense.CC01_0)
5158        return "CC0-1.0";
5159      if (code == SPDXLicense.CDDL1_0)
5160        return "CDDL-1.0";
5161      if (code == SPDXLicense.CDDL1_1)
5162        return "CDDL-1.1";
5163      if (code == SPDXLicense.CDLAPERMISSIVE1_0)
5164        return "CDLA-Permissive-1.0";
5165      if (code == SPDXLicense.CDLASHARING1_0)
5166        return "CDLA-Sharing-1.0";
5167      if (code == SPDXLicense.CECILL1_0)
5168        return "CECILL-1.0";
5169      if (code == SPDXLicense.CECILL1_1)
5170        return "CECILL-1.1";
5171      if (code == SPDXLicense.CECILL2_0)
5172        return "CECILL-2.0";
5173      if (code == SPDXLicense.CECILL2_1)
5174        return "CECILL-2.1";
5175      if (code == SPDXLicense.CECILLB)
5176        return "CECILL-B";
5177      if (code == SPDXLicense.CECILLC)
5178        return "CECILL-C";
5179      if (code == SPDXLicense.CLARTISTIC)
5180        return "ClArtistic";
5181      if (code == SPDXLicense.CNRIJYTHON)
5182        return "CNRI-Jython";
5183      if (code == SPDXLicense.CNRIPYTHONGPLCOMPATIBLE)
5184        return "CNRI-Python-GPL-Compatible";
5185      if (code == SPDXLicense.CNRIPYTHON)
5186        return "CNRI-Python";
5187      if (code == SPDXLicense.CONDOR1_1)
5188        return "Condor-1.1";
5189      if (code == SPDXLicense.CPAL1_0)
5190        return "CPAL-1.0";
5191      if (code == SPDXLicense.CPL1_0)
5192        return "CPL-1.0";
5193      if (code == SPDXLicense.CPOL1_02)
5194        return "CPOL-1.02";
5195      if (code == SPDXLicense.CROSSWORD)
5196        return "Crossword";
5197      if (code == SPDXLicense.CRYSTALSTACKER)
5198        return "CrystalStacker";
5199      if (code == SPDXLicense.CUAOPL1_0)
5200        return "CUA-OPL-1.0";
5201      if (code == SPDXLicense.CUBE)
5202        return "Cube";
5203      if (code == SPDXLicense.CURL)
5204        return "curl";
5205      if (code == SPDXLicense.DFSL1_0)
5206        return "D-FSL-1.0";
5207      if (code == SPDXLicense.DIFFMARK)
5208        return "diffmark";
5209      if (code == SPDXLicense.DOC)
5210        return "DOC";
5211      if (code == SPDXLicense.DOTSEQN)
5212        return "Dotseqn";
5213      if (code == SPDXLicense.DSDP)
5214        return "DSDP";
5215      if (code == SPDXLicense.DVIPDFM)
5216        return "dvipdfm";
5217      if (code == SPDXLicense.ECL1_0)
5218        return "ECL-1.0";
5219      if (code == SPDXLicense.ECL2_0)
5220        return "ECL-2.0";
5221      if (code == SPDXLicense.EFL1_0)
5222        return "EFL-1.0";
5223      if (code == SPDXLicense.EFL2_0)
5224        return "EFL-2.0";
5225      if (code == SPDXLicense.EGENIX)
5226        return "eGenix";
5227      if (code == SPDXLicense.ENTESSA)
5228        return "Entessa";
5229      if (code == SPDXLicense.EPL1_0)
5230        return "EPL-1.0";
5231      if (code == SPDXLicense.EPL2_0)
5232        return "EPL-2.0";
5233      if (code == SPDXLicense.ERLPL1_1)
5234        return "ErlPL-1.1";
5235      if (code == SPDXLicense.EUDATAGRID)
5236        return "EUDatagrid";
5237      if (code == SPDXLicense.EUPL1_0)
5238        return "EUPL-1.0";
5239      if (code == SPDXLicense.EUPL1_1)
5240        return "EUPL-1.1";
5241      if (code == SPDXLicense.EUPL1_2)
5242        return "EUPL-1.2";
5243      if (code == SPDXLicense.EUROSYM)
5244        return "Eurosym";
5245      if (code == SPDXLicense.FAIR)
5246        return "Fair";
5247      if (code == SPDXLicense.FRAMEWORX1_0)
5248        return "Frameworx-1.0";
5249      if (code == SPDXLicense.FREEIMAGE)
5250        return "FreeImage";
5251      if (code == SPDXLicense.FSFAP)
5252        return "FSFAP";
5253      if (code == SPDXLicense.FSFUL)
5254        return "FSFUL";
5255      if (code == SPDXLicense.FSFULLR)
5256        return "FSFULLR";
5257      if (code == SPDXLicense.FTL)
5258        return "FTL";
5259      if (code == SPDXLicense.GFDL1_1ONLY)
5260        return "GFDL-1.1-only";
5261      if (code == SPDXLicense.GFDL1_1ORLATER)
5262        return "GFDL-1.1-or-later";
5263      if (code == SPDXLicense.GFDL1_2ONLY)
5264        return "GFDL-1.2-only";
5265      if (code == SPDXLicense.GFDL1_2ORLATER)
5266        return "GFDL-1.2-or-later";
5267      if (code == SPDXLicense.GFDL1_3ONLY)
5268        return "GFDL-1.3-only";
5269      if (code == SPDXLicense.GFDL1_3ORLATER)
5270        return "GFDL-1.3-or-later";
5271      if (code == SPDXLicense.GIFTWARE)
5272        return "Giftware";
5273      if (code == SPDXLicense.GL2PS)
5274        return "GL2PS";
5275      if (code == SPDXLicense.GLIDE)
5276        return "Glide";
5277      if (code == SPDXLicense.GLULXE)
5278        return "Glulxe";
5279      if (code == SPDXLicense.GNUPLOT)
5280        return "gnuplot";
5281      if (code == SPDXLicense.GPL1_0ONLY)
5282        return "GPL-1.0-only";
5283      if (code == SPDXLicense.GPL1_0ORLATER)
5284        return "GPL-1.0-or-later";
5285      if (code == SPDXLicense.GPL2_0ONLY)
5286        return "GPL-2.0-only";
5287      if (code == SPDXLicense.GPL2_0ORLATER)
5288        return "GPL-2.0-or-later";
5289      if (code == SPDXLicense.GPL3_0ONLY)
5290        return "GPL-3.0-only";
5291      if (code == SPDXLicense.GPL3_0ORLATER)
5292        return "GPL-3.0-or-later";
5293      if (code == SPDXLicense.GSOAP1_3B)
5294        return "gSOAP-1.3b";
5295      if (code == SPDXLicense.HASKELLREPORT)
5296        return "HaskellReport";
5297      if (code == SPDXLicense.HPND)
5298        return "HPND";
5299      if (code == SPDXLicense.IBMPIBS)
5300        return "IBM-pibs";
5301      if (code == SPDXLicense.ICU)
5302        return "ICU";
5303      if (code == SPDXLicense.IJG)
5304        return "IJG";
5305      if (code == SPDXLicense.IMAGEMAGICK)
5306        return "ImageMagick";
5307      if (code == SPDXLicense.IMATIX)
5308        return "iMatix";
5309      if (code == SPDXLicense.IMLIB2)
5310        return "Imlib2";
5311      if (code == SPDXLicense.INFOZIP)
5312        return "Info-ZIP";
5313      if (code == SPDXLicense.INTELACPI)
5314        return "Intel-ACPI";
5315      if (code == SPDXLicense.INTEL)
5316        return "Intel";
5317      if (code == SPDXLicense.INTERBASE1_0)
5318        return "Interbase-1.0";
5319      if (code == SPDXLicense.IPA)
5320        return "IPA";
5321      if (code == SPDXLicense.IPL1_0)
5322        return "IPL-1.0";
5323      if (code == SPDXLicense.ISC)
5324        return "ISC";
5325      if (code == SPDXLicense.JASPER2_0)
5326        return "JasPer-2.0";
5327      if (code == SPDXLicense.JSON)
5328        return "JSON";
5329      if (code == SPDXLicense.LAL1_2)
5330        return "LAL-1.2";
5331      if (code == SPDXLicense.LAL1_3)
5332        return "LAL-1.3";
5333      if (code == SPDXLicense.LATEX2E)
5334        return "Latex2e";
5335      if (code == SPDXLicense.LEPTONICA)
5336        return "Leptonica";
5337      if (code == SPDXLicense.LGPL2_0ONLY)
5338        return "LGPL-2.0-only";
5339      if (code == SPDXLicense.LGPL2_0ORLATER)
5340        return "LGPL-2.0-or-later";
5341      if (code == SPDXLicense.LGPL2_1ONLY)
5342        return "LGPL-2.1-only";
5343      if (code == SPDXLicense.LGPL2_1ORLATER)
5344        return "LGPL-2.1-or-later";
5345      if (code == SPDXLicense.LGPL3_0ONLY)
5346        return "LGPL-3.0-only";
5347      if (code == SPDXLicense.LGPL3_0ORLATER)
5348        return "LGPL-3.0-or-later";
5349      if (code == SPDXLicense.LGPLLR)
5350        return "LGPLLR";
5351      if (code == SPDXLicense.LIBPNG)
5352        return "Libpng";
5353      if (code == SPDXLicense.LIBTIFF)
5354        return "libtiff";
5355      if (code == SPDXLicense.LILIQP1_1)
5356        return "LiLiQ-P-1.1";
5357      if (code == SPDXLicense.LILIQR1_1)
5358        return "LiLiQ-R-1.1";
5359      if (code == SPDXLicense.LILIQRPLUS1_1)
5360        return "LiLiQ-Rplus-1.1";
5361      if (code == SPDXLicense.LINUXOPENIB)
5362        return "Linux-OpenIB";
5363      if (code == SPDXLicense.LPL1_0)
5364        return "LPL-1.0";
5365      if (code == SPDXLicense.LPL1_02)
5366        return "LPL-1.02";
5367      if (code == SPDXLicense.LPPL1_0)
5368        return "LPPL-1.0";
5369      if (code == SPDXLicense.LPPL1_1)
5370        return "LPPL-1.1";
5371      if (code == SPDXLicense.LPPL1_2)
5372        return "LPPL-1.2";
5373      if (code == SPDXLicense.LPPL1_3A)
5374        return "LPPL-1.3a";
5375      if (code == SPDXLicense.LPPL1_3C)
5376        return "LPPL-1.3c";
5377      if (code == SPDXLicense.MAKEINDEX)
5378        return "MakeIndex";
5379      if (code == SPDXLicense.MIROS)
5380        return "MirOS";
5381      if (code == SPDXLicense.MIT0)
5382        return "MIT-0";
5383      if (code == SPDXLicense.MITADVERTISING)
5384        return "MIT-advertising";
5385      if (code == SPDXLicense.MITCMU)
5386        return "MIT-CMU";
5387      if (code == SPDXLicense.MITENNA)
5388        return "MIT-enna";
5389      if (code == SPDXLicense.MITFEH)
5390        return "MIT-feh";
5391      if (code == SPDXLicense.MIT)
5392        return "MIT";
5393      if (code == SPDXLicense.MITNFA)
5394        return "MITNFA";
5395      if (code == SPDXLicense.MOTOSOTO)
5396        return "Motosoto";
5397      if (code == SPDXLicense.MPICH2)
5398        return "mpich2";
5399      if (code == SPDXLicense.MPL1_0)
5400        return "MPL-1.0";
5401      if (code == SPDXLicense.MPL1_1)
5402        return "MPL-1.1";
5403      if (code == SPDXLicense.MPL2_0NOCOPYLEFTEXCEPTION)
5404        return "MPL-2.0-no-copyleft-exception";
5405      if (code == SPDXLicense.MPL2_0)
5406        return "MPL-2.0";
5407      if (code == SPDXLicense.MSPL)
5408        return "MS-PL";
5409      if (code == SPDXLicense.MSRL)
5410        return "MS-RL";
5411      if (code == SPDXLicense.MTLL)
5412        return "MTLL";
5413      if (code == SPDXLicense.MULTICS)
5414        return "Multics";
5415      if (code == SPDXLicense.MUP)
5416        return "Mup";
5417      if (code == SPDXLicense.NASA1_3)
5418        return "NASA-1.3";
5419      if (code == SPDXLicense.NAUMEN)
5420        return "Naumen";
5421      if (code == SPDXLicense.NBPL1_0)
5422        return "NBPL-1.0";
5423      if (code == SPDXLicense.NCSA)
5424        return "NCSA";
5425      if (code == SPDXLicense.NETSNMP)
5426        return "Net-SNMP";
5427      if (code == SPDXLicense.NETCDF)
5428        return "NetCDF";
5429      if (code == SPDXLicense.NEWSLETR)
5430        return "Newsletr";
5431      if (code == SPDXLicense.NGPL)
5432        return "NGPL";
5433      if (code == SPDXLicense.NLOD1_0)
5434        return "NLOD-1.0";
5435      if (code == SPDXLicense.NLPL)
5436        return "NLPL";
5437      if (code == SPDXLicense.NOKIA)
5438        return "Nokia";
5439      if (code == SPDXLicense.NOSL)
5440        return "NOSL";
5441      if (code == SPDXLicense.NOWEB)
5442        return "Noweb";
5443      if (code == SPDXLicense.NPL1_0)
5444        return "NPL-1.0";
5445      if (code == SPDXLicense.NPL1_1)
5446        return "NPL-1.1";
5447      if (code == SPDXLicense.NPOSL3_0)
5448        return "NPOSL-3.0";
5449      if (code == SPDXLicense.NRL)
5450        return "NRL";
5451      if (code == SPDXLicense.NTP)
5452        return "NTP";
5453      if (code == SPDXLicense.OCCTPL)
5454        return "OCCT-PL";
5455      if (code == SPDXLicense.OCLC2_0)
5456        return "OCLC-2.0";
5457      if (code == SPDXLicense.ODBL1_0)
5458        return "ODbL-1.0";
5459      if (code == SPDXLicense.OFL1_0)
5460        return "OFL-1.0";
5461      if (code == SPDXLicense.OFL1_1)
5462        return "OFL-1.1";
5463      if (code == SPDXLicense.OGTSL)
5464        return "OGTSL";
5465      if (code == SPDXLicense.OLDAP1_1)
5466        return "OLDAP-1.1";
5467      if (code == SPDXLicense.OLDAP1_2)
5468        return "OLDAP-1.2";
5469      if (code == SPDXLicense.OLDAP1_3)
5470        return "OLDAP-1.3";
5471      if (code == SPDXLicense.OLDAP1_4)
5472        return "OLDAP-1.4";
5473      if (code == SPDXLicense.OLDAP2_0_1)
5474        return "OLDAP-2.0.1";
5475      if (code == SPDXLicense.OLDAP2_0)
5476        return "OLDAP-2.0";
5477      if (code == SPDXLicense.OLDAP2_1)
5478        return "OLDAP-2.1";
5479      if (code == SPDXLicense.OLDAP2_2_1)
5480        return "OLDAP-2.2.1";
5481      if (code == SPDXLicense.OLDAP2_2_2)
5482        return "OLDAP-2.2.2";
5483      if (code == SPDXLicense.OLDAP2_2)
5484        return "OLDAP-2.2";
5485      if (code == SPDXLicense.OLDAP2_3)
5486        return "OLDAP-2.3";
5487      if (code == SPDXLicense.OLDAP2_4)
5488        return "OLDAP-2.4";
5489      if (code == SPDXLicense.OLDAP2_5)
5490        return "OLDAP-2.5";
5491      if (code == SPDXLicense.OLDAP2_6)
5492        return "OLDAP-2.6";
5493      if (code == SPDXLicense.OLDAP2_7)
5494        return "OLDAP-2.7";
5495      if (code == SPDXLicense.OLDAP2_8)
5496        return "OLDAP-2.8";
5497      if (code == SPDXLicense.OML)
5498        return "OML";
5499      if (code == SPDXLicense.OPENSSL)
5500        return "OpenSSL";
5501      if (code == SPDXLicense.OPL1_0)
5502        return "OPL-1.0";
5503      if (code == SPDXLicense.OSETPL2_1)
5504        return "OSET-PL-2.1";
5505      if (code == SPDXLicense.OSL1_0)
5506        return "OSL-1.0";
5507      if (code == SPDXLicense.OSL1_1)
5508        return "OSL-1.1";
5509      if (code == SPDXLicense.OSL2_0)
5510        return "OSL-2.0";
5511      if (code == SPDXLicense.OSL2_1)
5512        return "OSL-2.1";
5513      if (code == SPDXLicense.OSL3_0)
5514        return "OSL-3.0";
5515      if (code == SPDXLicense.PDDL1_0)
5516        return "PDDL-1.0";
5517      if (code == SPDXLicense.PHP3_0)
5518        return "PHP-3.0";
5519      if (code == SPDXLicense.PHP3_01)
5520        return "PHP-3.01";
5521      if (code == SPDXLicense.PLEXUS)
5522        return "Plexus";
5523      if (code == SPDXLicense.POSTGRESQL)
5524        return "PostgreSQL";
5525      if (code == SPDXLicense.PSFRAG)
5526        return "psfrag";
5527      if (code == SPDXLicense.PSUTILS)
5528        return "psutils";
5529      if (code == SPDXLicense.PYTHON2_0)
5530        return "Python-2.0";
5531      if (code == SPDXLicense.QHULL)
5532        return "Qhull";
5533      if (code == SPDXLicense.QPL1_0)
5534        return "QPL-1.0";
5535      if (code == SPDXLicense.RDISC)
5536        return "Rdisc";
5537      if (code == SPDXLicense.RHECOS1_1)
5538        return "RHeCos-1.1";
5539      if (code == SPDXLicense.RPL1_1)
5540        return "RPL-1.1";
5541      if (code == SPDXLicense.RPL1_5)
5542        return "RPL-1.5";
5543      if (code == SPDXLicense.RPSL1_0)
5544        return "RPSL-1.0";
5545      if (code == SPDXLicense.RSAMD)
5546        return "RSA-MD";
5547      if (code == SPDXLicense.RSCPL)
5548        return "RSCPL";
5549      if (code == SPDXLicense.RUBY)
5550        return "Ruby";
5551      if (code == SPDXLicense.SAXPD)
5552        return "SAX-PD";
5553      if (code == SPDXLicense.SAXPATH)
5554        return "Saxpath";
5555      if (code == SPDXLicense.SCEA)
5556        return "SCEA";
5557      if (code == SPDXLicense.SENDMAIL)
5558        return "Sendmail";
5559      if (code == SPDXLicense.SGIB1_0)
5560        return "SGI-B-1.0";
5561      if (code == SPDXLicense.SGIB1_1)
5562        return "SGI-B-1.1";
5563      if (code == SPDXLicense.SGIB2_0)
5564        return "SGI-B-2.0";
5565      if (code == SPDXLicense.SIMPL2_0)
5566        return "SimPL-2.0";
5567      if (code == SPDXLicense.SISSL1_2)
5568        return "SISSL-1.2";
5569      if (code == SPDXLicense.SISSL)
5570        return "SISSL";
5571      if (code == SPDXLicense.SLEEPYCAT)
5572        return "Sleepycat";
5573      if (code == SPDXLicense.SMLNJ)
5574        return "SMLNJ";
5575      if (code == SPDXLicense.SMPPL)
5576        return "SMPPL";
5577      if (code == SPDXLicense.SNIA)
5578        return "SNIA";
5579      if (code == SPDXLicense.SPENCER86)
5580        return "Spencer-86";
5581      if (code == SPDXLicense.SPENCER94)
5582        return "Spencer-94";
5583      if (code == SPDXLicense.SPENCER99)
5584        return "Spencer-99";
5585      if (code == SPDXLicense.SPL1_0)
5586        return "SPL-1.0";
5587      if (code == SPDXLicense.SUGARCRM1_1_3)
5588        return "SugarCRM-1.1.3";
5589      if (code == SPDXLicense.SWL)
5590        return "SWL";
5591      if (code == SPDXLicense.TCL)
5592        return "TCL";
5593      if (code == SPDXLicense.TCPWRAPPERS)
5594        return "TCP-wrappers";
5595      if (code == SPDXLicense.TMATE)
5596        return "TMate";
5597      if (code == SPDXLicense.TORQUE1_1)
5598        return "TORQUE-1.1";
5599      if (code == SPDXLicense.TOSL)
5600        return "TOSL";
5601      if (code == SPDXLicense.UNICODEDFS2015)
5602        return "Unicode-DFS-2015";
5603      if (code == SPDXLicense.UNICODEDFS2016)
5604        return "Unicode-DFS-2016";
5605      if (code == SPDXLicense.UNICODETOU)
5606        return "Unicode-TOU";
5607      if (code == SPDXLicense.UNLICENSE)
5608        return "Unlicense";
5609      if (code == SPDXLicense.UPL1_0)
5610        return "UPL-1.0";
5611      if (code == SPDXLicense.VIM)
5612        return "Vim";
5613      if (code == SPDXLicense.VOSTROM)
5614        return "VOSTROM";
5615      if (code == SPDXLicense.VSL1_0)
5616        return "VSL-1.0";
5617      if (code == SPDXLicense.W3C19980720)
5618        return "W3C-19980720";
5619      if (code == SPDXLicense.W3C20150513)
5620        return "W3C-20150513";
5621      if (code == SPDXLicense.W3C)
5622        return "W3C";
5623      if (code == SPDXLicense.WATCOM1_0)
5624        return "Watcom-1.0";
5625      if (code == SPDXLicense.WSUIPA)
5626        return "Wsuipa";
5627      if (code == SPDXLicense.WTFPL)
5628        return "WTFPL";
5629      if (code == SPDXLicense.X11)
5630        return "X11";
5631      if (code == SPDXLicense.XEROX)
5632        return "Xerox";
5633      if (code == SPDXLicense.XFREE861_1)
5634        return "XFree86-1.1";
5635      if (code == SPDXLicense.XINETD)
5636        return "xinetd";
5637      if (code == SPDXLicense.XNET)
5638        return "Xnet";
5639      if (code == SPDXLicense.XPP)
5640        return "xpp";
5641      if (code == SPDXLicense.XSKAT)
5642        return "XSkat";
5643      if (code == SPDXLicense.YPL1_0)
5644        return "YPL-1.0";
5645      if (code == SPDXLicense.YPL1_1)
5646        return "YPL-1.1";
5647      if (code == SPDXLicense.ZED)
5648        return "Zed";
5649      if (code == SPDXLicense.ZEND2_0)
5650        return "Zend-2.0";
5651      if (code == SPDXLicense.ZIMBRA1_3)
5652        return "Zimbra-1.3";
5653      if (code == SPDXLicense.ZIMBRA1_4)
5654        return "Zimbra-1.4";
5655      if (code == SPDXLicense.ZLIBACKNOWLEDGEMENT)
5656        return "zlib-acknowledgement";
5657      if (code == SPDXLicense.ZLIB)
5658        return "Zlib";
5659      if (code == SPDXLicense.ZPL1_1)
5660        return "ZPL-1.1";
5661      if (code == SPDXLicense.ZPL2_0)
5662        return "ZPL-2.0";
5663      if (code == SPDXLicense.ZPL2_1)
5664        return "ZPL-2.1";
5665      return "?";
5666      }
5667    public String toSystem(SPDXLicense code) {
5668      return code.getSystem();
5669      }
5670    }
5671
5672    public enum GuidePageGeneration {
5673        /**
5674         * Page is proper xhtml with no templating.  Will be brought across unchanged for standard post-processing.
5675         */
5676        HTML, 
5677        /**
5678         * Page is markdown with templating.  Will use the template to create a file that imports the markdown file prior to post-processing.
5679         */
5680        MARKDOWN, 
5681        /**
5682         * Page is xml with templating.  Will use the template to create a file that imports the source file and run the nominated XSLT transform (see parameters) if present prior to post-processing.
5683         */
5684        XML, 
5685        /**
5686         * Page will be generated by the publication process - no source to bring across.
5687         */
5688        GENERATED, 
5689        /**
5690         * added to help the parsers with the generic types
5691         */
5692        NULL;
5693        public static GuidePageGeneration fromCode(String codeString) throws FHIRException {
5694            if (codeString == null || "".equals(codeString))
5695                return null;
5696        if ("html".equals(codeString))
5697          return HTML;
5698        if ("markdown".equals(codeString))
5699          return MARKDOWN;
5700        if ("xml".equals(codeString))
5701          return XML;
5702        if ("generated".equals(codeString))
5703          return GENERATED;
5704        if (Configuration.isAcceptInvalidEnums())
5705          return null;
5706        else
5707          throw new FHIRException("Unknown GuidePageGeneration code '"+codeString+"'");
5708        }
5709        public String toCode() {
5710          switch (this) {
5711            case HTML: return "html";
5712            case MARKDOWN: return "markdown";
5713            case XML: return "xml";
5714            case GENERATED: return "generated";
5715            default: return "?";
5716          }
5717        }
5718        public String getSystem() {
5719          switch (this) {
5720            case HTML: return "http://hl7.org/fhir/guide-page-generation";
5721            case MARKDOWN: return "http://hl7.org/fhir/guide-page-generation";
5722            case XML: return "http://hl7.org/fhir/guide-page-generation";
5723            case GENERATED: return "http://hl7.org/fhir/guide-page-generation";
5724            default: return "?";
5725          }
5726        }
5727        public String getDefinition() {
5728          switch (this) {
5729            case HTML: return "Page is proper xhtml with no templating.  Will be brought across unchanged for standard post-processing.";
5730            case MARKDOWN: return "Page is markdown with templating.  Will use the template to create a file that imports the markdown file prior to post-processing.";
5731            case XML: return "Page is xml with templating.  Will use the template to create a file that imports the source file and run the nominated XSLT transform (see parameters) if present prior to post-processing.";
5732            case GENERATED: return "Page will be generated by the publication process - no source to bring across.";
5733            default: return "?";
5734          }
5735        }
5736        public String getDisplay() {
5737          switch (this) {
5738            case HTML: return "HTML";
5739            case MARKDOWN: return "Markdown";
5740            case XML: return "XML";
5741            case GENERATED: return "Generated";
5742            default: return "?";
5743          }
5744        }
5745    }
5746
5747  public static class GuidePageGenerationEnumFactory implements EnumFactory<GuidePageGeneration> {
5748    public GuidePageGeneration fromCode(String codeString) throws IllegalArgumentException {
5749      if (codeString == null || "".equals(codeString))
5750            if (codeString == null || "".equals(codeString))
5751                return null;
5752        if ("html".equals(codeString))
5753          return GuidePageGeneration.HTML;
5754        if ("markdown".equals(codeString))
5755          return GuidePageGeneration.MARKDOWN;
5756        if ("xml".equals(codeString))
5757          return GuidePageGeneration.XML;
5758        if ("generated".equals(codeString))
5759          return GuidePageGeneration.GENERATED;
5760        throw new IllegalArgumentException("Unknown GuidePageGeneration code '"+codeString+"'");
5761        }
5762        public Enumeration<GuidePageGeneration> fromType(Base code) throws FHIRException {
5763          if (code == null)
5764            return null;
5765          if (code.isEmpty())
5766            return new Enumeration<GuidePageGeneration>(this);
5767          String codeString = ((PrimitiveType) code).asStringValue();
5768          if (codeString == null || "".equals(codeString))
5769            return null;
5770        if ("html".equals(codeString))
5771          return new Enumeration<GuidePageGeneration>(this, GuidePageGeneration.HTML);
5772        if ("markdown".equals(codeString))
5773          return new Enumeration<GuidePageGeneration>(this, GuidePageGeneration.MARKDOWN);
5774        if ("xml".equals(codeString))
5775          return new Enumeration<GuidePageGeneration>(this, GuidePageGeneration.XML);
5776        if ("generated".equals(codeString))
5777          return new Enumeration<GuidePageGeneration>(this, GuidePageGeneration.GENERATED);
5778        throw new FHIRException("Unknown GuidePageGeneration code '"+codeString+"'");
5779        }
5780    public String toCode(GuidePageGeneration code) {
5781      if (code == GuidePageGeneration.HTML)
5782        return "html";
5783      if (code == GuidePageGeneration.MARKDOWN)
5784        return "markdown";
5785      if (code == GuidePageGeneration.XML)
5786        return "xml";
5787      if (code == GuidePageGeneration.GENERATED)
5788        return "generated";
5789      return "?";
5790      }
5791    public String toSystem(GuidePageGeneration code) {
5792      return code.getSystem();
5793      }
5794    }
5795
5796    @Block()
5797    public static class ImplementationGuideDependsOnComponent extends BackboneElement implements IBaseBackboneElement {
5798        /**
5799         * A canonical reference to the Implementation guide for the dependency.
5800         */
5801        @Child(name = "uri", type = {CanonicalType.class}, order=1, min=1, max=1, modifier=false, summary=true)
5802        @Description(shortDefinition="Identity of the IG that this depends on", formalDefinition="A canonical reference to the Implementation guide for the dependency." )
5803        protected CanonicalType uri;
5804
5805        /**
5806         * The NPM package name for the Implementation Guide that this IG depends on.
5807         */
5808        @Child(name = "packageId", type = {IdType.class}, order=2, min=0, max=1, modifier=false, summary=true)
5809        @Description(shortDefinition="NPM Package name for IG this depends on", formalDefinition="The NPM package name for the Implementation Guide that this IG depends on." )
5810        protected IdType packageId;
5811
5812        /**
5813         * The version of the IG that is depended on, when the correct version is required to understand the IG correctly.
5814         */
5815        @Child(name = "version", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=true)
5816        @Description(shortDefinition="Version of the IG", formalDefinition="The version of the IG that is depended on, when the correct version is required to understand the IG correctly." )
5817        protected StringType version;
5818
5819        private static final long serialVersionUID = -215808797L;
5820
5821    /**
5822     * Constructor
5823     */
5824      public ImplementationGuideDependsOnComponent() {
5825        super();
5826      }
5827
5828    /**
5829     * Constructor
5830     */
5831      public ImplementationGuideDependsOnComponent(CanonicalType uri) {
5832        super();
5833        this.uri = uri;
5834      }
5835
5836        /**
5837         * @return {@link #uri} (A canonical reference to the Implementation guide for the dependency.). This is the underlying object with id, value and extensions. The accessor "getUri" gives direct access to the value
5838         */
5839        public CanonicalType getUriElement() { 
5840          if (this.uri == null)
5841            if (Configuration.errorOnAutoCreate())
5842              throw new Error("Attempt to auto-create ImplementationGuideDependsOnComponent.uri");
5843            else if (Configuration.doAutoCreate())
5844              this.uri = new CanonicalType(); // bb
5845          return this.uri;
5846        }
5847
5848        public boolean hasUriElement() { 
5849          return this.uri != null && !this.uri.isEmpty();
5850        }
5851
5852        public boolean hasUri() { 
5853          return this.uri != null && !this.uri.isEmpty();
5854        }
5855
5856        /**
5857         * @param value {@link #uri} (A canonical reference to the Implementation guide for the dependency.). This is the underlying object with id, value and extensions. The accessor "getUri" gives direct access to the value
5858         */
5859        public ImplementationGuideDependsOnComponent setUriElement(CanonicalType value) { 
5860          this.uri = value;
5861          return this;
5862        }
5863
5864        /**
5865         * @return A canonical reference to the Implementation guide for the dependency.
5866         */
5867        public String getUri() { 
5868          return this.uri == null ? null : this.uri.getValue();
5869        }
5870
5871        /**
5872         * @param value A canonical reference to the Implementation guide for the dependency.
5873         */
5874        public ImplementationGuideDependsOnComponent setUri(String value) { 
5875            if (this.uri == null)
5876              this.uri = new CanonicalType();
5877            this.uri.setValue(value);
5878          return this;
5879        }
5880
5881        /**
5882         * @return {@link #packageId} (The NPM package name for the Implementation Guide that this IG depends on.). This is the underlying object with id, value and extensions. The accessor "getPackageId" gives direct access to the value
5883         */
5884        public IdType getPackageIdElement() { 
5885          if (this.packageId == null)
5886            if (Configuration.errorOnAutoCreate())
5887              throw new Error("Attempt to auto-create ImplementationGuideDependsOnComponent.packageId");
5888            else if (Configuration.doAutoCreate())
5889              this.packageId = new IdType(); // bb
5890          return this.packageId;
5891        }
5892
5893        public boolean hasPackageIdElement() { 
5894          return this.packageId != null && !this.packageId.isEmpty();
5895        }
5896
5897        public boolean hasPackageId() { 
5898          return this.packageId != null && !this.packageId.isEmpty();
5899        }
5900
5901        /**
5902         * @param value {@link #packageId} (The NPM package name for the Implementation Guide that this IG depends on.). This is the underlying object with id, value and extensions. The accessor "getPackageId" gives direct access to the value
5903         */
5904        public ImplementationGuideDependsOnComponent setPackageIdElement(IdType value) { 
5905          this.packageId = value;
5906          return this;
5907        }
5908
5909        /**
5910         * @return The NPM package name for the Implementation Guide that this IG depends on.
5911         */
5912        public String getPackageId() { 
5913          return this.packageId == null ? null : this.packageId.getValue();
5914        }
5915
5916        /**
5917         * @param value The NPM package name for the Implementation Guide that this IG depends on.
5918         */
5919        public ImplementationGuideDependsOnComponent setPackageId(String value) { 
5920          if (Utilities.noString(value))
5921            this.packageId = null;
5922          else {
5923            if (this.packageId == null)
5924              this.packageId = new IdType();
5925            this.packageId.setValue(value);
5926          }
5927          return this;
5928        }
5929
5930        /**
5931         * @return {@link #version} (The version of the IG that is depended on, when the correct version is required to understand the IG correctly.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
5932         */
5933        public StringType getVersionElement() { 
5934          if (this.version == null)
5935            if (Configuration.errorOnAutoCreate())
5936              throw new Error("Attempt to auto-create ImplementationGuideDependsOnComponent.version");
5937            else if (Configuration.doAutoCreate())
5938              this.version = new StringType(); // bb
5939          return this.version;
5940        }
5941
5942        public boolean hasVersionElement() { 
5943          return this.version != null && !this.version.isEmpty();
5944        }
5945
5946        public boolean hasVersion() { 
5947          return this.version != null && !this.version.isEmpty();
5948        }
5949
5950        /**
5951         * @param value {@link #version} (The version of the IG that is depended on, when the correct version is required to understand the IG correctly.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
5952         */
5953        public ImplementationGuideDependsOnComponent setVersionElement(StringType value) { 
5954          this.version = value;
5955          return this;
5956        }
5957
5958        /**
5959         * @return The version of the IG that is depended on, when the correct version is required to understand the IG correctly.
5960         */
5961        public String getVersion() { 
5962          return this.version == null ? null : this.version.getValue();
5963        }
5964
5965        /**
5966         * @param value The version of the IG that is depended on, when the correct version is required to understand the IG correctly.
5967         */
5968        public ImplementationGuideDependsOnComponent setVersion(String value) { 
5969          if (Utilities.noString(value))
5970            this.version = null;
5971          else {
5972            if (this.version == null)
5973              this.version = new StringType();
5974            this.version.setValue(value);
5975          }
5976          return this;
5977        }
5978
5979        protected void listChildren(List<Property> children) {
5980          super.listChildren(children);
5981          children.add(new Property("uri", "canonical(ImplementationGuide)", "A canonical reference to the Implementation guide for the dependency.", 0, 1, uri));
5982          children.add(new Property("packageId", "id", "The NPM package name for the Implementation Guide that this IG depends on.", 0, 1, packageId));
5983          children.add(new Property("version", "string", "The version of the IG that is depended on, when the correct version is required to understand the IG correctly.", 0, 1, version));
5984        }
5985
5986        @Override
5987        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
5988          switch (_hash) {
5989          case 116076: /*uri*/  return new Property("uri", "canonical(ImplementationGuide)", "A canonical reference to the Implementation guide for the dependency.", 0, 1, uri);
5990          case 1802060801: /*packageId*/  return new Property("packageId", "id", "The NPM package name for the Implementation Guide that this IG depends on.", 0, 1, packageId);
5991          case 351608024: /*version*/  return new Property("version", "string", "The version of the IG that is depended on, when the correct version is required to understand the IG correctly.", 0, 1, version);
5992          default: return super.getNamedProperty(_hash, _name, _checkValid);
5993          }
5994
5995        }
5996
5997      @Override
5998      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
5999        switch (hash) {
6000        case 116076: /*uri*/ return this.uri == null ? new Base[0] : new Base[] {this.uri}; // CanonicalType
6001        case 1802060801: /*packageId*/ return this.packageId == null ? new Base[0] : new Base[] {this.packageId}; // IdType
6002        case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
6003        default: return super.getProperty(hash, name, checkValid);
6004        }
6005
6006      }
6007
6008      @Override
6009      public Base setProperty(int hash, String name, Base value) throws FHIRException {
6010        switch (hash) {
6011        case 116076: // uri
6012          this.uri = castToCanonical(value); // CanonicalType
6013          return value;
6014        case 1802060801: // packageId
6015          this.packageId = castToId(value); // IdType
6016          return value;
6017        case 351608024: // version
6018          this.version = castToString(value); // StringType
6019          return value;
6020        default: return super.setProperty(hash, name, value);
6021        }
6022
6023      }
6024
6025      @Override
6026      public Base setProperty(String name, Base value) throws FHIRException {
6027        if (name.equals("uri")) {
6028          this.uri = castToCanonical(value); // CanonicalType
6029        } else if (name.equals("packageId")) {
6030          this.packageId = castToId(value); // IdType
6031        } else if (name.equals("version")) {
6032          this.version = castToString(value); // StringType
6033        } else
6034          return super.setProperty(name, value);
6035        return value;
6036      }
6037
6038      @Override
6039      public Base makeProperty(int hash, String name) throws FHIRException {
6040        switch (hash) {
6041        case 116076:  return getUriElement();
6042        case 1802060801:  return getPackageIdElement();
6043        case 351608024:  return getVersionElement();
6044        default: return super.makeProperty(hash, name);
6045        }
6046
6047      }
6048
6049      @Override
6050      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
6051        switch (hash) {
6052        case 116076: /*uri*/ return new String[] {"canonical"};
6053        case 1802060801: /*packageId*/ return new String[] {"id"};
6054        case 351608024: /*version*/ return new String[] {"string"};
6055        default: return super.getTypesForProperty(hash, name);
6056        }
6057
6058      }
6059
6060      @Override
6061      public Base addChild(String name) throws FHIRException {
6062        if (name.equals("uri")) {
6063          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.uri");
6064        }
6065        else if (name.equals("packageId")) {
6066          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.packageId");
6067        }
6068        else if (name.equals("version")) {
6069          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.version");
6070        }
6071        else
6072          return super.addChild(name);
6073      }
6074
6075      public ImplementationGuideDependsOnComponent copy() {
6076        ImplementationGuideDependsOnComponent dst = new ImplementationGuideDependsOnComponent();
6077        copyValues(dst);
6078        return dst;
6079      }
6080
6081      public void copyValues(ImplementationGuideDependsOnComponent dst) {
6082        super.copyValues(dst);
6083        dst.uri = uri == null ? null : uri.copy();
6084        dst.packageId = packageId == null ? null : packageId.copy();
6085        dst.version = version == null ? null : version.copy();
6086      }
6087
6088      @Override
6089      public boolean equalsDeep(Base other_) {
6090        if (!super.equalsDeep(other_))
6091          return false;
6092        if (!(other_ instanceof ImplementationGuideDependsOnComponent))
6093          return false;
6094        ImplementationGuideDependsOnComponent o = (ImplementationGuideDependsOnComponent) other_;
6095        return compareDeep(uri, o.uri, true) && compareDeep(packageId, o.packageId, true) && compareDeep(version, o.version, true)
6096          ;
6097      }
6098
6099      @Override
6100      public boolean equalsShallow(Base other_) {
6101        if (!super.equalsShallow(other_))
6102          return false;
6103        if (!(other_ instanceof ImplementationGuideDependsOnComponent))
6104          return false;
6105        ImplementationGuideDependsOnComponent o = (ImplementationGuideDependsOnComponent) other_;
6106        return compareValues(packageId, o.packageId, true) && compareValues(version, o.version, true);
6107      }
6108
6109      public boolean isEmpty() {
6110        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(uri, packageId, version
6111          );
6112      }
6113
6114  public String fhirType() {
6115    return "ImplementationGuide.dependsOn";
6116
6117  }
6118
6119  }
6120
6121    @Block()
6122    public static class ImplementationGuideGlobalComponent extends BackboneElement implements IBaseBackboneElement {
6123        /**
6124         * The type of resource that all instances must conform to.
6125         */
6126        @Child(name = "type", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=true)
6127        @Description(shortDefinition="Type this profile applies to", formalDefinition="The type of resource that all instances must conform to." )
6128        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/resource-types")
6129        protected CodeType type;
6130
6131        /**
6132         * A reference to the profile that all instances must conform to.
6133         */
6134        @Child(name = "profile", type = {CanonicalType.class}, order=2, min=1, max=1, modifier=false, summary=true)
6135        @Description(shortDefinition="Profile that all resources must conform to", formalDefinition="A reference to the profile that all instances must conform to." )
6136        protected CanonicalType profile;
6137
6138        private static final long serialVersionUID = 33894666L;
6139
6140    /**
6141     * Constructor
6142     */
6143      public ImplementationGuideGlobalComponent() {
6144        super();
6145      }
6146
6147    /**
6148     * Constructor
6149     */
6150      public ImplementationGuideGlobalComponent(CodeType type, CanonicalType profile) {
6151        super();
6152        this.type = type;
6153        this.profile = profile;
6154      }
6155
6156        /**
6157         * @return {@link #type} (The type of resource that all instances must conform to.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
6158         */
6159        public CodeType getTypeElement() { 
6160          if (this.type == null)
6161            if (Configuration.errorOnAutoCreate())
6162              throw new Error("Attempt to auto-create ImplementationGuideGlobalComponent.type");
6163            else if (Configuration.doAutoCreate())
6164              this.type = new CodeType(); // bb
6165          return this.type;
6166        }
6167
6168        public boolean hasTypeElement() { 
6169          return this.type != null && !this.type.isEmpty();
6170        }
6171
6172        public boolean hasType() { 
6173          return this.type != null && !this.type.isEmpty();
6174        }
6175
6176        /**
6177         * @param value {@link #type} (The type of resource that all instances must conform to.). This is the underlying object with id, value and extensions. The accessor "getType" gives direct access to the value
6178         */
6179        public ImplementationGuideGlobalComponent setTypeElement(CodeType value) { 
6180          this.type = value;
6181          return this;
6182        }
6183
6184        /**
6185         * @return The type of resource that all instances must conform to.
6186         */
6187        public String getType() { 
6188          return this.type == null ? null : this.type.getValue();
6189        }
6190
6191        /**
6192         * @param value The type of resource that all instances must conform to.
6193         */
6194        public ImplementationGuideGlobalComponent setType(String value) { 
6195            if (this.type == null)
6196              this.type = new CodeType();
6197            this.type.setValue(value);
6198          return this;
6199        }
6200
6201        /**
6202         * @return {@link #profile} (A reference to the profile that all instances must conform to.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value
6203         */
6204        public CanonicalType getProfileElement() { 
6205          if (this.profile == null)
6206            if (Configuration.errorOnAutoCreate())
6207              throw new Error("Attempt to auto-create ImplementationGuideGlobalComponent.profile");
6208            else if (Configuration.doAutoCreate())
6209              this.profile = new CanonicalType(); // bb
6210          return this.profile;
6211        }
6212
6213        public boolean hasProfileElement() { 
6214          return this.profile != null && !this.profile.isEmpty();
6215        }
6216
6217        public boolean hasProfile() { 
6218          return this.profile != null && !this.profile.isEmpty();
6219        }
6220
6221        /**
6222         * @param value {@link #profile} (A reference to the profile that all instances must conform to.). This is the underlying object with id, value and extensions. The accessor "getProfile" gives direct access to the value
6223         */
6224        public ImplementationGuideGlobalComponent setProfileElement(CanonicalType value) { 
6225          this.profile = value;
6226          return this;
6227        }
6228
6229        /**
6230         * @return A reference to the profile that all instances must conform to.
6231         */
6232        public String getProfile() { 
6233          return this.profile == null ? null : this.profile.getValue();
6234        }
6235
6236        /**
6237         * @param value A reference to the profile that all instances must conform to.
6238         */
6239        public ImplementationGuideGlobalComponent setProfile(String value) { 
6240            if (this.profile == null)
6241              this.profile = new CanonicalType();
6242            this.profile.setValue(value);
6243          return this;
6244        }
6245
6246        protected void listChildren(List<Property> children) {
6247          super.listChildren(children);
6248          children.add(new Property("type", "code", "The type of resource that all instances must conform to.", 0, 1, type));
6249          children.add(new Property("profile", "canonical(StructureDefinition)", "A reference to the profile that all instances must conform to.", 0, 1, profile));
6250        }
6251
6252        @Override
6253        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
6254          switch (_hash) {
6255          case 3575610: /*type*/  return new Property("type", "code", "The type of resource that all instances must conform to.", 0, 1, type);
6256          case -309425751: /*profile*/  return new Property("profile", "canonical(StructureDefinition)", "A reference to the profile that all instances must conform to.", 0, 1, profile);
6257          default: return super.getNamedProperty(_hash, _name, _checkValid);
6258          }
6259
6260        }
6261
6262      @Override
6263      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
6264        switch (hash) {
6265        case 3575610: /*type*/ return this.type == null ? new Base[0] : new Base[] {this.type}; // CodeType
6266        case -309425751: /*profile*/ return this.profile == null ? new Base[0] : new Base[] {this.profile}; // CanonicalType
6267        default: return super.getProperty(hash, name, checkValid);
6268        }
6269
6270      }
6271
6272      @Override
6273      public Base setProperty(int hash, String name, Base value) throws FHIRException {
6274        switch (hash) {
6275        case 3575610: // type
6276          this.type = castToCode(value); // CodeType
6277          return value;
6278        case -309425751: // profile
6279          this.profile = castToCanonical(value); // CanonicalType
6280          return value;
6281        default: return super.setProperty(hash, name, value);
6282        }
6283
6284      }
6285
6286      @Override
6287      public Base setProperty(String name, Base value) throws FHIRException {
6288        if (name.equals("type")) {
6289          this.type = castToCode(value); // CodeType
6290        } else if (name.equals("profile")) {
6291          this.profile = castToCanonical(value); // CanonicalType
6292        } else
6293          return super.setProperty(name, value);
6294        return value;
6295      }
6296
6297      @Override
6298      public Base makeProperty(int hash, String name) throws FHIRException {
6299        switch (hash) {
6300        case 3575610:  return getTypeElement();
6301        case -309425751:  return getProfileElement();
6302        default: return super.makeProperty(hash, name);
6303        }
6304
6305      }
6306
6307      @Override
6308      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
6309        switch (hash) {
6310        case 3575610: /*type*/ return new String[] {"code"};
6311        case -309425751: /*profile*/ return new String[] {"canonical"};
6312        default: return super.getTypesForProperty(hash, name);
6313        }
6314
6315      }
6316
6317      @Override
6318      public Base addChild(String name) throws FHIRException {
6319        if (name.equals("type")) {
6320          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.type");
6321        }
6322        else if (name.equals("profile")) {
6323          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.profile");
6324        }
6325        else
6326          return super.addChild(name);
6327      }
6328
6329      public ImplementationGuideGlobalComponent copy() {
6330        ImplementationGuideGlobalComponent dst = new ImplementationGuideGlobalComponent();
6331        copyValues(dst);
6332        return dst;
6333      }
6334
6335      public void copyValues(ImplementationGuideGlobalComponent dst) {
6336        super.copyValues(dst);
6337        dst.type = type == null ? null : type.copy();
6338        dst.profile = profile == null ? null : profile.copy();
6339      }
6340
6341      @Override
6342      public boolean equalsDeep(Base other_) {
6343        if (!super.equalsDeep(other_))
6344          return false;
6345        if (!(other_ instanceof ImplementationGuideGlobalComponent))
6346          return false;
6347        ImplementationGuideGlobalComponent o = (ImplementationGuideGlobalComponent) other_;
6348        return compareDeep(type, o.type, true) && compareDeep(profile, o.profile, true);
6349      }
6350
6351      @Override
6352      public boolean equalsShallow(Base other_) {
6353        if (!super.equalsShallow(other_))
6354          return false;
6355        if (!(other_ instanceof ImplementationGuideGlobalComponent))
6356          return false;
6357        ImplementationGuideGlobalComponent o = (ImplementationGuideGlobalComponent) other_;
6358        return compareValues(type, o.type, true);
6359      }
6360
6361      public boolean isEmpty() {
6362        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(type, profile);
6363      }
6364
6365  public String fhirType() {
6366    return "ImplementationGuide.global";
6367
6368  }
6369
6370  }
6371
6372    @Block()
6373    public static class ImplementationGuideDefinitionComponent extends BackboneElement implements IBaseBackboneElement {
6374        /**
6375         * A logical group of resources. Logical groups can be used when building pages.
6376         */
6377        @Child(name = "grouping", type = {}, order=1, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
6378        @Description(shortDefinition="Grouping used to present related resources in the IG", formalDefinition="A logical group of resources. Logical groups can be used when building pages." )
6379        protected List<ImplementationGuideDefinitionGroupingComponent> grouping;
6380
6381        /**
6382         * A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.
6383         */
6384        @Child(name = "resource", type = {}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
6385        @Description(shortDefinition="Resource in the implementation guide", formalDefinition="A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource." )
6386        protected List<ImplementationGuideDefinitionResourceComponent> resource;
6387
6388        /**
6389         * A page / section in the implementation guide. The root page is the implementation guide home page.
6390         */
6391        @Child(name = "page", type = {}, order=3, min=0, max=1, modifier=false, summary=false)
6392        @Description(shortDefinition="Page/Section in the Guide", formalDefinition="A page / section in the implementation guide. The root page is the implementation guide home page." )
6393        protected ImplementationGuideDefinitionPageComponent page;
6394
6395        /**
6396         * Defines how IG is built by tools.
6397         */
6398        @Child(name = "parameter", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
6399        @Description(shortDefinition="Defines how IG is built by tools", formalDefinition="Defines how IG is built by tools." )
6400        protected List<ImplementationGuideDefinitionParameterComponent> parameter;
6401
6402        /**
6403         * A template for building resources.
6404         */
6405        @Child(name = "template", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
6406        @Description(shortDefinition="A template for building resources", formalDefinition="A template for building resources." )
6407        protected List<ImplementationGuideDefinitionTemplateComponent> template;
6408
6409        private static final long serialVersionUID = 179051968L;
6410
6411    /**
6412     * Constructor
6413     */
6414      public ImplementationGuideDefinitionComponent() {
6415        super();
6416      }
6417
6418        /**
6419         * @return {@link #grouping} (A logical group of resources. Logical groups can be used when building pages.)
6420         */
6421        public List<ImplementationGuideDefinitionGroupingComponent> getGrouping() { 
6422          if (this.grouping == null)
6423            this.grouping = new ArrayList<ImplementationGuideDefinitionGroupingComponent>();
6424          return this.grouping;
6425        }
6426
6427        /**
6428         * @return Returns a reference to <code>this</code> for easy method chaining
6429         */
6430        public ImplementationGuideDefinitionComponent setGrouping(List<ImplementationGuideDefinitionGroupingComponent> theGrouping) { 
6431          this.grouping = theGrouping;
6432          return this;
6433        }
6434
6435        public boolean hasGrouping() { 
6436          if (this.grouping == null)
6437            return false;
6438          for (ImplementationGuideDefinitionGroupingComponent item : this.grouping)
6439            if (!item.isEmpty())
6440              return true;
6441          return false;
6442        }
6443
6444        public ImplementationGuideDefinitionGroupingComponent addGrouping() { //3
6445          ImplementationGuideDefinitionGroupingComponent t = new ImplementationGuideDefinitionGroupingComponent();
6446          if (this.grouping == null)
6447            this.grouping = new ArrayList<ImplementationGuideDefinitionGroupingComponent>();
6448          this.grouping.add(t);
6449          return t;
6450        }
6451
6452        public ImplementationGuideDefinitionComponent addGrouping(ImplementationGuideDefinitionGroupingComponent t) { //3
6453          if (t == null)
6454            return this;
6455          if (this.grouping == null)
6456            this.grouping = new ArrayList<ImplementationGuideDefinitionGroupingComponent>();
6457          this.grouping.add(t);
6458          return this;
6459        }
6460
6461        /**
6462         * @return The first repetition of repeating field {@link #grouping}, creating it if it does not already exist
6463         */
6464        public ImplementationGuideDefinitionGroupingComponent getGroupingFirstRep() { 
6465          if (getGrouping().isEmpty()) {
6466            addGrouping();
6467          }
6468          return getGrouping().get(0);
6469        }
6470
6471        /**
6472         * @return {@link #resource} (A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.)
6473         */
6474        public List<ImplementationGuideDefinitionResourceComponent> getResource() { 
6475          if (this.resource == null)
6476            this.resource = new ArrayList<ImplementationGuideDefinitionResourceComponent>();
6477          return this.resource;
6478        }
6479
6480        /**
6481         * @return Returns a reference to <code>this</code> for easy method chaining
6482         */
6483        public ImplementationGuideDefinitionComponent setResource(List<ImplementationGuideDefinitionResourceComponent> theResource) { 
6484          this.resource = theResource;
6485          return this;
6486        }
6487
6488        public boolean hasResource() { 
6489          if (this.resource == null)
6490            return false;
6491          for (ImplementationGuideDefinitionResourceComponent item : this.resource)
6492            if (!item.isEmpty())
6493              return true;
6494          return false;
6495        }
6496
6497        public ImplementationGuideDefinitionResourceComponent addResource() { //3
6498          ImplementationGuideDefinitionResourceComponent t = new ImplementationGuideDefinitionResourceComponent();
6499          if (this.resource == null)
6500            this.resource = new ArrayList<ImplementationGuideDefinitionResourceComponent>();
6501          this.resource.add(t);
6502          return t;
6503        }
6504
6505        public ImplementationGuideDefinitionComponent addResource(ImplementationGuideDefinitionResourceComponent t) { //3
6506          if (t == null)
6507            return this;
6508          if (this.resource == null)
6509            this.resource = new ArrayList<ImplementationGuideDefinitionResourceComponent>();
6510          this.resource.add(t);
6511          return this;
6512        }
6513
6514        /**
6515         * @return The first repetition of repeating field {@link #resource}, creating it if it does not already exist
6516         */
6517        public ImplementationGuideDefinitionResourceComponent getResourceFirstRep() { 
6518          if (getResource().isEmpty()) {
6519            addResource();
6520          }
6521          return getResource().get(0);
6522        }
6523
6524        /**
6525         * @return {@link #page} (A page / section in the implementation guide. The root page is the implementation guide home page.)
6526         */
6527        public ImplementationGuideDefinitionPageComponent getPage() { 
6528          if (this.page == null)
6529            if (Configuration.errorOnAutoCreate())
6530              throw new Error("Attempt to auto-create ImplementationGuideDefinitionComponent.page");
6531            else if (Configuration.doAutoCreate())
6532              this.page = new ImplementationGuideDefinitionPageComponent(); // cc
6533          return this.page;
6534        }
6535
6536        public boolean hasPage() { 
6537          return this.page != null && !this.page.isEmpty();
6538        }
6539
6540        /**
6541         * @param value {@link #page} (A page / section in the implementation guide. The root page is the implementation guide home page.)
6542         */
6543        public ImplementationGuideDefinitionComponent setPage(ImplementationGuideDefinitionPageComponent value) { 
6544          this.page = value;
6545          return this;
6546        }
6547
6548        /**
6549         * @return {@link #parameter} (Defines how IG is built by tools.)
6550         */
6551        public List<ImplementationGuideDefinitionParameterComponent> getParameter() { 
6552          if (this.parameter == null)
6553            this.parameter = new ArrayList<ImplementationGuideDefinitionParameterComponent>();
6554          return this.parameter;
6555        }
6556
6557        /**
6558         * @return Returns a reference to <code>this</code> for easy method chaining
6559         */
6560        public ImplementationGuideDefinitionComponent setParameter(List<ImplementationGuideDefinitionParameterComponent> theParameter) { 
6561          this.parameter = theParameter;
6562          return this;
6563        }
6564
6565        public boolean hasParameter() { 
6566          if (this.parameter == null)
6567            return false;
6568          for (ImplementationGuideDefinitionParameterComponent item : this.parameter)
6569            if (!item.isEmpty())
6570              return true;
6571          return false;
6572        }
6573
6574        public ImplementationGuideDefinitionParameterComponent addParameter() { //3
6575          ImplementationGuideDefinitionParameterComponent t = new ImplementationGuideDefinitionParameterComponent();
6576          if (this.parameter == null)
6577            this.parameter = new ArrayList<ImplementationGuideDefinitionParameterComponent>();
6578          this.parameter.add(t);
6579          return t;
6580        }
6581
6582        public ImplementationGuideDefinitionComponent addParameter(ImplementationGuideDefinitionParameterComponent t) { //3
6583          if (t == null)
6584            return this;
6585          if (this.parameter == null)
6586            this.parameter = new ArrayList<ImplementationGuideDefinitionParameterComponent>();
6587          this.parameter.add(t);
6588          return this;
6589        }
6590
6591        /**
6592         * @return The first repetition of repeating field {@link #parameter}, creating it if it does not already exist
6593         */
6594        public ImplementationGuideDefinitionParameterComponent getParameterFirstRep() { 
6595          if (getParameter().isEmpty()) {
6596            addParameter();
6597          }
6598          return getParameter().get(0);
6599        }
6600
6601        /**
6602         * @return {@link #template} (A template for building resources.)
6603         */
6604        public List<ImplementationGuideDefinitionTemplateComponent> getTemplate() { 
6605          if (this.template == null)
6606            this.template = new ArrayList<ImplementationGuideDefinitionTemplateComponent>();
6607          return this.template;
6608        }
6609
6610        /**
6611         * @return Returns a reference to <code>this</code> for easy method chaining
6612         */
6613        public ImplementationGuideDefinitionComponent setTemplate(List<ImplementationGuideDefinitionTemplateComponent> theTemplate) { 
6614          this.template = theTemplate;
6615          return this;
6616        }
6617
6618        public boolean hasTemplate() { 
6619          if (this.template == null)
6620            return false;
6621          for (ImplementationGuideDefinitionTemplateComponent item : this.template)
6622            if (!item.isEmpty())
6623              return true;
6624          return false;
6625        }
6626
6627        public ImplementationGuideDefinitionTemplateComponent addTemplate() { //3
6628          ImplementationGuideDefinitionTemplateComponent t = new ImplementationGuideDefinitionTemplateComponent();
6629          if (this.template == null)
6630            this.template = new ArrayList<ImplementationGuideDefinitionTemplateComponent>();
6631          this.template.add(t);
6632          return t;
6633        }
6634
6635        public ImplementationGuideDefinitionComponent addTemplate(ImplementationGuideDefinitionTemplateComponent t) { //3
6636          if (t == null)
6637            return this;
6638          if (this.template == null)
6639            this.template = new ArrayList<ImplementationGuideDefinitionTemplateComponent>();
6640          this.template.add(t);
6641          return this;
6642        }
6643
6644        /**
6645         * @return The first repetition of repeating field {@link #template}, creating it if it does not already exist
6646         */
6647        public ImplementationGuideDefinitionTemplateComponent getTemplateFirstRep() { 
6648          if (getTemplate().isEmpty()) {
6649            addTemplate();
6650          }
6651          return getTemplate().get(0);
6652        }
6653
6654        protected void listChildren(List<Property> children) {
6655          super.listChildren(children);
6656          children.add(new Property("grouping", "", "A logical group of resources. Logical groups can be used when building pages.", 0, java.lang.Integer.MAX_VALUE, grouping));
6657          children.add(new Property("resource", "", "A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.", 0, java.lang.Integer.MAX_VALUE, resource));
6658          children.add(new Property("page", "", "A page / section in the implementation guide. The root page is the implementation guide home page.", 0, 1, page));
6659          children.add(new Property("parameter", "", "Defines how IG is built by tools.", 0, java.lang.Integer.MAX_VALUE, parameter));
6660          children.add(new Property("template", "", "A template for building resources.", 0, java.lang.Integer.MAX_VALUE, template));
6661        }
6662
6663        @Override
6664        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
6665          switch (_hash) {
6666          case 506371331: /*grouping*/  return new Property("grouping", "", "A logical group of resources. Logical groups can be used when building pages.", 0, java.lang.Integer.MAX_VALUE, grouping);
6667          case -341064690: /*resource*/  return new Property("resource", "", "A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.", 0, java.lang.Integer.MAX_VALUE, resource);
6668          case 3433103: /*page*/  return new Property("page", "", "A page / section in the implementation guide. The root page is the implementation guide home page.", 0, 1, page);
6669          case 1954460585: /*parameter*/  return new Property("parameter", "", "Defines how IG is built by tools.", 0, java.lang.Integer.MAX_VALUE, parameter);
6670          case -1321546630: /*template*/  return new Property("template", "", "A template for building resources.", 0, java.lang.Integer.MAX_VALUE, template);
6671          default: return super.getNamedProperty(_hash, _name, _checkValid);
6672          }
6673
6674        }
6675
6676      @Override
6677      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
6678        switch (hash) {
6679        case 506371331: /*grouping*/ return this.grouping == null ? new Base[0] : this.grouping.toArray(new Base[this.grouping.size()]); // ImplementationGuideDefinitionGroupingComponent
6680        case -341064690: /*resource*/ return this.resource == null ? new Base[0] : this.resource.toArray(new Base[this.resource.size()]); // ImplementationGuideDefinitionResourceComponent
6681        case 3433103: /*page*/ return this.page == null ? new Base[0] : new Base[] {this.page}; // ImplementationGuideDefinitionPageComponent
6682        case 1954460585: /*parameter*/ return this.parameter == null ? new Base[0] : this.parameter.toArray(new Base[this.parameter.size()]); // ImplementationGuideDefinitionParameterComponent
6683        case -1321546630: /*template*/ return this.template == null ? new Base[0] : this.template.toArray(new Base[this.template.size()]); // ImplementationGuideDefinitionTemplateComponent
6684        default: return super.getProperty(hash, name, checkValid);
6685        }
6686
6687      }
6688
6689      @Override
6690      public Base setProperty(int hash, String name, Base value) throws FHIRException {
6691        switch (hash) {
6692        case 506371331: // grouping
6693          this.getGrouping().add((ImplementationGuideDefinitionGroupingComponent) value); // ImplementationGuideDefinitionGroupingComponent
6694          return value;
6695        case -341064690: // resource
6696          this.getResource().add((ImplementationGuideDefinitionResourceComponent) value); // ImplementationGuideDefinitionResourceComponent
6697          return value;
6698        case 3433103: // page
6699          this.page = (ImplementationGuideDefinitionPageComponent) value; // ImplementationGuideDefinitionPageComponent
6700          return value;
6701        case 1954460585: // parameter
6702          this.getParameter().add((ImplementationGuideDefinitionParameterComponent) value); // ImplementationGuideDefinitionParameterComponent
6703          return value;
6704        case -1321546630: // template
6705          this.getTemplate().add((ImplementationGuideDefinitionTemplateComponent) value); // ImplementationGuideDefinitionTemplateComponent
6706          return value;
6707        default: return super.setProperty(hash, name, value);
6708        }
6709
6710      }
6711
6712      @Override
6713      public Base setProperty(String name, Base value) throws FHIRException {
6714        if (name.equals("grouping")) {
6715          this.getGrouping().add((ImplementationGuideDefinitionGroupingComponent) value);
6716        } else if (name.equals("resource")) {
6717          this.getResource().add((ImplementationGuideDefinitionResourceComponent) value);
6718        } else if (name.equals("page")) {
6719          this.page = (ImplementationGuideDefinitionPageComponent) value; // ImplementationGuideDefinitionPageComponent
6720        } else if (name.equals("parameter")) {
6721          this.getParameter().add((ImplementationGuideDefinitionParameterComponent) value);
6722        } else if (name.equals("template")) {
6723          this.getTemplate().add((ImplementationGuideDefinitionTemplateComponent) value);
6724        } else
6725          return super.setProperty(name, value);
6726        return value;
6727      }
6728
6729      @Override
6730      public Base makeProperty(int hash, String name) throws FHIRException {
6731        switch (hash) {
6732        case 506371331:  return addGrouping(); 
6733        case -341064690:  return addResource(); 
6734        case 3433103:  return getPage();
6735        case 1954460585:  return addParameter(); 
6736        case -1321546630:  return addTemplate(); 
6737        default: return super.makeProperty(hash, name);
6738        }
6739
6740      }
6741
6742      @Override
6743      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
6744        switch (hash) {
6745        case 506371331: /*grouping*/ return new String[] {};
6746        case -341064690: /*resource*/ return new String[] {};
6747        case 3433103: /*page*/ return new String[] {};
6748        case 1954460585: /*parameter*/ return new String[] {};
6749        case -1321546630: /*template*/ return new String[] {};
6750        default: return super.getTypesForProperty(hash, name);
6751        }
6752
6753      }
6754
6755      @Override
6756      public Base addChild(String name) throws FHIRException {
6757        if (name.equals("grouping")) {
6758          return addGrouping();
6759        }
6760        else if (name.equals("resource")) {
6761          return addResource();
6762        }
6763        else if (name.equals("page")) {
6764          this.page = new ImplementationGuideDefinitionPageComponent();
6765          return this.page;
6766        }
6767        else if (name.equals("parameter")) {
6768          return addParameter();
6769        }
6770        else if (name.equals("template")) {
6771          return addTemplate();
6772        }
6773        else
6774          return super.addChild(name);
6775      }
6776
6777      public ImplementationGuideDefinitionComponent copy() {
6778        ImplementationGuideDefinitionComponent dst = new ImplementationGuideDefinitionComponent();
6779        copyValues(dst);
6780        return dst;
6781      }
6782
6783      public void copyValues(ImplementationGuideDefinitionComponent dst) {
6784        super.copyValues(dst);
6785        if (grouping != null) {
6786          dst.grouping = new ArrayList<ImplementationGuideDefinitionGroupingComponent>();
6787          for (ImplementationGuideDefinitionGroupingComponent i : grouping)
6788            dst.grouping.add(i.copy());
6789        };
6790        if (resource != null) {
6791          dst.resource = new ArrayList<ImplementationGuideDefinitionResourceComponent>();
6792          for (ImplementationGuideDefinitionResourceComponent i : resource)
6793            dst.resource.add(i.copy());
6794        };
6795        dst.page = page == null ? null : page.copy();
6796        if (parameter != null) {
6797          dst.parameter = new ArrayList<ImplementationGuideDefinitionParameterComponent>();
6798          for (ImplementationGuideDefinitionParameterComponent i : parameter)
6799            dst.parameter.add(i.copy());
6800        };
6801        if (template != null) {
6802          dst.template = new ArrayList<ImplementationGuideDefinitionTemplateComponent>();
6803          for (ImplementationGuideDefinitionTemplateComponent i : template)
6804            dst.template.add(i.copy());
6805        };
6806      }
6807
6808      @Override
6809      public boolean equalsDeep(Base other_) {
6810        if (!super.equalsDeep(other_))
6811          return false;
6812        if (!(other_ instanceof ImplementationGuideDefinitionComponent))
6813          return false;
6814        ImplementationGuideDefinitionComponent o = (ImplementationGuideDefinitionComponent) other_;
6815        return compareDeep(grouping, o.grouping, true) && compareDeep(resource, o.resource, true) && compareDeep(page, o.page, true)
6816           && compareDeep(parameter, o.parameter, true) && compareDeep(template, o.template, true);
6817      }
6818
6819      @Override
6820      public boolean equalsShallow(Base other_) {
6821        if (!super.equalsShallow(other_))
6822          return false;
6823        if (!(other_ instanceof ImplementationGuideDefinitionComponent))
6824          return false;
6825        ImplementationGuideDefinitionComponent o = (ImplementationGuideDefinitionComponent) other_;
6826        return true;
6827      }
6828
6829      public boolean isEmpty() {
6830        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(grouping, resource, page
6831          , parameter, template);
6832      }
6833
6834  public String fhirType() {
6835    return "ImplementationGuide.definition";
6836
6837  }
6838
6839  }
6840
6841    @Block()
6842    public static class ImplementationGuideDefinitionGroupingComponent extends BackboneElement implements IBaseBackboneElement {
6843        /**
6844         * The human-readable title to display for the package of resources when rendering the implementation guide.
6845         */
6846        @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false)
6847        @Description(shortDefinition="Descriptive name for the package", formalDefinition="The human-readable title to display for the package of resources when rendering the implementation guide." )
6848        protected StringType name;
6849
6850        /**
6851         * Human readable text describing the package.
6852         */
6853        @Child(name = "description", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
6854        @Description(shortDefinition="Human readable text describing the package", formalDefinition="Human readable text describing the package." )
6855        protected StringType description;
6856
6857        private static final long serialVersionUID = -1105523499L;
6858
6859    /**
6860     * Constructor
6861     */
6862      public ImplementationGuideDefinitionGroupingComponent() {
6863        super();
6864      }
6865
6866    /**
6867     * Constructor
6868     */
6869      public ImplementationGuideDefinitionGroupingComponent(StringType name) {
6870        super();
6871        this.name = name;
6872      }
6873
6874        /**
6875         * @return {@link #name} (The human-readable title to display for the package of resources when rendering the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
6876         */
6877        public StringType getNameElement() { 
6878          if (this.name == null)
6879            if (Configuration.errorOnAutoCreate())
6880              throw new Error("Attempt to auto-create ImplementationGuideDefinitionGroupingComponent.name");
6881            else if (Configuration.doAutoCreate())
6882              this.name = new StringType(); // bb
6883          return this.name;
6884        }
6885
6886        public boolean hasNameElement() { 
6887          return this.name != null && !this.name.isEmpty();
6888        }
6889
6890        public boolean hasName() { 
6891          return this.name != null && !this.name.isEmpty();
6892        }
6893
6894        /**
6895         * @param value {@link #name} (The human-readable title to display for the package of resources when rendering the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
6896         */
6897        public ImplementationGuideDefinitionGroupingComponent setNameElement(StringType value) { 
6898          this.name = value;
6899          return this;
6900        }
6901
6902        /**
6903         * @return The human-readable title to display for the package of resources when rendering the implementation guide.
6904         */
6905        public String getName() { 
6906          return this.name == null ? null : this.name.getValue();
6907        }
6908
6909        /**
6910         * @param value The human-readable title to display for the package of resources when rendering the implementation guide.
6911         */
6912        public ImplementationGuideDefinitionGroupingComponent setName(String value) { 
6913            if (this.name == null)
6914              this.name = new StringType();
6915            this.name.setValue(value);
6916          return this;
6917        }
6918
6919        /**
6920         * @return {@link #description} (Human readable text describing the package.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
6921         */
6922        public StringType getDescriptionElement() { 
6923          if (this.description == null)
6924            if (Configuration.errorOnAutoCreate())
6925              throw new Error("Attempt to auto-create ImplementationGuideDefinitionGroupingComponent.description");
6926            else if (Configuration.doAutoCreate())
6927              this.description = new StringType(); // bb
6928          return this.description;
6929        }
6930
6931        public boolean hasDescriptionElement() { 
6932          return this.description != null && !this.description.isEmpty();
6933        }
6934
6935        public boolean hasDescription() { 
6936          return this.description != null && !this.description.isEmpty();
6937        }
6938
6939        /**
6940         * @param value {@link #description} (Human readable text describing the package.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
6941         */
6942        public ImplementationGuideDefinitionGroupingComponent setDescriptionElement(StringType value) { 
6943          this.description = value;
6944          return this;
6945        }
6946
6947        /**
6948         * @return Human readable text describing the package.
6949         */
6950        public String getDescription() { 
6951          return this.description == null ? null : this.description.getValue();
6952        }
6953
6954        /**
6955         * @param value Human readable text describing the package.
6956         */
6957        public ImplementationGuideDefinitionGroupingComponent setDescription(String value) { 
6958          if (Utilities.noString(value))
6959            this.description = null;
6960          else {
6961            if (this.description == null)
6962              this.description = new StringType();
6963            this.description.setValue(value);
6964          }
6965          return this;
6966        }
6967
6968        protected void listChildren(List<Property> children) {
6969          super.listChildren(children);
6970          children.add(new Property("name", "string", "The human-readable title to display for the package of resources when rendering the implementation guide.", 0, 1, name));
6971          children.add(new Property("description", "string", "Human readable text describing the package.", 0, 1, description));
6972        }
6973
6974        @Override
6975        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
6976          switch (_hash) {
6977          case 3373707: /*name*/  return new Property("name", "string", "The human-readable title to display for the package of resources when rendering the implementation guide.", 0, 1, name);
6978          case -1724546052: /*description*/  return new Property("description", "string", "Human readable text describing the package.", 0, 1, description);
6979          default: return super.getNamedProperty(_hash, _name, _checkValid);
6980          }
6981
6982        }
6983
6984      @Override
6985      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
6986        switch (hash) {
6987        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
6988        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
6989        default: return super.getProperty(hash, name, checkValid);
6990        }
6991
6992      }
6993
6994      @Override
6995      public Base setProperty(int hash, String name, Base value) throws FHIRException {
6996        switch (hash) {
6997        case 3373707: // name
6998          this.name = castToString(value); // StringType
6999          return value;
7000        case -1724546052: // description
7001          this.description = castToString(value); // StringType
7002          return value;
7003        default: return super.setProperty(hash, name, value);
7004        }
7005
7006      }
7007
7008      @Override
7009      public Base setProperty(String name, Base value) throws FHIRException {
7010        if (name.equals("name")) {
7011          this.name = castToString(value); // StringType
7012        } else if (name.equals("description")) {
7013          this.description = castToString(value); // StringType
7014        } else
7015          return super.setProperty(name, value);
7016        return value;
7017      }
7018
7019      @Override
7020      public Base makeProperty(int hash, String name) throws FHIRException {
7021        switch (hash) {
7022        case 3373707:  return getNameElement();
7023        case -1724546052:  return getDescriptionElement();
7024        default: return super.makeProperty(hash, name);
7025        }
7026
7027      }
7028
7029      @Override
7030      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
7031        switch (hash) {
7032        case 3373707: /*name*/ return new String[] {"string"};
7033        case -1724546052: /*description*/ return new String[] {"string"};
7034        default: return super.getTypesForProperty(hash, name);
7035        }
7036
7037      }
7038
7039      @Override
7040      public Base addChild(String name) throws FHIRException {
7041        if (name.equals("name")) {
7042          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name");
7043        }
7044        else if (name.equals("description")) {
7045          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description");
7046        }
7047        else
7048          return super.addChild(name);
7049      }
7050
7051      public ImplementationGuideDefinitionGroupingComponent copy() {
7052        ImplementationGuideDefinitionGroupingComponent dst = new ImplementationGuideDefinitionGroupingComponent();
7053        copyValues(dst);
7054        return dst;
7055      }
7056
7057      public void copyValues(ImplementationGuideDefinitionGroupingComponent dst) {
7058        super.copyValues(dst);
7059        dst.name = name == null ? null : name.copy();
7060        dst.description = description == null ? null : description.copy();
7061      }
7062
7063      @Override
7064      public boolean equalsDeep(Base other_) {
7065        if (!super.equalsDeep(other_))
7066          return false;
7067        if (!(other_ instanceof ImplementationGuideDefinitionGroupingComponent))
7068          return false;
7069        ImplementationGuideDefinitionGroupingComponent o = (ImplementationGuideDefinitionGroupingComponent) other_;
7070        return compareDeep(name, o.name, true) && compareDeep(description, o.description, true);
7071      }
7072
7073      @Override
7074      public boolean equalsShallow(Base other_) {
7075        if (!super.equalsShallow(other_))
7076          return false;
7077        if (!(other_ instanceof ImplementationGuideDefinitionGroupingComponent))
7078          return false;
7079        ImplementationGuideDefinitionGroupingComponent o = (ImplementationGuideDefinitionGroupingComponent) other_;
7080        return compareValues(name, o.name, true) && compareValues(description, o.description, true);
7081      }
7082
7083      public boolean isEmpty() {
7084        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, description);
7085      }
7086
7087  public String fhirType() {
7088    return "ImplementationGuide.definition.grouping";
7089
7090  }
7091
7092  }
7093
7094    @Block()
7095    public static class ImplementationGuideDefinitionResourceComponent extends BackboneElement implements IBaseBackboneElement {
7096        /**
7097         * Where this resource is found.
7098         */
7099        @Child(name = "reference", type = {Reference.class}, order=1, min=1, max=1, modifier=false, summary=false)
7100        @Description(shortDefinition="Location of the resource", formalDefinition="Where this resource is found." )
7101        protected Reference reference;
7102
7103        /**
7104         * Indicates the FHIR Version(s) this artifact is intended to apply to. If no versions are specified, the resource is assumed to apply to all the versions stated in ImplementationGuide.fhirVersion.
7105         */
7106        @Child(name = "fhirVersion", type = {CodeType.class}, order=2, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
7107        @Description(shortDefinition="Versions this applies to (if different to IG)", formalDefinition="Indicates the FHIR Version(s) this artifact is intended to apply to. If no versions are specified, the resource is assumed to apply to all the versions stated in ImplementationGuide.fhirVersion." )
7108        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/FHIR-version")
7109        protected List<Enumeration<FHIRVersion>> fhirVersion;
7110
7111        /**
7112         * A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).
7113         */
7114        @Child(name = "name", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false)
7115        @Description(shortDefinition="Human Name for the resource", formalDefinition="A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name)." )
7116        protected StringType name;
7117
7118        /**
7119         * A description of the reason that a resource has been included in the implementation guide.
7120         */
7121        @Child(name = "description", type = {StringType.class}, order=4, min=0, max=1, modifier=false, summary=false)
7122        @Description(shortDefinition="Reason why included in guide", formalDefinition="A description of the reason that a resource has been included in the implementation guide." )
7123        protected StringType description;
7124
7125        /**
7126         * If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.
7127         */
7128        @Child(name = "example", type = {BooleanType.class, CanonicalType.class}, order=5, min=0, max=1, modifier=false, summary=false)
7129        @Description(shortDefinition="Is an example/What is this an example of?", formalDefinition="If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile." )
7130        protected Type example;
7131
7132        /**
7133         * Reference to the id of the grouping this resource appears in.
7134         */
7135        @Child(name = "groupingId", type = {IdType.class}, order=6, min=0, max=1, modifier=false, summary=false)
7136        @Description(shortDefinition="Grouping this is part of", formalDefinition="Reference to the id of the grouping this resource appears in." )
7137        protected IdType groupingId;
7138
7139        private static final long serialVersionUID = 727833977L;
7140
7141    /**
7142     * Constructor
7143     */
7144      public ImplementationGuideDefinitionResourceComponent() {
7145        super();
7146      }
7147
7148    /**
7149     * Constructor
7150     */
7151      public ImplementationGuideDefinitionResourceComponent(Reference reference) {
7152        super();
7153        this.reference = reference;
7154      }
7155
7156        /**
7157         * @return {@link #reference} (Where this resource is found.)
7158         */
7159        public Reference getReference() { 
7160          if (this.reference == null)
7161            if (Configuration.errorOnAutoCreate())
7162              throw new Error("Attempt to auto-create ImplementationGuideDefinitionResourceComponent.reference");
7163            else if (Configuration.doAutoCreate())
7164              this.reference = new Reference(); // cc
7165          return this.reference;
7166        }
7167
7168        public boolean hasReference() { 
7169          return this.reference != null && !this.reference.isEmpty();
7170        }
7171
7172        /**
7173         * @param value {@link #reference} (Where this resource is found.)
7174         */
7175        public ImplementationGuideDefinitionResourceComponent setReference(Reference value) { 
7176          this.reference = value;
7177          return this;
7178        }
7179
7180        /**
7181         * @return {@link #fhirVersion} (Indicates the FHIR Version(s) this artifact is intended to apply to. If no versions are specified, the resource is assumed to apply to all the versions stated in ImplementationGuide.fhirVersion.)
7182         */
7183        public List<Enumeration<FHIRVersion>> getFhirVersion() { 
7184          if (this.fhirVersion == null)
7185            this.fhirVersion = new ArrayList<Enumeration<FHIRVersion>>();
7186          return this.fhirVersion;
7187        }
7188
7189        /**
7190         * @return Returns a reference to <code>this</code> for easy method chaining
7191         */
7192        public ImplementationGuideDefinitionResourceComponent setFhirVersion(List<Enumeration<FHIRVersion>> theFhirVersion) { 
7193          this.fhirVersion = theFhirVersion;
7194          return this;
7195        }
7196
7197        public boolean hasFhirVersion() { 
7198          if (this.fhirVersion == null)
7199            return false;
7200          for (Enumeration<FHIRVersion> item : this.fhirVersion)
7201            if (!item.isEmpty())
7202              return true;
7203          return false;
7204        }
7205
7206        /**
7207         * @return {@link #fhirVersion} (Indicates the FHIR Version(s) this artifact is intended to apply to. If no versions are specified, the resource is assumed to apply to all the versions stated in ImplementationGuide.fhirVersion.)
7208         */
7209        public Enumeration<FHIRVersion> addFhirVersionElement() {//2 
7210          Enumeration<FHIRVersion> t = new Enumeration<FHIRVersion>(new FHIRVersionEnumFactory());
7211          if (this.fhirVersion == null)
7212            this.fhirVersion = new ArrayList<Enumeration<FHIRVersion>>();
7213          this.fhirVersion.add(t);
7214          return t;
7215        }
7216
7217        /**
7218         * @param value {@link #fhirVersion} (Indicates the FHIR Version(s) this artifact is intended to apply to. If no versions are specified, the resource is assumed to apply to all the versions stated in ImplementationGuide.fhirVersion.)
7219         */
7220        public ImplementationGuideDefinitionResourceComponent addFhirVersion(FHIRVersion value) { //1
7221          Enumeration<FHIRVersion> t = new Enumeration<FHIRVersion>(new FHIRVersionEnumFactory());
7222          t.setValue(value);
7223          if (this.fhirVersion == null)
7224            this.fhirVersion = new ArrayList<Enumeration<FHIRVersion>>();
7225          this.fhirVersion.add(t);
7226          return this;
7227        }
7228
7229        /**
7230         * @param value {@link #fhirVersion} (Indicates the FHIR Version(s) this artifact is intended to apply to. If no versions are specified, the resource is assumed to apply to all the versions stated in ImplementationGuide.fhirVersion.)
7231         */
7232        public boolean hasFhirVersion(FHIRVersion value) { 
7233          if (this.fhirVersion == null)
7234            return false;
7235          for (Enumeration<FHIRVersion> v : this.fhirVersion)
7236            if (v.getValue().equals(value)) // code
7237              return true;
7238          return false;
7239        }
7240
7241        /**
7242         * @return {@link #name} (A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
7243         */
7244        public StringType getNameElement() { 
7245          if (this.name == null)
7246            if (Configuration.errorOnAutoCreate())
7247              throw new Error("Attempt to auto-create ImplementationGuideDefinitionResourceComponent.name");
7248            else if (Configuration.doAutoCreate())
7249              this.name = new StringType(); // bb
7250          return this.name;
7251        }
7252
7253        public boolean hasNameElement() { 
7254          return this.name != null && !this.name.isEmpty();
7255        }
7256
7257        public boolean hasName() { 
7258          return this.name != null && !this.name.isEmpty();
7259        }
7260
7261        /**
7262         * @param value {@link #name} (A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
7263         */
7264        public ImplementationGuideDefinitionResourceComponent setNameElement(StringType value) { 
7265          this.name = value;
7266          return this;
7267        }
7268
7269        /**
7270         * @return A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).
7271         */
7272        public String getName() { 
7273          return this.name == null ? null : this.name.getValue();
7274        }
7275
7276        /**
7277         * @param value A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).
7278         */
7279        public ImplementationGuideDefinitionResourceComponent setName(String value) { 
7280          if (Utilities.noString(value))
7281            this.name = null;
7282          else {
7283            if (this.name == null)
7284              this.name = new StringType();
7285            this.name.setValue(value);
7286          }
7287          return this;
7288        }
7289
7290        /**
7291         * @return {@link #description} (A description of the reason that a resource has been included in the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
7292         */
7293        public StringType getDescriptionElement() { 
7294          if (this.description == null)
7295            if (Configuration.errorOnAutoCreate())
7296              throw new Error("Attempt to auto-create ImplementationGuideDefinitionResourceComponent.description");
7297            else if (Configuration.doAutoCreate())
7298              this.description = new StringType(); // bb
7299          return this.description;
7300        }
7301
7302        public boolean hasDescriptionElement() { 
7303          return this.description != null && !this.description.isEmpty();
7304        }
7305
7306        public boolean hasDescription() { 
7307          return this.description != null && !this.description.isEmpty();
7308        }
7309
7310        /**
7311         * @param value {@link #description} (A description of the reason that a resource has been included in the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
7312         */
7313        public ImplementationGuideDefinitionResourceComponent setDescriptionElement(StringType value) { 
7314          this.description = value;
7315          return this;
7316        }
7317
7318        /**
7319         * @return A description of the reason that a resource has been included in the implementation guide.
7320         */
7321        public String getDescription() { 
7322          return this.description == null ? null : this.description.getValue();
7323        }
7324
7325        /**
7326         * @param value A description of the reason that a resource has been included in the implementation guide.
7327         */
7328        public ImplementationGuideDefinitionResourceComponent setDescription(String value) { 
7329          if (Utilities.noString(value))
7330            this.description = null;
7331          else {
7332            if (this.description == null)
7333              this.description = new StringType();
7334            this.description.setValue(value);
7335          }
7336          return this;
7337        }
7338
7339        /**
7340         * @return {@link #example} (If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.)
7341         */
7342        public Type getExample() { 
7343          return this.example;
7344        }
7345
7346        /**
7347         * @return {@link #example} (If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.)
7348         */
7349        public BooleanType getExampleBooleanType() throws FHIRException { 
7350          if (this.example == null)
7351            this.example = new BooleanType();
7352          if (!(this.example instanceof BooleanType))
7353            throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.example.getClass().getName()+" was encountered");
7354          return (BooleanType) this.example;
7355        }
7356
7357        public boolean hasExampleBooleanType() { 
7358          return this != null && this.example instanceof BooleanType;
7359        }
7360
7361        /**
7362         * @return {@link #example} (If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.)
7363         */
7364        public CanonicalType getExampleCanonicalType() throws FHIRException { 
7365          if (this.example == null)
7366            this.example = new CanonicalType();
7367          if (!(this.example instanceof CanonicalType))
7368            throw new FHIRException("Type mismatch: the type CanonicalType was expected, but "+this.example.getClass().getName()+" was encountered");
7369          return (CanonicalType) this.example;
7370        }
7371
7372        public boolean hasExampleCanonicalType() { 
7373          return this != null && this.example instanceof CanonicalType;
7374        }
7375
7376        public boolean hasExample() { 
7377          return this.example != null && !this.example.isEmpty();
7378        }
7379
7380        /**
7381         * @param value {@link #example} (If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.)
7382         */
7383        public ImplementationGuideDefinitionResourceComponent setExample(Type value) { 
7384          if (value != null && !(value instanceof BooleanType || value instanceof CanonicalType))
7385            throw new Error("Not the right type for ImplementationGuide.definition.resource.example[x]: "+value.fhirType());
7386          this.example = value;
7387          return this;
7388        }
7389
7390        /**
7391         * @return {@link #groupingId} (Reference to the id of the grouping this resource appears in.). This is the underlying object with id, value and extensions. The accessor "getGroupingId" gives direct access to the value
7392         */
7393        public IdType getGroupingIdElement() { 
7394          if (this.groupingId == null)
7395            if (Configuration.errorOnAutoCreate())
7396              throw new Error("Attempt to auto-create ImplementationGuideDefinitionResourceComponent.groupingId");
7397            else if (Configuration.doAutoCreate())
7398              this.groupingId = new IdType(); // bb
7399          return this.groupingId;
7400        }
7401
7402        public boolean hasGroupingIdElement() { 
7403          return this.groupingId != null && !this.groupingId.isEmpty();
7404        }
7405
7406        public boolean hasGroupingId() { 
7407          return this.groupingId != null && !this.groupingId.isEmpty();
7408        }
7409
7410        /**
7411         * @param value {@link #groupingId} (Reference to the id of the grouping this resource appears in.). This is the underlying object with id, value and extensions. The accessor "getGroupingId" gives direct access to the value
7412         */
7413        public ImplementationGuideDefinitionResourceComponent setGroupingIdElement(IdType value) { 
7414          this.groupingId = value;
7415          return this;
7416        }
7417
7418        /**
7419         * @return Reference to the id of the grouping this resource appears in.
7420         */
7421        public String getGroupingId() { 
7422          return this.groupingId == null ? null : this.groupingId.getValue();
7423        }
7424
7425        /**
7426         * @param value Reference to the id of the grouping this resource appears in.
7427         */
7428        public ImplementationGuideDefinitionResourceComponent setGroupingId(String value) { 
7429          if (Utilities.noString(value))
7430            this.groupingId = null;
7431          else {
7432            if (this.groupingId == null)
7433              this.groupingId = new IdType();
7434            this.groupingId.setValue(value);
7435          }
7436          return this;
7437        }
7438
7439        protected void listChildren(List<Property> children) {
7440          super.listChildren(children);
7441          children.add(new Property("reference", "Reference(Any)", "Where this resource is found.", 0, 1, reference));
7442          children.add(new Property("fhirVersion", "code", "Indicates the FHIR Version(s) this artifact is intended to apply to. If no versions are specified, the resource is assumed to apply to all the versions stated in ImplementationGuide.fhirVersion.", 0, java.lang.Integer.MAX_VALUE, fhirVersion));
7443          children.add(new Property("name", "string", "A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).", 0, 1, name));
7444          children.add(new Property("description", "string", "A description of the reason that a resource has been included in the implementation guide.", 0, 1, description));
7445          children.add(new Property("example[x]", "boolean|canonical(StructureDefinition)", "If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.", 0, 1, example));
7446          children.add(new Property("groupingId", "id", "Reference to the id of the grouping this resource appears in.", 0, 1, groupingId));
7447        }
7448
7449        @Override
7450        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
7451          switch (_hash) {
7452          case -925155509: /*reference*/  return new Property("reference", "Reference(Any)", "Where this resource is found.", 0, 1, reference);
7453          case 461006061: /*fhirVersion*/  return new Property("fhirVersion", "code", "Indicates the FHIR Version(s) this artifact is intended to apply to. If no versions are specified, the resource is assumed to apply to all the versions stated in ImplementationGuide.fhirVersion.", 0, java.lang.Integer.MAX_VALUE, fhirVersion);
7454          case 3373707: /*name*/  return new Property("name", "string", "A human assigned name for the resource. All resources SHOULD have a name, but the name may be extracted from the resource (e.g. ValueSet.name).", 0, 1, name);
7455          case -1724546052: /*description*/  return new Property("description", "string", "A description of the reason that a resource has been included in the implementation guide.", 0, 1, description);
7456          case -2002328874: /*example[x]*/  return new Property("example[x]", "boolean|canonical(StructureDefinition)", "If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.", 0, 1, example);
7457          case -1322970774: /*example*/  return new Property("example[x]", "boolean|canonical(StructureDefinition)", "If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.", 0, 1, example);
7458          case 159803230: /*exampleBoolean*/  return new Property("example[x]", "boolean|canonical(StructureDefinition)", "If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.", 0, 1, example);
7459          case 2016979626: /*exampleCanonical*/  return new Property("example[x]", "boolean|canonical(StructureDefinition)", "If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.", 0, 1, example);
7460          case 1291547006: /*groupingId*/  return new Property("groupingId", "id", "Reference to the id of the grouping this resource appears in.", 0, 1, groupingId);
7461          default: return super.getNamedProperty(_hash, _name, _checkValid);
7462          }
7463
7464        }
7465
7466      @Override
7467      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
7468        switch (hash) {
7469        case -925155509: /*reference*/ return this.reference == null ? new Base[0] : new Base[] {this.reference}; // Reference
7470        case 461006061: /*fhirVersion*/ return this.fhirVersion == null ? new Base[0] : this.fhirVersion.toArray(new Base[this.fhirVersion.size()]); // Enumeration<FHIRVersion>
7471        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
7472        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // StringType
7473        case -1322970774: /*example*/ return this.example == null ? new Base[0] : new Base[] {this.example}; // Type
7474        case 1291547006: /*groupingId*/ return this.groupingId == null ? new Base[0] : new Base[] {this.groupingId}; // IdType
7475        default: return super.getProperty(hash, name, checkValid);
7476        }
7477
7478      }
7479
7480      @Override
7481      public Base setProperty(int hash, String name, Base value) throws FHIRException {
7482        switch (hash) {
7483        case -925155509: // reference
7484          this.reference = castToReference(value); // Reference
7485          return value;
7486        case 461006061: // fhirVersion
7487          value = new FHIRVersionEnumFactory().fromType(castToCode(value));
7488          this.getFhirVersion().add((Enumeration) value); // Enumeration<FHIRVersion>
7489          return value;
7490        case 3373707: // name
7491          this.name = castToString(value); // StringType
7492          return value;
7493        case -1724546052: // description
7494          this.description = castToString(value); // StringType
7495          return value;
7496        case -1322970774: // example
7497          this.example = castToType(value); // Type
7498          return value;
7499        case 1291547006: // groupingId
7500          this.groupingId = castToId(value); // IdType
7501          return value;
7502        default: return super.setProperty(hash, name, value);
7503        }
7504
7505      }
7506
7507      @Override
7508      public Base setProperty(String name, Base value) throws FHIRException {
7509        if (name.equals("reference")) {
7510          this.reference = castToReference(value); // Reference
7511        } else if (name.equals("fhirVersion")) {
7512          value = new FHIRVersionEnumFactory().fromType(castToCode(value));
7513          this.getFhirVersion().add((Enumeration) value);
7514        } else if (name.equals("name")) {
7515          this.name = castToString(value); // StringType
7516        } else if (name.equals("description")) {
7517          this.description = castToString(value); // StringType
7518        } else if (name.equals("example[x]")) {
7519          this.example = castToType(value); // Type
7520        } else if (name.equals("groupingId")) {
7521          this.groupingId = castToId(value); // IdType
7522        } else
7523          return super.setProperty(name, value);
7524        return value;
7525      }
7526
7527      @Override
7528      public Base makeProperty(int hash, String name) throws FHIRException {
7529        switch (hash) {
7530        case -925155509:  return getReference();
7531        case 461006061:  return addFhirVersionElement();
7532        case 3373707:  return getNameElement();
7533        case -1724546052:  return getDescriptionElement();
7534        case -2002328874:  return getExample();
7535        case -1322970774:  return getExample();
7536        case 1291547006:  return getGroupingIdElement();
7537        default: return super.makeProperty(hash, name);
7538        }
7539
7540      }
7541
7542      @Override
7543      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
7544        switch (hash) {
7545        case -925155509: /*reference*/ return new String[] {"Reference"};
7546        case 461006061: /*fhirVersion*/ return new String[] {"code"};
7547        case 3373707: /*name*/ return new String[] {"string"};
7548        case -1724546052: /*description*/ return new String[] {"string"};
7549        case -1322970774: /*example*/ return new String[] {"boolean", "canonical"};
7550        case 1291547006: /*groupingId*/ return new String[] {"id"};
7551        default: return super.getTypesForProperty(hash, name);
7552        }
7553
7554      }
7555
7556      @Override
7557      public Base addChild(String name) throws FHIRException {
7558        if (name.equals("reference")) {
7559          this.reference = new Reference();
7560          return this.reference;
7561        }
7562        else if (name.equals("fhirVersion")) {
7563          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.fhirVersion");
7564        }
7565        else if (name.equals("name")) {
7566          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name");
7567        }
7568        else if (name.equals("description")) {
7569          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description");
7570        }
7571        else if (name.equals("exampleBoolean")) {
7572          this.example = new BooleanType();
7573          return this.example;
7574        }
7575        else if (name.equals("exampleCanonical")) {
7576          this.example = new CanonicalType();
7577          return this.example;
7578        }
7579        else if (name.equals("groupingId")) {
7580          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.groupingId");
7581        }
7582        else
7583          return super.addChild(name);
7584      }
7585
7586      public ImplementationGuideDefinitionResourceComponent copy() {
7587        ImplementationGuideDefinitionResourceComponent dst = new ImplementationGuideDefinitionResourceComponent();
7588        copyValues(dst);
7589        return dst;
7590      }
7591
7592      public void copyValues(ImplementationGuideDefinitionResourceComponent dst) {
7593        super.copyValues(dst);
7594        dst.reference = reference == null ? null : reference.copy();
7595        if (fhirVersion != null) {
7596          dst.fhirVersion = new ArrayList<Enumeration<FHIRVersion>>();
7597          for (Enumeration<FHIRVersion> i : fhirVersion)
7598            dst.fhirVersion.add(i.copy());
7599        };
7600        dst.name = name == null ? null : name.copy();
7601        dst.description = description == null ? null : description.copy();
7602        dst.example = example == null ? null : example.copy();
7603        dst.groupingId = groupingId == null ? null : groupingId.copy();
7604      }
7605
7606      @Override
7607      public boolean equalsDeep(Base other_) {
7608        if (!super.equalsDeep(other_))
7609          return false;
7610        if (!(other_ instanceof ImplementationGuideDefinitionResourceComponent))
7611          return false;
7612        ImplementationGuideDefinitionResourceComponent o = (ImplementationGuideDefinitionResourceComponent) other_;
7613        return compareDeep(reference, o.reference, true) && compareDeep(fhirVersion, o.fhirVersion, true)
7614           && compareDeep(name, o.name, true) && compareDeep(description, o.description, true) && compareDeep(example, o.example, true)
7615           && compareDeep(groupingId, o.groupingId, true);
7616      }
7617
7618      @Override
7619      public boolean equalsShallow(Base other_) {
7620        if (!super.equalsShallow(other_))
7621          return false;
7622        if (!(other_ instanceof ImplementationGuideDefinitionResourceComponent))
7623          return false;
7624        ImplementationGuideDefinitionResourceComponent o = (ImplementationGuideDefinitionResourceComponent) other_;
7625        return compareValues(fhirVersion, o.fhirVersion, true) && compareValues(name, o.name, true) && compareValues(description, o.description, true)
7626           && compareValues(groupingId, o.groupingId, true);
7627      }
7628
7629      public boolean isEmpty() {
7630        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(reference, fhirVersion, name
7631          , description, example, groupingId);
7632      }
7633
7634  public String fhirType() {
7635    return "ImplementationGuide.definition.resource";
7636
7637  }
7638
7639// added from java-adornments.txt:
7640
7641
7642
7643// end addition
7644  }
7645
7646    @Block()
7647    public static class ImplementationGuideDefinitionPageComponent extends BackboneElement implements IBaseBackboneElement {
7648        /**
7649         * The source address for the page.
7650         */
7651        @Child(name = "name", type = {UrlType.class, Binary.class}, order=1, min=1, max=1, modifier=false, summary=false)
7652        @Description(shortDefinition="Where to find that page", formalDefinition="The source address for the page." )
7653        protected Type name;
7654
7655        /**
7656         * A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc.
7657         */
7658        @Child(name = "title", type = {StringType.class}, order=2, min=1, max=1, modifier=false, summary=false)
7659        @Description(shortDefinition="Short title shown for navigational assistance", formalDefinition="A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc." )
7660        protected StringType title;
7661
7662        /**
7663         * A code that indicates how the page is generated.
7664         */
7665        @Child(name = "generation", type = {CodeType.class}, order=3, min=1, max=1, modifier=false, summary=false)
7666        @Description(shortDefinition="html | markdown | xml | generated", formalDefinition="A code that indicates how the page is generated." )
7667        @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/guide-page-generation")
7668        protected Enumeration<GuidePageGeneration> generation;
7669
7670        /**
7671         * Nested Pages/Sections under this page.
7672         */
7673        @Child(name = "page", type = {ImplementationGuideDefinitionPageComponent.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
7674        @Description(shortDefinition="Nested Pages / Sections", formalDefinition="Nested Pages/Sections under this page." )
7675        protected List<ImplementationGuideDefinitionPageComponent> page;
7676
7677        private static final long serialVersionUID = -365655658L;
7678
7679    /**
7680     * Constructor
7681     */
7682      public ImplementationGuideDefinitionPageComponent() {
7683        super();
7684      }
7685
7686    /**
7687     * Constructor
7688     */
7689      public ImplementationGuideDefinitionPageComponent(Type name, StringType title, Enumeration<GuidePageGeneration> generation) {
7690        super();
7691        this.name = name;
7692        this.title = title;
7693        this.generation = generation;
7694      }
7695
7696        /**
7697         * @return {@link #name} (The source address for the page.)
7698         */
7699        public Type getName() { 
7700          return this.name;
7701        }
7702
7703        /**
7704         * @return {@link #name} (The source address for the page.)
7705         */
7706        public UrlType getNameUrlType() throws FHIRException { 
7707          if (this.name == null)
7708            this.name = new UrlType();
7709          if (!(this.name instanceof UrlType))
7710            throw new FHIRException("Type mismatch: the type UrlType was expected, but "+this.name.getClass().getName()+" was encountered");
7711          return (UrlType) this.name;
7712        }
7713
7714        public boolean hasNameUrlType() { 
7715          return this != null && this.name instanceof UrlType;
7716        }
7717
7718        /**
7719         * @return {@link #name} (The source address for the page.)
7720         */
7721        public Reference getNameReference() throws FHIRException { 
7722          if (this.name == null)
7723            this.name = new Reference();
7724          if (!(this.name instanceof Reference))
7725            throw new FHIRException("Type mismatch: the type Reference was expected, but "+this.name.getClass().getName()+" was encountered");
7726          return (Reference) this.name;
7727        }
7728
7729        public boolean hasNameReference() { 
7730          return this != null && this.name instanceof Reference;
7731        }
7732
7733        public boolean hasName() { 
7734          return this.name != null && !this.name.isEmpty();
7735        }
7736
7737        /**
7738         * @param value {@link #name} (The source address for the page.)
7739         */
7740        public ImplementationGuideDefinitionPageComponent setName(Type value) { 
7741          if (value != null && !(value instanceof UrlType || value instanceof Reference))
7742            throw new Error("Not the right type for ImplementationGuide.definition.page.name[x]: "+value.fhirType());
7743          this.name = value;
7744          return this;
7745        }
7746
7747        /**
7748         * @return {@link #title} (A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
7749         */
7750        public StringType getTitleElement() { 
7751          if (this.title == null)
7752            if (Configuration.errorOnAutoCreate())
7753              throw new Error("Attempt to auto-create ImplementationGuideDefinitionPageComponent.title");
7754            else if (Configuration.doAutoCreate())
7755              this.title = new StringType(); // bb
7756          return this.title;
7757        }
7758
7759        public boolean hasTitleElement() { 
7760          return this.title != null && !this.title.isEmpty();
7761        }
7762
7763        public boolean hasTitle() { 
7764          return this.title != null && !this.title.isEmpty();
7765        }
7766
7767        /**
7768         * @param value {@link #title} (A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
7769         */
7770        public ImplementationGuideDefinitionPageComponent setTitleElement(StringType value) { 
7771          this.title = value;
7772          return this;
7773        }
7774
7775        /**
7776         * @return A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc.
7777         */
7778        public String getTitle() { 
7779          return this.title == null ? null : this.title.getValue();
7780        }
7781
7782        /**
7783         * @param value A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc.
7784         */
7785        public ImplementationGuideDefinitionPageComponent setTitle(String value) { 
7786            if (this.title == null)
7787              this.title = new StringType();
7788            this.title.setValue(value);
7789          return this;
7790        }
7791
7792        /**
7793         * @return {@link #generation} (A code that indicates how the page is generated.). This is the underlying object with id, value and extensions. The accessor "getGeneration" gives direct access to the value
7794         */
7795        public Enumeration<GuidePageGeneration> getGenerationElement() { 
7796          if (this.generation == null)
7797            if (Configuration.errorOnAutoCreate())
7798              throw new Error("Attempt to auto-create ImplementationGuideDefinitionPageComponent.generation");
7799            else if (Configuration.doAutoCreate())
7800              this.generation = new Enumeration<GuidePageGeneration>(new GuidePageGenerationEnumFactory()); // bb
7801          return this.generation;
7802        }
7803
7804        public boolean hasGenerationElement() { 
7805          return this.generation != null && !this.generation.isEmpty();
7806        }
7807
7808        public boolean hasGeneration() { 
7809          return this.generation != null && !this.generation.isEmpty();
7810        }
7811
7812        /**
7813         * @param value {@link #generation} (A code that indicates how the page is generated.). This is the underlying object with id, value and extensions. The accessor "getGeneration" gives direct access to the value
7814         */
7815        public ImplementationGuideDefinitionPageComponent setGenerationElement(Enumeration<GuidePageGeneration> value) { 
7816          this.generation = value;
7817          return this;
7818        }
7819
7820        /**
7821         * @return A code that indicates how the page is generated.
7822         */
7823        public GuidePageGeneration getGeneration() { 
7824          return this.generation == null ? null : this.generation.getValue();
7825        }
7826
7827        /**
7828         * @param value A code that indicates how the page is generated.
7829         */
7830        public ImplementationGuideDefinitionPageComponent setGeneration(GuidePageGeneration value) { 
7831            if (this.generation == null)
7832              this.generation = new Enumeration<GuidePageGeneration>(new GuidePageGenerationEnumFactory());
7833            this.generation.setValue(value);
7834          return this;
7835        }
7836
7837        /**
7838         * @return {@link #page} (Nested Pages/Sections under this page.)
7839         */
7840        public List<ImplementationGuideDefinitionPageComponent> getPage() { 
7841          if (this.page == null)
7842            this.page = new ArrayList<ImplementationGuideDefinitionPageComponent>();
7843          return this.page;
7844        }
7845
7846        /**
7847         * @return Returns a reference to <code>this</code> for easy method chaining
7848         */
7849        public ImplementationGuideDefinitionPageComponent setPage(List<ImplementationGuideDefinitionPageComponent> thePage) { 
7850          this.page = thePage;
7851          return this;
7852        }
7853
7854        public boolean hasPage() { 
7855          if (this.page == null)
7856            return false;
7857          for (ImplementationGuideDefinitionPageComponent item : this.page)
7858            if (!item.isEmpty())
7859              return true;
7860          return false;
7861        }
7862
7863        public ImplementationGuideDefinitionPageComponent addPage() { //3
7864          ImplementationGuideDefinitionPageComponent t = new ImplementationGuideDefinitionPageComponent();
7865          if (this.page == null)
7866            this.page = new ArrayList<ImplementationGuideDefinitionPageComponent>();
7867          this.page.add(t);
7868          return t;
7869        }
7870
7871        public ImplementationGuideDefinitionPageComponent addPage(ImplementationGuideDefinitionPageComponent t) { //3
7872          if (t == null)
7873            return this;
7874          if (this.page == null)
7875            this.page = new ArrayList<ImplementationGuideDefinitionPageComponent>();
7876          this.page.add(t);
7877          return this;
7878        }
7879
7880        /**
7881         * @return The first repetition of repeating field {@link #page}, creating it if it does not already exist
7882         */
7883        public ImplementationGuideDefinitionPageComponent getPageFirstRep() { 
7884          if (getPage().isEmpty()) {
7885            addPage();
7886          }
7887          return getPage().get(0);
7888        }
7889
7890        protected void listChildren(List<Property> children) {
7891          super.listChildren(children);
7892          children.add(new Property("name[x]", "url|Reference(Binary)", "The source address for the page.", 0, 1, name));
7893          children.add(new Property("title", "string", "A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc.", 0, 1, title));
7894          children.add(new Property("generation", "code", "A code that indicates how the page is generated.", 0, 1, generation));
7895          children.add(new Property("page", "@ImplementationGuide.definition.page", "Nested Pages/Sections under this page.", 0, java.lang.Integer.MAX_VALUE, page));
7896        }
7897
7898        @Override
7899        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
7900          switch (_hash) {
7901          case 1721948693: /*name[x]*/  return new Property("name[x]", "url|Reference(Binary)", "The source address for the page.", 0, 1, name);
7902          case 3373707: /*name*/  return new Property("name[x]", "url|Reference(Binary)", "The source address for the page.", 0, 1, name);
7903          case 1721942756: /*nameUrl*/  return new Property("name[x]", "url|Reference(Binary)", "The source address for the page.", 0, 1, name);
7904          case 1833144576: /*nameReference*/  return new Property("name[x]", "url|Reference(Binary)", "The source address for the page.", 0, 1, name);
7905          case 110371416: /*title*/  return new Property("title", "string", "A short title used to represent this page in navigational structures such as table of contents, bread crumbs, etc.", 0, 1, title);
7906          case 305703192: /*generation*/  return new Property("generation", "code", "A code that indicates how the page is generated.", 0, 1, generation);
7907          case 3433103: /*page*/  return new Property("page", "@ImplementationGuide.definition.page", "Nested Pages/Sections under this page.", 0, java.lang.Integer.MAX_VALUE, page);
7908          default: return super.getNamedProperty(_hash, _name, _checkValid);
7909          }
7910
7911        }
7912
7913      @Override
7914      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
7915        switch (hash) {
7916        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // Type
7917        case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
7918        case 305703192: /*generation*/ return this.generation == null ? new Base[0] : new Base[] {this.generation}; // Enumeration<GuidePageGeneration>
7919        case 3433103: /*page*/ return this.page == null ? new Base[0] : this.page.toArray(new Base[this.page.size()]); // ImplementationGuideDefinitionPageComponent
7920        default: return super.getProperty(hash, name, checkValid);
7921        }
7922
7923      }
7924
7925      @Override
7926      public Base setProperty(int hash, String name, Base value) throws FHIRException {
7927        switch (hash) {
7928        case 3373707: // name
7929          this.name = castToType(value); // Type
7930          return value;
7931        case 110371416: // title
7932          this.title = castToString(value); // StringType
7933          return value;
7934        case 305703192: // generation
7935          value = new GuidePageGenerationEnumFactory().fromType(castToCode(value));
7936          this.generation = (Enumeration) value; // Enumeration<GuidePageGeneration>
7937          return value;
7938        case 3433103: // page
7939          this.getPage().add((ImplementationGuideDefinitionPageComponent) value); // ImplementationGuideDefinitionPageComponent
7940          return value;
7941        default: return super.setProperty(hash, name, value);
7942        }
7943
7944      }
7945
7946      @Override
7947      public Base setProperty(String name, Base value) throws FHIRException {
7948        if (name.equals("name[x]")) {
7949          this.name = castToType(value); // Type
7950        } else if (name.equals("title")) {
7951          this.title = castToString(value); // StringType
7952        } else if (name.equals("generation")) {
7953          value = new GuidePageGenerationEnumFactory().fromType(castToCode(value));
7954          this.generation = (Enumeration) value; // Enumeration<GuidePageGeneration>
7955        } else if (name.equals("page")) {
7956          this.getPage().add((ImplementationGuideDefinitionPageComponent) value);
7957        } else
7958          return super.setProperty(name, value);
7959        return value;
7960      }
7961
7962      @Override
7963      public Base makeProperty(int hash, String name) throws FHIRException {
7964        switch (hash) {
7965        case 1721948693:  return getName();
7966        case 3373707:  return getName();
7967        case 110371416:  return getTitleElement();
7968        case 305703192:  return getGenerationElement();
7969        case 3433103:  return addPage(); 
7970        default: return super.makeProperty(hash, name);
7971        }
7972
7973      }
7974
7975      @Override
7976      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
7977        switch (hash) {
7978        case 3373707: /*name*/ return new String[] {"url", "Reference"};
7979        case 110371416: /*title*/ return new String[] {"string"};
7980        case 305703192: /*generation*/ return new String[] {"code"};
7981        case 3433103: /*page*/ return new String[] {"@ImplementationGuide.definition.page"};
7982        default: return super.getTypesForProperty(hash, name);
7983        }
7984
7985      }
7986
7987      @Override
7988      public Base addChild(String name) throws FHIRException {
7989        if (name.equals("nameUrl")) {
7990          this.name = new UrlType();
7991          return this.name;
7992        }
7993        else if (name.equals("nameReference")) {
7994          this.name = new Reference();
7995          return this.name;
7996        }
7997        else if (name.equals("title")) {
7998          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.title");
7999        }
8000        else if (name.equals("generation")) {
8001          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.generation");
8002        }
8003        else if (name.equals("page")) {
8004          return addPage();
8005        }
8006        else
8007          return super.addChild(name);
8008      }
8009
8010      public ImplementationGuideDefinitionPageComponent copy() {
8011        ImplementationGuideDefinitionPageComponent dst = new ImplementationGuideDefinitionPageComponent();
8012        copyValues(dst);
8013        return dst;
8014      }
8015
8016      public void copyValues(ImplementationGuideDefinitionPageComponent dst) {
8017        super.copyValues(dst);
8018        dst.name = name == null ? null : name.copy();
8019        dst.title = title == null ? null : title.copy();
8020        dst.generation = generation == null ? null : generation.copy();
8021        if (page != null) {
8022          dst.page = new ArrayList<ImplementationGuideDefinitionPageComponent>();
8023          for (ImplementationGuideDefinitionPageComponent i : page)
8024            dst.page.add(i.copy());
8025        };
8026      }
8027
8028      @Override
8029      public boolean equalsDeep(Base other_) {
8030        if (!super.equalsDeep(other_))
8031          return false;
8032        if (!(other_ instanceof ImplementationGuideDefinitionPageComponent))
8033          return false;
8034        ImplementationGuideDefinitionPageComponent o = (ImplementationGuideDefinitionPageComponent) other_;
8035        return compareDeep(name, o.name, true) && compareDeep(title, o.title, true) && compareDeep(generation, o.generation, true)
8036           && compareDeep(page, o.page, true);
8037      }
8038
8039      @Override
8040      public boolean equalsShallow(Base other_) {
8041        if (!super.equalsShallow(other_))
8042          return false;
8043        if (!(other_ instanceof ImplementationGuideDefinitionPageComponent))
8044          return false;
8045        ImplementationGuideDefinitionPageComponent o = (ImplementationGuideDefinitionPageComponent) other_;
8046        return compareValues(title, o.title, true) && compareValues(generation, o.generation, true);
8047      }
8048
8049      public boolean isEmpty() {
8050        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, title, generation
8051          , page);
8052      }
8053
8054  public String fhirType() {
8055    return "ImplementationGuide.definition.page";
8056
8057  }
8058
8059  }
8060
8061    @Block()
8062    public static class ImplementationGuideDefinitionParameterComponent extends BackboneElement implements IBaseBackboneElement {
8063        /**
8064         * apply | path-resource | path-pages | path-tx-cache | expansion-parameter | rule-broken-links | generate-xml | generate-json | generate-turtle | html-template.
8065         */
8066        @Child(name = "code", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false)
8067        @Description(shortDefinition="apply | path-resource | path-pages | path-tx-cache | expansion-parameter | rule-broken-links | generate-xml | generate-json | generate-turtle | html-template", formalDefinition="apply | path-resource | path-pages | path-tx-cache | expansion-parameter | rule-broken-links | generate-xml | generate-json | generate-turtle | html-template." )
8068        protected StringType code;
8069
8070        /**
8071         * Value for named type.
8072         */
8073        @Child(name = "value", type = {StringType.class}, order=2, min=1, max=1, modifier=false, summary=false)
8074        @Description(shortDefinition="Value for named type", formalDefinition="Value for named type." )
8075        protected StringType value;
8076
8077        private static final long serialVersionUID = -26486942L;
8078
8079    /**
8080     * Constructor
8081     */
8082      public ImplementationGuideDefinitionParameterComponent() {
8083        super();
8084      }
8085
8086    /**
8087     * Constructor
8088     */
8089      public ImplementationGuideDefinitionParameterComponent(StringType code, StringType value) {
8090        super();
8091        this.code = code;
8092        this.value = value;
8093      }
8094
8095        /**
8096         * @return {@link #code} (apply | path-resource | path-pages | path-tx-cache | expansion-parameter | rule-broken-links | generate-xml | generate-json | generate-turtle | html-template.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
8097         */
8098        public StringType getCodeElement() { 
8099          if (this.code == null)
8100            if (Configuration.errorOnAutoCreate())
8101              throw new Error("Attempt to auto-create ImplementationGuideDefinitionParameterComponent.code");
8102            else if (Configuration.doAutoCreate())
8103              this.code = new StringType(); // bb
8104          return this.code;
8105        }
8106
8107        public boolean hasCodeElement() { 
8108          return this.code != null && !this.code.isEmpty();
8109        }
8110
8111        public boolean hasCode() { 
8112          return this.code != null && !this.code.isEmpty();
8113        }
8114
8115        /**
8116         * @param value {@link #code} (apply | path-resource | path-pages | path-tx-cache | expansion-parameter | rule-broken-links | generate-xml | generate-json | generate-turtle | html-template.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
8117         */
8118        public ImplementationGuideDefinitionParameterComponent setCodeElement(StringType value) { 
8119          this.code = value;
8120          return this;
8121        }
8122
8123        /**
8124         * @return apply | path-resource | path-pages | path-tx-cache | expansion-parameter | rule-broken-links | generate-xml | generate-json | generate-turtle | html-template.
8125         */
8126        public String getCode() { 
8127          return this.code == null ? null : this.code.getValue();
8128        }
8129
8130        /**
8131         * @param value apply | path-resource | path-pages | path-tx-cache | expansion-parameter | rule-broken-links | generate-xml | generate-json | generate-turtle | html-template.
8132         */
8133        public ImplementationGuideDefinitionParameterComponent setCode(String value) { 
8134            if (this.code == null)
8135              this.code = new StringType();
8136            this.code.setValue(value);
8137          return this;
8138        }
8139
8140        /**
8141         * @return {@link #value} (Value for named type.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
8142         */
8143        public StringType getValueElement() { 
8144          if (this.value == null)
8145            if (Configuration.errorOnAutoCreate())
8146              throw new Error("Attempt to auto-create ImplementationGuideDefinitionParameterComponent.value");
8147            else if (Configuration.doAutoCreate())
8148              this.value = new StringType(); // bb
8149          return this.value;
8150        }
8151
8152        public boolean hasValueElement() { 
8153          return this.value != null && !this.value.isEmpty();
8154        }
8155
8156        public boolean hasValue() { 
8157          return this.value != null && !this.value.isEmpty();
8158        }
8159
8160        /**
8161         * @param value {@link #value} (Value for named type.). This is the underlying object with id, value and extensions. The accessor "getValue" gives direct access to the value
8162         */
8163        public ImplementationGuideDefinitionParameterComponent setValueElement(StringType value) { 
8164          this.value = value;
8165          return this;
8166        }
8167
8168        /**
8169         * @return Value for named type.
8170         */
8171        public String getValue() { 
8172          return this.value == null ? null : this.value.getValue();
8173        }
8174
8175        /**
8176         * @param value Value for named type.
8177         */
8178        public ImplementationGuideDefinitionParameterComponent setValue(String value) { 
8179            if (this.value == null)
8180              this.value = new StringType();
8181            this.value.setValue(value);
8182          return this;
8183        }
8184
8185        protected void listChildren(List<Property> children) {
8186          super.listChildren(children);
8187          children.add(new Property("code", "string", "apply | path-resource | path-pages | path-tx-cache | expansion-parameter | rule-broken-links | generate-xml | generate-json | generate-turtle | html-template.", 0, 1, code));
8188          children.add(new Property("value", "string", "Value for named type.", 0, 1, value));
8189        }
8190
8191        @Override
8192        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
8193          switch (_hash) {
8194          case 3059181: /*code*/  return new Property("code", "string", "apply | path-resource | path-pages | path-tx-cache | expansion-parameter | rule-broken-links | generate-xml | generate-json | generate-turtle | html-template.", 0, 1, code);
8195          case 111972721: /*value*/  return new Property("value", "string", "Value for named type.", 0, 1, value);
8196          default: return super.getNamedProperty(_hash, _name, _checkValid);
8197          }
8198
8199        }
8200
8201      @Override
8202      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
8203        switch (hash) {
8204        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // StringType
8205        case 111972721: /*value*/ return this.value == null ? new Base[0] : new Base[] {this.value}; // StringType
8206        default: return super.getProperty(hash, name, checkValid);
8207        }
8208
8209      }
8210
8211      @Override
8212      public Base setProperty(int hash, String name, Base value) throws FHIRException {
8213        switch (hash) {
8214        case 3059181: // code
8215          this.code = castToString(value); // StringType
8216          return value;
8217        case 111972721: // value
8218          this.value = castToString(value); // StringType
8219          return value;
8220        default: return super.setProperty(hash, name, value);
8221        }
8222
8223      }
8224
8225      @Override
8226      public Base setProperty(String name, Base value) throws FHIRException {
8227        if (name.equals("code")) {
8228          this.code = castToString(value); // StringType
8229        } else if (name.equals("value")) {
8230          this.value = castToString(value); // StringType
8231        } else
8232          return super.setProperty(name, value);
8233        return value;
8234      }
8235
8236      @Override
8237      public Base makeProperty(int hash, String name) throws FHIRException {
8238        switch (hash) {
8239        case 3059181:  return getCodeElement();
8240        case 111972721:  return getValueElement();
8241        default: return super.makeProperty(hash, name);
8242        }
8243
8244      }
8245
8246      @Override
8247      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
8248        switch (hash) {
8249        case 3059181: /*code*/ return new String[] {"string"};
8250        case 111972721: /*value*/ return new String[] {"string"};
8251        default: return super.getTypesForProperty(hash, name);
8252        }
8253
8254      }
8255
8256      @Override
8257      public Base addChild(String name) throws FHIRException {
8258        if (name.equals("code")) {
8259          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.code");
8260        }
8261        else if (name.equals("value")) {
8262          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.value");
8263        }
8264        else
8265          return super.addChild(name);
8266      }
8267
8268      public ImplementationGuideDefinitionParameterComponent copy() {
8269        ImplementationGuideDefinitionParameterComponent dst = new ImplementationGuideDefinitionParameterComponent();
8270        copyValues(dst);
8271        return dst;
8272      }
8273
8274      public void copyValues(ImplementationGuideDefinitionParameterComponent dst) {
8275        super.copyValues(dst);
8276        dst.code = code == null ? null : code.copy();
8277        dst.value = value == null ? null : value.copy();
8278      }
8279
8280      @Override
8281      public boolean equalsDeep(Base other_) {
8282        if (!super.equalsDeep(other_))
8283          return false;
8284        if (!(other_ instanceof ImplementationGuideDefinitionParameterComponent))
8285          return false;
8286        ImplementationGuideDefinitionParameterComponent o = (ImplementationGuideDefinitionParameterComponent) other_;
8287        return compareDeep(code, o.code, true) && compareDeep(value, o.value, true);
8288      }
8289
8290      @Override
8291      public boolean equalsShallow(Base other_) {
8292        if (!super.equalsShallow(other_))
8293          return false;
8294        if (!(other_ instanceof ImplementationGuideDefinitionParameterComponent))
8295          return false;
8296        ImplementationGuideDefinitionParameterComponent o = (ImplementationGuideDefinitionParameterComponent) other_;
8297        return compareValues(code, o.code, true) && compareValues(value, o.value, true);
8298      }
8299
8300      public boolean isEmpty() {
8301        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, value);
8302      }
8303
8304  public String fhirType() {
8305    return "ImplementationGuide.definition.parameter";
8306
8307  }
8308
8309  }
8310
8311    @Block()
8312    public static class ImplementationGuideDefinitionTemplateComponent extends BackboneElement implements IBaseBackboneElement {
8313        /**
8314         * Type of template specified.
8315         */
8316        @Child(name = "code", type = {CodeType.class}, order=1, min=1, max=1, modifier=false, summary=false)
8317        @Description(shortDefinition="Type of template specified", formalDefinition="Type of template specified." )
8318        protected CodeType code;
8319
8320        /**
8321         * The source location for the template.
8322         */
8323        @Child(name = "source", type = {StringType.class}, order=2, min=1, max=1, modifier=false, summary=false)
8324        @Description(shortDefinition="The source location for the template", formalDefinition="The source location for the template." )
8325        protected StringType source;
8326
8327        /**
8328         * The scope in which the template applies.
8329         */
8330        @Child(name = "scope", type = {StringType.class}, order=3, min=0, max=1, modifier=false, summary=false)
8331        @Description(shortDefinition="The scope in which the template applies", formalDefinition="The scope in which the template applies." )
8332        protected StringType scope;
8333
8334        private static final long serialVersionUID = 923832457L;
8335
8336    /**
8337     * Constructor
8338     */
8339      public ImplementationGuideDefinitionTemplateComponent() {
8340        super();
8341      }
8342
8343    /**
8344     * Constructor
8345     */
8346      public ImplementationGuideDefinitionTemplateComponent(CodeType code, StringType source) {
8347        super();
8348        this.code = code;
8349        this.source = source;
8350      }
8351
8352        /**
8353         * @return {@link #code} (Type of template specified.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
8354         */
8355        public CodeType getCodeElement() { 
8356          if (this.code == null)
8357            if (Configuration.errorOnAutoCreate())
8358              throw new Error("Attempt to auto-create ImplementationGuideDefinitionTemplateComponent.code");
8359            else if (Configuration.doAutoCreate())
8360              this.code = new CodeType(); // bb
8361          return this.code;
8362        }
8363
8364        public boolean hasCodeElement() { 
8365          return this.code != null && !this.code.isEmpty();
8366        }
8367
8368        public boolean hasCode() { 
8369          return this.code != null && !this.code.isEmpty();
8370        }
8371
8372        /**
8373         * @param value {@link #code} (Type of template specified.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value
8374         */
8375        public ImplementationGuideDefinitionTemplateComponent setCodeElement(CodeType value) { 
8376          this.code = value;
8377          return this;
8378        }
8379
8380        /**
8381         * @return Type of template specified.
8382         */
8383        public String getCode() { 
8384          return this.code == null ? null : this.code.getValue();
8385        }
8386
8387        /**
8388         * @param value Type of template specified.
8389         */
8390        public ImplementationGuideDefinitionTemplateComponent setCode(String value) { 
8391            if (this.code == null)
8392              this.code = new CodeType();
8393            this.code.setValue(value);
8394          return this;
8395        }
8396
8397        /**
8398         * @return {@link #source} (The source location for the template.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value
8399         */
8400        public StringType getSourceElement() { 
8401          if (this.source == null)
8402            if (Configuration.errorOnAutoCreate())
8403              throw new Error("Attempt to auto-create ImplementationGuideDefinitionTemplateComponent.source");
8404            else if (Configuration.doAutoCreate())
8405              this.source = new StringType(); // bb
8406          return this.source;
8407        }
8408
8409        public boolean hasSourceElement() { 
8410          return this.source != null && !this.source.isEmpty();
8411        }
8412
8413        public boolean hasSource() { 
8414          return this.source != null && !this.source.isEmpty();
8415        }
8416
8417        /**
8418         * @param value {@link #source} (The source location for the template.). This is the underlying object with id, value and extensions. The accessor "getSource" gives direct access to the value
8419         */
8420        public ImplementationGuideDefinitionTemplateComponent setSourceElement(StringType value) { 
8421          this.source = value;
8422          return this;
8423        }
8424
8425        /**
8426         * @return The source location for the template.
8427         */
8428        public String getSource() { 
8429          return this.source == null ? null : this.source.getValue();
8430        }
8431
8432        /**
8433         * @param value The source location for the template.
8434         */
8435        public ImplementationGuideDefinitionTemplateComponent setSource(String value) { 
8436            if (this.source == null)
8437              this.source = new StringType();
8438            this.source.setValue(value);
8439          return this;
8440        }
8441
8442        /**
8443         * @return {@link #scope} (The scope in which the template applies.). This is the underlying object with id, value and extensions. The accessor "getScope" gives direct access to the value
8444         */
8445        public StringType getScopeElement() { 
8446          if (this.scope == null)
8447            if (Configuration.errorOnAutoCreate())
8448              throw new Error("Attempt to auto-create ImplementationGuideDefinitionTemplateComponent.scope");
8449            else if (Configuration.doAutoCreate())
8450              this.scope = new StringType(); // bb
8451          return this.scope;
8452        }
8453
8454        public boolean hasScopeElement() { 
8455          return this.scope != null && !this.scope.isEmpty();
8456        }
8457
8458        public boolean hasScope() { 
8459          return this.scope != null && !this.scope.isEmpty();
8460        }
8461
8462        /**
8463         * @param value {@link #scope} (The scope in which the template applies.). This is the underlying object with id, value and extensions. The accessor "getScope" gives direct access to the value
8464         */
8465        public ImplementationGuideDefinitionTemplateComponent setScopeElement(StringType value) { 
8466          this.scope = value;
8467          return this;
8468        }
8469
8470        /**
8471         * @return The scope in which the template applies.
8472         */
8473        public String getScope() { 
8474          return this.scope == null ? null : this.scope.getValue();
8475        }
8476
8477        /**
8478         * @param value The scope in which the template applies.
8479         */
8480        public ImplementationGuideDefinitionTemplateComponent setScope(String value) { 
8481          if (Utilities.noString(value))
8482            this.scope = null;
8483          else {
8484            if (this.scope == null)
8485              this.scope = new StringType();
8486            this.scope.setValue(value);
8487          }
8488          return this;
8489        }
8490
8491        protected void listChildren(List<Property> children) {
8492          super.listChildren(children);
8493          children.add(new Property("code", "code", "Type of template specified.", 0, 1, code));
8494          children.add(new Property("source", "string", "The source location for the template.", 0, 1, source));
8495          children.add(new Property("scope", "string", "The scope in which the template applies.", 0, 1, scope));
8496        }
8497
8498        @Override
8499        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
8500          switch (_hash) {
8501          case 3059181: /*code*/  return new Property("code", "code", "Type of template specified.", 0, 1, code);
8502          case -896505829: /*source*/  return new Property("source", "string", "The source location for the template.", 0, 1, source);
8503          case 109264468: /*scope*/  return new Property("scope", "string", "The scope in which the template applies.", 0, 1, scope);
8504          default: return super.getNamedProperty(_hash, _name, _checkValid);
8505          }
8506
8507        }
8508
8509      @Override
8510      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
8511        switch (hash) {
8512        case 3059181: /*code*/ return this.code == null ? new Base[0] : new Base[] {this.code}; // CodeType
8513        case -896505829: /*source*/ return this.source == null ? new Base[0] : new Base[] {this.source}; // StringType
8514        case 109264468: /*scope*/ return this.scope == null ? new Base[0] : new Base[] {this.scope}; // StringType
8515        default: return super.getProperty(hash, name, checkValid);
8516        }
8517
8518      }
8519
8520      @Override
8521      public Base setProperty(int hash, String name, Base value) throws FHIRException {
8522        switch (hash) {
8523        case 3059181: // code
8524          this.code = castToCode(value); // CodeType
8525          return value;
8526        case -896505829: // source
8527          this.source = castToString(value); // StringType
8528          return value;
8529        case 109264468: // scope
8530          this.scope = castToString(value); // StringType
8531          return value;
8532        default: return super.setProperty(hash, name, value);
8533        }
8534
8535      }
8536
8537      @Override
8538      public Base setProperty(String name, Base value) throws FHIRException {
8539        if (name.equals("code")) {
8540          this.code = castToCode(value); // CodeType
8541        } else if (name.equals("source")) {
8542          this.source = castToString(value); // StringType
8543        } else if (name.equals("scope")) {
8544          this.scope = castToString(value); // StringType
8545        } else
8546          return super.setProperty(name, value);
8547        return value;
8548      }
8549
8550      @Override
8551      public Base makeProperty(int hash, String name) throws FHIRException {
8552        switch (hash) {
8553        case 3059181:  return getCodeElement();
8554        case -896505829:  return getSourceElement();
8555        case 109264468:  return getScopeElement();
8556        default: return super.makeProperty(hash, name);
8557        }
8558
8559      }
8560
8561      @Override
8562      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
8563        switch (hash) {
8564        case 3059181: /*code*/ return new String[] {"code"};
8565        case -896505829: /*source*/ return new String[] {"string"};
8566        case 109264468: /*scope*/ return new String[] {"string"};
8567        default: return super.getTypesForProperty(hash, name);
8568        }
8569
8570      }
8571
8572      @Override
8573      public Base addChild(String name) throws FHIRException {
8574        if (name.equals("code")) {
8575          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.code");
8576        }
8577        else if (name.equals("source")) {
8578          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.source");
8579        }
8580        else if (name.equals("scope")) {
8581          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.scope");
8582        }
8583        else
8584          return super.addChild(name);
8585      }
8586
8587      public ImplementationGuideDefinitionTemplateComponent copy() {
8588        ImplementationGuideDefinitionTemplateComponent dst = new ImplementationGuideDefinitionTemplateComponent();
8589        copyValues(dst);
8590        return dst;
8591      }
8592
8593      public void copyValues(ImplementationGuideDefinitionTemplateComponent dst) {
8594        super.copyValues(dst);
8595        dst.code = code == null ? null : code.copy();
8596        dst.source = source == null ? null : source.copy();
8597        dst.scope = scope == null ? null : scope.copy();
8598      }
8599
8600      @Override
8601      public boolean equalsDeep(Base other_) {
8602        if (!super.equalsDeep(other_))
8603          return false;
8604        if (!(other_ instanceof ImplementationGuideDefinitionTemplateComponent))
8605          return false;
8606        ImplementationGuideDefinitionTemplateComponent o = (ImplementationGuideDefinitionTemplateComponent) other_;
8607        return compareDeep(code, o.code, true) && compareDeep(source, o.source, true) && compareDeep(scope, o.scope, true)
8608          ;
8609      }
8610
8611      @Override
8612      public boolean equalsShallow(Base other_) {
8613        if (!super.equalsShallow(other_))
8614          return false;
8615        if (!(other_ instanceof ImplementationGuideDefinitionTemplateComponent))
8616          return false;
8617        ImplementationGuideDefinitionTemplateComponent o = (ImplementationGuideDefinitionTemplateComponent) other_;
8618        return compareValues(code, o.code, true) && compareValues(source, o.source, true) && compareValues(scope, o.scope, true)
8619          ;
8620      }
8621
8622      public boolean isEmpty() {
8623        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(code, source, scope);
8624      }
8625
8626  public String fhirType() {
8627    return "ImplementationGuide.definition.template";
8628
8629  }
8630
8631  }
8632
8633    @Block()
8634    public static class ImplementationGuideManifestComponent extends BackboneElement implements IBaseBackboneElement {
8635        /**
8636         * A pointer to official web page, PDF or other rendering of the implementation guide.
8637         */
8638        @Child(name = "rendering", type = {UrlType.class}, order=1, min=0, max=1, modifier=false, summary=true)
8639        @Description(shortDefinition="Location of rendered implementation guide", formalDefinition="A pointer to official web page, PDF or other rendering of the implementation guide." )
8640        protected UrlType rendering;
8641
8642        /**
8643         * A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.
8644         */
8645        @Child(name = "resource", type = {}, order=2, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
8646        @Description(shortDefinition="Resource in the implementation guide", formalDefinition="A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource." )
8647        protected List<ManifestResourceComponent> resource;
8648
8649        /**
8650         * Information about a page within the IG.
8651         */
8652        @Child(name = "page", type = {}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
8653        @Description(shortDefinition="HTML page within the parent IG", formalDefinition="Information about a page within the IG." )
8654        protected List<ManifestPageComponent> page;
8655
8656        /**
8657         * Indicates a relative path to an image that exists within the IG.
8658         */
8659        @Child(name = "image", type = {StringType.class}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
8660        @Description(shortDefinition="Image within the IG", formalDefinition="Indicates a relative path to an image that exists within the IG." )
8661        protected List<StringType> image;
8662
8663        /**
8664         * Indicates the relative path of an additional non-page, non-image file that is part of the IG - e.g. zip, jar and similar files that could be the target of a hyperlink in a derived IG.
8665         */
8666        @Child(name = "other", type = {StringType.class}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
8667        @Description(shortDefinition="Additional linkable file in IG", formalDefinition="Indicates the relative path of an additional non-page, non-image file that is part of the IG - e.g. zip, jar and similar files that could be the target of a hyperlink in a derived IG." )
8668        protected List<StringType> other;
8669
8670        private static final long serialVersionUID = 1881327712L;
8671
8672    /**
8673     * Constructor
8674     */
8675      public ImplementationGuideManifestComponent() {
8676        super();
8677      }
8678
8679        /**
8680         * @return {@link #rendering} (A pointer to official web page, PDF or other rendering of the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getRendering" gives direct access to the value
8681         */
8682        public UrlType getRenderingElement() { 
8683          if (this.rendering == null)
8684            if (Configuration.errorOnAutoCreate())
8685              throw new Error("Attempt to auto-create ImplementationGuideManifestComponent.rendering");
8686            else if (Configuration.doAutoCreate())
8687              this.rendering = new UrlType(); // bb
8688          return this.rendering;
8689        }
8690
8691        public boolean hasRenderingElement() { 
8692          return this.rendering != null && !this.rendering.isEmpty();
8693        }
8694
8695        public boolean hasRendering() { 
8696          return this.rendering != null && !this.rendering.isEmpty();
8697        }
8698
8699        /**
8700         * @param value {@link #rendering} (A pointer to official web page, PDF or other rendering of the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getRendering" gives direct access to the value
8701         */
8702        public ImplementationGuideManifestComponent setRenderingElement(UrlType value) { 
8703          this.rendering = value;
8704          return this;
8705        }
8706
8707        /**
8708         * @return A pointer to official web page, PDF or other rendering of the implementation guide.
8709         */
8710        public String getRendering() { 
8711          return this.rendering == null ? null : this.rendering.getValue();
8712        }
8713
8714        /**
8715         * @param value A pointer to official web page, PDF or other rendering of the implementation guide.
8716         */
8717        public ImplementationGuideManifestComponent setRendering(String value) { 
8718          if (Utilities.noString(value))
8719            this.rendering = null;
8720          else {
8721            if (this.rendering == null)
8722              this.rendering = new UrlType();
8723            this.rendering.setValue(value);
8724          }
8725          return this;
8726        }
8727
8728        /**
8729         * @return {@link #resource} (A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.)
8730         */
8731        public List<ManifestResourceComponent> getResource() { 
8732          if (this.resource == null)
8733            this.resource = new ArrayList<ManifestResourceComponent>();
8734          return this.resource;
8735        }
8736
8737        /**
8738         * @return Returns a reference to <code>this</code> for easy method chaining
8739         */
8740        public ImplementationGuideManifestComponent setResource(List<ManifestResourceComponent> theResource) { 
8741          this.resource = theResource;
8742          return this;
8743        }
8744
8745        public boolean hasResource() { 
8746          if (this.resource == null)
8747            return false;
8748          for (ManifestResourceComponent item : this.resource)
8749            if (!item.isEmpty())
8750              return true;
8751          return false;
8752        }
8753
8754        public ManifestResourceComponent addResource() { //3
8755          ManifestResourceComponent t = new ManifestResourceComponent();
8756          if (this.resource == null)
8757            this.resource = new ArrayList<ManifestResourceComponent>();
8758          this.resource.add(t);
8759          return t;
8760        }
8761
8762        public ImplementationGuideManifestComponent addResource(ManifestResourceComponent t) { //3
8763          if (t == null)
8764            return this;
8765          if (this.resource == null)
8766            this.resource = new ArrayList<ManifestResourceComponent>();
8767          this.resource.add(t);
8768          return this;
8769        }
8770
8771        /**
8772         * @return The first repetition of repeating field {@link #resource}, creating it if it does not already exist
8773         */
8774        public ManifestResourceComponent getResourceFirstRep() { 
8775          if (getResource().isEmpty()) {
8776            addResource();
8777          }
8778          return getResource().get(0);
8779        }
8780
8781        /**
8782         * @return {@link #page} (Information about a page within the IG.)
8783         */
8784        public List<ManifestPageComponent> getPage() { 
8785          if (this.page == null)
8786            this.page = new ArrayList<ManifestPageComponent>();
8787          return this.page;
8788        }
8789
8790        /**
8791         * @return Returns a reference to <code>this</code> for easy method chaining
8792         */
8793        public ImplementationGuideManifestComponent setPage(List<ManifestPageComponent> thePage) { 
8794          this.page = thePage;
8795          return this;
8796        }
8797
8798        public boolean hasPage() { 
8799          if (this.page == null)
8800            return false;
8801          for (ManifestPageComponent item : this.page)
8802            if (!item.isEmpty())
8803              return true;
8804          return false;
8805        }
8806
8807        public ManifestPageComponent addPage() { //3
8808          ManifestPageComponent t = new ManifestPageComponent();
8809          if (this.page == null)
8810            this.page = new ArrayList<ManifestPageComponent>();
8811          this.page.add(t);
8812          return t;
8813        }
8814
8815        public ImplementationGuideManifestComponent addPage(ManifestPageComponent t) { //3
8816          if (t == null)
8817            return this;
8818          if (this.page == null)
8819            this.page = new ArrayList<ManifestPageComponent>();
8820          this.page.add(t);
8821          return this;
8822        }
8823
8824        /**
8825         * @return The first repetition of repeating field {@link #page}, creating it if it does not already exist
8826         */
8827        public ManifestPageComponent getPageFirstRep() { 
8828          if (getPage().isEmpty()) {
8829            addPage();
8830          }
8831          return getPage().get(0);
8832        }
8833
8834        /**
8835         * @return {@link #image} (Indicates a relative path to an image that exists within the IG.)
8836         */
8837        public List<StringType> getImage() { 
8838          if (this.image == null)
8839            this.image = new ArrayList<StringType>();
8840          return this.image;
8841        }
8842
8843        /**
8844         * @return Returns a reference to <code>this</code> for easy method chaining
8845         */
8846        public ImplementationGuideManifestComponent setImage(List<StringType> theImage) { 
8847          this.image = theImage;
8848          return this;
8849        }
8850
8851        public boolean hasImage() { 
8852          if (this.image == null)
8853            return false;
8854          for (StringType item : this.image)
8855            if (!item.isEmpty())
8856              return true;
8857          return false;
8858        }
8859
8860        /**
8861         * @return {@link #image} (Indicates a relative path to an image that exists within the IG.)
8862         */
8863        public StringType addImageElement() {//2 
8864          StringType t = new StringType();
8865          if (this.image == null)
8866            this.image = new ArrayList<StringType>();
8867          this.image.add(t);
8868          return t;
8869        }
8870
8871        /**
8872         * @param value {@link #image} (Indicates a relative path to an image that exists within the IG.)
8873         */
8874        public ImplementationGuideManifestComponent addImage(String value) { //1
8875          StringType t = new StringType();
8876          t.setValue(value);
8877          if (this.image == null)
8878            this.image = new ArrayList<StringType>();
8879          this.image.add(t);
8880          return this;
8881        }
8882
8883        /**
8884         * @param value {@link #image} (Indicates a relative path to an image that exists within the IG.)
8885         */
8886        public boolean hasImage(String value) { 
8887          if (this.image == null)
8888            return false;
8889          for (StringType v : this.image)
8890            if (v.getValue().equals(value)) // string
8891              return true;
8892          return false;
8893        }
8894
8895        /**
8896         * @return {@link #other} (Indicates the relative path of an additional non-page, non-image file that is part of the IG - e.g. zip, jar and similar files that could be the target of a hyperlink in a derived IG.)
8897         */
8898        public List<StringType> getOther() { 
8899          if (this.other == null)
8900            this.other = new ArrayList<StringType>();
8901          return this.other;
8902        }
8903
8904        /**
8905         * @return Returns a reference to <code>this</code> for easy method chaining
8906         */
8907        public ImplementationGuideManifestComponent setOther(List<StringType> theOther) { 
8908          this.other = theOther;
8909          return this;
8910        }
8911
8912        public boolean hasOther() { 
8913          if (this.other == null)
8914            return false;
8915          for (StringType item : this.other)
8916            if (!item.isEmpty())
8917              return true;
8918          return false;
8919        }
8920
8921        /**
8922         * @return {@link #other} (Indicates the relative path of an additional non-page, non-image file that is part of the IG - e.g. zip, jar and similar files that could be the target of a hyperlink in a derived IG.)
8923         */
8924        public StringType addOtherElement() {//2 
8925          StringType t = new StringType();
8926          if (this.other == null)
8927            this.other = new ArrayList<StringType>();
8928          this.other.add(t);
8929          return t;
8930        }
8931
8932        /**
8933         * @param value {@link #other} (Indicates the relative path of an additional non-page, non-image file that is part of the IG - e.g. zip, jar and similar files that could be the target of a hyperlink in a derived IG.)
8934         */
8935        public ImplementationGuideManifestComponent addOther(String value) { //1
8936          StringType t = new StringType();
8937          t.setValue(value);
8938          if (this.other == null)
8939            this.other = new ArrayList<StringType>();
8940          this.other.add(t);
8941          return this;
8942        }
8943
8944        /**
8945         * @param value {@link #other} (Indicates the relative path of an additional non-page, non-image file that is part of the IG - e.g. zip, jar and similar files that could be the target of a hyperlink in a derived IG.)
8946         */
8947        public boolean hasOther(String value) { 
8948          if (this.other == null)
8949            return false;
8950          for (StringType v : this.other)
8951            if (v.getValue().equals(value)) // string
8952              return true;
8953          return false;
8954        }
8955
8956        protected void listChildren(List<Property> children) {
8957          super.listChildren(children);
8958          children.add(new Property("rendering", "url", "A pointer to official web page, PDF or other rendering of the implementation guide.", 0, 1, rendering));
8959          children.add(new Property("resource", "", "A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.", 0, java.lang.Integer.MAX_VALUE, resource));
8960          children.add(new Property("page", "", "Information about a page within the IG.", 0, java.lang.Integer.MAX_VALUE, page));
8961          children.add(new Property("image", "string", "Indicates a relative path to an image that exists within the IG.", 0, java.lang.Integer.MAX_VALUE, image));
8962          children.add(new Property("other", "string", "Indicates the relative path of an additional non-page, non-image file that is part of the IG - e.g. zip, jar and similar files that could be the target of a hyperlink in a derived IG.", 0, java.lang.Integer.MAX_VALUE, other));
8963        }
8964
8965        @Override
8966        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
8967          switch (_hash) {
8968          case 1839654540: /*rendering*/  return new Property("rendering", "url", "A pointer to official web page, PDF or other rendering of the implementation guide.", 0, 1, rendering);
8969          case -341064690: /*resource*/  return new Property("resource", "", "A resource that is part of the implementation guide. Conformance resources (value set, structure definition, capability statements etc.) are obvious candidates for inclusion, but any kind of resource can be included as an example resource.", 0, java.lang.Integer.MAX_VALUE, resource);
8970          case 3433103: /*page*/  return new Property("page", "", "Information about a page within the IG.", 0, java.lang.Integer.MAX_VALUE, page);
8971          case 100313435: /*image*/  return new Property("image", "string", "Indicates a relative path to an image that exists within the IG.", 0, java.lang.Integer.MAX_VALUE, image);
8972          case 106069776: /*other*/  return new Property("other", "string", "Indicates the relative path of an additional non-page, non-image file that is part of the IG - e.g. zip, jar and similar files that could be the target of a hyperlink in a derived IG.", 0, java.lang.Integer.MAX_VALUE, other);
8973          default: return super.getNamedProperty(_hash, _name, _checkValid);
8974          }
8975
8976        }
8977
8978      @Override
8979      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
8980        switch (hash) {
8981        case 1839654540: /*rendering*/ return this.rendering == null ? new Base[0] : new Base[] {this.rendering}; // UrlType
8982        case -341064690: /*resource*/ return this.resource == null ? new Base[0] : this.resource.toArray(new Base[this.resource.size()]); // ManifestResourceComponent
8983        case 3433103: /*page*/ return this.page == null ? new Base[0] : this.page.toArray(new Base[this.page.size()]); // ManifestPageComponent
8984        case 100313435: /*image*/ return this.image == null ? new Base[0] : this.image.toArray(new Base[this.image.size()]); // StringType
8985        case 106069776: /*other*/ return this.other == null ? new Base[0] : this.other.toArray(new Base[this.other.size()]); // StringType
8986        default: return super.getProperty(hash, name, checkValid);
8987        }
8988
8989      }
8990
8991      @Override
8992      public Base setProperty(int hash, String name, Base value) throws FHIRException {
8993        switch (hash) {
8994        case 1839654540: // rendering
8995          this.rendering = castToUrl(value); // UrlType
8996          return value;
8997        case -341064690: // resource
8998          this.getResource().add((ManifestResourceComponent) value); // ManifestResourceComponent
8999          return value;
9000        case 3433103: // page
9001          this.getPage().add((ManifestPageComponent) value); // ManifestPageComponent
9002          return value;
9003        case 100313435: // image
9004          this.getImage().add(castToString(value)); // StringType
9005          return value;
9006        case 106069776: // other
9007          this.getOther().add(castToString(value)); // StringType
9008          return value;
9009        default: return super.setProperty(hash, name, value);
9010        }
9011
9012      }
9013
9014      @Override
9015      public Base setProperty(String name, Base value) throws FHIRException {
9016        if (name.equals("rendering")) {
9017          this.rendering = castToUrl(value); // UrlType
9018        } else if (name.equals("resource")) {
9019          this.getResource().add((ManifestResourceComponent) value);
9020        } else if (name.equals("page")) {
9021          this.getPage().add((ManifestPageComponent) value);
9022        } else if (name.equals("image")) {
9023          this.getImage().add(castToString(value));
9024        } else if (name.equals("other")) {
9025          this.getOther().add(castToString(value));
9026        } else
9027          return super.setProperty(name, value);
9028        return value;
9029      }
9030
9031      @Override
9032      public Base makeProperty(int hash, String name) throws FHIRException {
9033        switch (hash) {
9034        case 1839654540:  return getRenderingElement();
9035        case -341064690:  return addResource(); 
9036        case 3433103:  return addPage(); 
9037        case 100313435:  return addImageElement();
9038        case 106069776:  return addOtherElement();
9039        default: return super.makeProperty(hash, name);
9040        }
9041
9042      }
9043
9044      @Override
9045      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
9046        switch (hash) {
9047        case 1839654540: /*rendering*/ return new String[] {"url"};
9048        case -341064690: /*resource*/ return new String[] {};
9049        case 3433103: /*page*/ return new String[] {};
9050        case 100313435: /*image*/ return new String[] {"string"};
9051        case 106069776: /*other*/ return new String[] {"string"};
9052        default: return super.getTypesForProperty(hash, name);
9053        }
9054
9055      }
9056
9057      @Override
9058      public Base addChild(String name) throws FHIRException {
9059        if (name.equals("rendering")) {
9060          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.rendering");
9061        }
9062        else if (name.equals("resource")) {
9063          return addResource();
9064        }
9065        else if (name.equals("page")) {
9066          return addPage();
9067        }
9068        else if (name.equals("image")) {
9069          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.image");
9070        }
9071        else if (name.equals("other")) {
9072          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.other");
9073        }
9074        else
9075          return super.addChild(name);
9076      }
9077
9078      public ImplementationGuideManifestComponent copy() {
9079        ImplementationGuideManifestComponent dst = new ImplementationGuideManifestComponent();
9080        copyValues(dst);
9081        return dst;
9082      }
9083
9084      public void copyValues(ImplementationGuideManifestComponent dst) {
9085        super.copyValues(dst);
9086        dst.rendering = rendering == null ? null : rendering.copy();
9087        if (resource != null) {
9088          dst.resource = new ArrayList<ManifestResourceComponent>();
9089          for (ManifestResourceComponent i : resource)
9090            dst.resource.add(i.copy());
9091        };
9092        if (page != null) {
9093          dst.page = new ArrayList<ManifestPageComponent>();
9094          for (ManifestPageComponent i : page)
9095            dst.page.add(i.copy());
9096        };
9097        if (image != null) {
9098          dst.image = new ArrayList<StringType>();
9099          for (StringType i : image)
9100            dst.image.add(i.copy());
9101        };
9102        if (other != null) {
9103          dst.other = new ArrayList<StringType>();
9104          for (StringType i : other)
9105            dst.other.add(i.copy());
9106        };
9107      }
9108
9109      @Override
9110      public boolean equalsDeep(Base other_) {
9111        if (!super.equalsDeep(other_))
9112          return false;
9113        if (!(other_ instanceof ImplementationGuideManifestComponent))
9114          return false;
9115        ImplementationGuideManifestComponent o = (ImplementationGuideManifestComponent) other_;
9116        return compareDeep(rendering, o.rendering, true) && compareDeep(resource, o.resource, true) && compareDeep(page, o.page, true)
9117           && compareDeep(image, o.image, true) && compareDeep(other, o.other, true);
9118      }
9119
9120      @Override
9121      public boolean equalsShallow(Base other_) {
9122        if (!super.equalsShallow(other_))
9123          return false;
9124        if (!(other_ instanceof ImplementationGuideManifestComponent))
9125          return false;
9126        ImplementationGuideManifestComponent o = (ImplementationGuideManifestComponent) other_;
9127        return compareValues(rendering, o.rendering, true) && compareValues(image, o.image, true) && compareValues(other, o.other, true)
9128          ;
9129      }
9130
9131      public boolean isEmpty() {
9132        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(rendering, resource, page
9133          , image, other);
9134      }
9135
9136  public String fhirType() {
9137    return "ImplementationGuide.manifest";
9138
9139  }
9140
9141  }
9142
9143    @Block()
9144    public static class ManifestResourceComponent extends BackboneElement implements IBaseBackboneElement {
9145        /**
9146         * Where this resource is found.
9147         */
9148        @Child(name = "reference", type = {Reference.class}, order=1, min=1, max=1, modifier=false, summary=true)
9149        @Description(shortDefinition="Location of the resource", formalDefinition="Where this resource is found." )
9150        protected Reference reference;
9151
9152        /**
9153         * If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.
9154         */
9155        @Child(name = "example", type = {BooleanType.class, CanonicalType.class}, order=2, min=0, max=1, modifier=false, summary=false)
9156        @Description(shortDefinition="Is an example/What is this an example of?", formalDefinition="If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile." )
9157        protected Type example;
9158
9159        /**
9160         * The relative path for primary page for this resource within the IG.
9161         */
9162        @Child(name = "relativePath", type = {UrlType.class}, order=3, min=0, max=1, modifier=false, summary=false)
9163        @Description(shortDefinition="Relative path for page in IG", formalDefinition="The relative path for primary page for this resource within the IG." )
9164        protected UrlType relativePath;
9165
9166        private static final long serialVersionUID = -1760678864L;
9167
9168    /**
9169     * Constructor
9170     */
9171      public ManifestResourceComponent() {
9172        super();
9173      }
9174
9175    /**
9176     * Constructor
9177     */
9178      public ManifestResourceComponent(Reference reference) {
9179        super();
9180        this.reference = reference;
9181      }
9182
9183        /**
9184         * @return {@link #reference} (Where this resource is found.)
9185         */
9186        public Reference getReference() { 
9187          if (this.reference == null)
9188            if (Configuration.errorOnAutoCreate())
9189              throw new Error("Attempt to auto-create ManifestResourceComponent.reference");
9190            else if (Configuration.doAutoCreate())
9191              this.reference = new Reference(); // cc
9192          return this.reference;
9193        }
9194
9195        public boolean hasReference() { 
9196          return this.reference != null && !this.reference.isEmpty();
9197        }
9198
9199        /**
9200         * @param value {@link #reference} (Where this resource is found.)
9201         */
9202        public ManifestResourceComponent setReference(Reference value) { 
9203          this.reference = value;
9204          return this;
9205        }
9206
9207        /**
9208         * @return {@link #example} (If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.)
9209         */
9210        public Type getExample() { 
9211          return this.example;
9212        }
9213
9214        /**
9215         * @return {@link #example} (If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.)
9216         */
9217        public BooleanType getExampleBooleanType() throws FHIRException { 
9218          if (this.example == null)
9219            this.example = new BooleanType();
9220          if (!(this.example instanceof BooleanType))
9221            throw new FHIRException("Type mismatch: the type BooleanType was expected, but "+this.example.getClass().getName()+" was encountered");
9222          return (BooleanType) this.example;
9223        }
9224
9225        public boolean hasExampleBooleanType() { 
9226          return this != null && this.example instanceof BooleanType;
9227        }
9228
9229        /**
9230         * @return {@link #example} (If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.)
9231         */
9232        public CanonicalType getExampleCanonicalType() throws FHIRException { 
9233          if (this.example == null)
9234            this.example = new CanonicalType();
9235          if (!(this.example instanceof CanonicalType))
9236            throw new FHIRException("Type mismatch: the type CanonicalType was expected, but "+this.example.getClass().getName()+" was encountered");
9237          return (CanonicalType) this.example;
9238        }
9239
9240        public boolean hasExampleCanonicalType() { 
9241          return this != null && this.example instanceof CanonicalType;
9242        }
9243
9244        public boolean hasExample() { 
9245          return this.example != null && !this.example.isEmpty();
9246        }
9247
9248        /**
9249         * @param value {@link #example} (If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.)
9250         */
9251        public ManifestResourceComponent setExample(Type value) { 
9252          if (value != null && !(value instanceof BooleanType || value instanceof CanonicalType))
9253            throw new Error("Not the right type for ImplementationGuide.manifest.resource.example[x]: "+value.fhirType());
9254          this.example = value;
9255          return this;
9256        }
9257
9258        /**
9259         * @return {@link #relativePath} (The relative path for primary page for this resource within the IG.). This is the underlying object with id, value and extensions. The accessor "getRelativePath" gives direct access to the value
9260         */
9261        public UrlType getRelativePathElement() { 
9262          if (this.relativePath == null)
9263            if (Configuration.errorOnAutoCreate())
9264              throw new Error("Attempt to auto-create ManifestResourceComponent.relativePath");
9265            else if (Configuration.doAutoCreate())
9266              this.relativePath = new UrlType(); // bb
9267          return this.relativePath;
9268        }
9269
9270        public boolean hasRelativePathElement() { 
9271          return this.relativePath != null && !this.relativePath.isEmpty();
9272        }
9273
9274        public boolean hasRelativePath() { 
9275          return this.relativePath != null && !this.relativePath.isEmpty();
9276        }
9277
9278        /**
9279         * @param value {@link #relativePath} (The relative path for primary page for this resource within the IG.). This is the underlying object with id, value and extensions. The accessor "getRelativePath" gives direct access to the value
9280         */
9281        public ManifestResourceComponent setRelativePathElement(UrlType value) { 
9282          this.relativePath = value;
9283          return this;
9284        }
9285
9286        /**
9287         * @return The relative path for primary page for this resource within the IG.
9288         */
9289        public String getRelativePath() { 
9290          return this.relativePath == null ? null : this.relativePath.getValue();
9291        }
9292
9293        /**
9294         * @param value The relative path for primary page for this resource within the IG.
9295         */
9296        public ManifestResourceComponent setRelativePath(String value) { 
9297          if (Utilities.noString(value))
9298            this.relativePath = null;
9299          else {
9300            if (this.relativePath == null)
9301              this.relativePath = new UrlType();
9302            this.relativePath.setValue(value);
9303          }
9304          return this;
9305        }
9306
9307        protected void listChildren(List<Property> children) {
9308          super.listChildren(children);
9309          children.add(new Property("reference", "Reference(Any)", "Where this resource is found.", 0, 1, reference));
9310          children.add(new Property("example[x]", "boolean|canonical(StructureDefinition)", "If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.", 0, 1, example));
9311          children.add(new Property("relativePath", "url", "The relative path for primary page for this resource within the IG.", 0, 1, relativePath));
9312        }
9313
9314        @Override
9315        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
9316          switch (_hash) {
9317          case -925155509: /*reference*/  return new Property("reference", "Reference(Any)", "Where this resource is found.", 0, 1, reference);
9318          case -2002328874: /*example[x]*/  return new Property("example[x]", "boolean|canonical(StructureDefinition)", "If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.", 0, 1, example);
9319          case -1322970774: /*example*/  return new Property("example[x]", "boolean|canonical(StructureDefinition)", "If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.", 0, 1, example);
9320          case 159803230: /*exampleBoolean*/  return new Property("example[x]", "boolean|canonical(StructureDefinition)", "If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.", 0, 1, example);
9321          case 2016979626: /*exampleCanonical*/  return new Property("example[x]", "boolean|canonical(StructureDefinition)", "If true or a reference, indicates the resource is an example instance.  If a reference is present, indicates that the example is an example of the specified profile.", 0, 1, example);
9322          case -70808303: /*relativePath*/  return new Property("relativePath", "url", "The relative path for primary page for this resource within the IG.", 0, 1, relativePath);
9323          default: return super.getNamedProperty(_hash, _name, _checkValid);
9324          }
9325
9326        }
9327
9328      @Override
9329      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
9330        switch (hash) {
9331        case -925155509: /*reference*/ return this.reference == null ? new Base[0] : new Base[] {this.reference}; // Reference
9332        case -1322970774: /*example*/ return this.example == null ? new Base[0] : new Base[] {this.example}; // Type
9333        case -70808303: /*relativePath*/ return this.relativePath == null ? new Base[0] : new Base[] {this.relativePath}; // UrlType
9334        default: return super.getProperty(hash, name, checkValid);
9335        }
9336
9337      }
9338
9339      @Override
9340      public Base setProperty(int hash, String name, Base value) throws FHIRException {
9341        switch (hash) {
9342        case -925155509: // reference
9343          this.reference = castToReference(value); // Reference
9344          return value;
9345        case -1322970774: // example
9346          this.example = castToType(value); // Type
9347          return value;
9348        case -70808303: // relativePath
9349          this.relativePath = castToUrl(value); // UrlType
9350          return value;
9351        default: return super.setProperty(hash, name, value);
9352        }
9353
9354      }
9355
9356      @Override
9357      public Base setProperty(String name, Base value) throws FHIRException {
9358        if (name.equals("reference")) {
9359          this.reference = castToReference(value); // Reference
9360        } else if (name.equals("example[x]")) {
9361          this.example = castToType(value); // Type
9362        } else if (name.equals("relativePath")) {
9363          this.relativePath = castToUrl(value); // UrlType
9364        } else
9365          return super.setProperty(name, value);
9366        return value;
9367      }
9368
9369      @Override
9370      public Base makeProperty(int hash, String name) throws FHIRException {
9371        switch (hash) {
9372        case -925155509:  return getReference();
9373        case -2002328874:  return getExample();
9374        case -1322970774:  return getExample();
9375        case -70808303:  return getRelativePathElement();
9376        default: return super.makeProperty(hash, name);
9377        }
9378
9379      }
9380
9381      @Override
9382      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
9383        switch (hash) {
9384        case -925155509: /*reference*/ return new String[] {"Reference"};
9385        case -1322970774: /*example*/ return new String[] {"boolean", "canonical"};
9386        case -70808303: /*relativePath*/ return new String[] {"url"};
9387        default: return super.getTypesForProperty(hash, name);
9388        }
9389
9390      }
9391
9392      @Override
9393      public Base addChild(String name) throws FHIRException {
9394        if (name.equals("reference")) {
9395          this.reference = new Reference();
9396          return this.reference;
9397        }
9398        else if (name.equals("exampleBoolean")) {
9399          this.example = new BooleanType();
9400          return this.example;
9401        }
9402        else if (name.equals("exampleCanonical")) {
9403          this.example = new CanonicalType();
9404          return this.example;
9405        }
9406        else if (name.equals("relativePath")) {
9407          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.relativePath");
9408        }
9409        else
9410          return super.addChild(name);
9411      }
9412
9413      public ManifestResourceComponent copy() {
9414        ManifestResourceComponent dst = new ManifestResourceComponent();
9415        copyValues(dst);
9416        return dst;
9417      }
9418
9419      public void copyValues(ManifestResourceComponent dst) {
9420        super.copyValues(dst);
9421        dst.reference = reference == null ? null : reference.copy();
9422        dst.example = example == null ? null : example.copy();
9423        dst.relativePath = relativePath == null ? null : relativePath.copy();
9424      }
9425
9426      @Override
9427      public boolean equalsDeep(Base other_) {
9428        if (!super.equalsDeep(other_))
9429          return false;
9430        if (!(other_ instanceof ManifestResourceComponent))
9431          return false;
9432        ManifestResourceComponent o = (ManifestResourceComponent) other_;
9433        return compareDeep(reference, o.reference, true) && compareDeep(example, o.example, true) && compareDeep(relativePath, o.relativePath, true)
9434          ;
9435      }
9436
9437      @Override
9438      public boolean equalsShallow(Base other_) {
9439        if (!super.equalsShallow(other_))
9440          return false;
9441        if (!(other_ instanceof ManifestResourceComponent))
9442          return false;
9443        ManifestResourceComponent o = (ManifestResourceComponent) other_;
9444        return compareValues(relativePath, o.relativePath, true);
9445      }
9446
9447      public boolean isEmpty() {
9448        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(reference, example, relativePath
9449          );
9450      }
9451
9452  public String fhirType() {
9453    return "ImplementationGuide.manifest.resource";
9454
9455  }
9456
9457// added from java-adornments.txt:
9458 
9459
9460// end addition
9461  }
9462
9463    @Block()
9464    public static class ManifestPageComponent extends BackboneElement implements IBaseBackboneElement {
9465        /**
9466         * Relative path to the page.
9467         */
9468        @Child(name = "name", type = {StringType.class}, order=1, min=1, max=1, modifier=false, summary=false)
9469        @Description(shortDefinition="HTML page name", formalDefinition="Relative path to the page." )
9470        protected StringType name;
9471
9472        /**
9473         * Label for the page intended for human display.
9474         */
9475        @Child(name = "title", type = {StringType.class}, order=2, min=0, max=1, modifier=false, summary=false)
9476        @Description(shortDefinition="Title of the page, for references", formalDefinition="Label for the page intended for human display." )
9477        protected StringType title;
9478
9479        /**
9480         * The name of an anchor available on the page.
9481         */
9482        @Child(name = "anchor", type = {StringType.class}, order=3, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=false)
9483        @Description(shortDefinition="Anchor available on the page", formalDefinition="The name of an anchor available on the page." )
9484        protected List<StringType> anchor;
9485
9486        private static final long serialVersionUID = 1920576611L;
9487
9488    /**
9489     * Constructor
9490     */
9491      public ManifestPageComponent() {
9492        super();
9493      }
9494
9495    /**
9496     * Constructor
9497     */
9498      public ManifestPageComponent(StringType name) {
9499        super();
9500        this.name = name;
9501      }
9502
9503        /**
9504         * @return {@link #name} (Relative path to the page.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
9505         */
9506        public StringType getNameElement() { 
9507          if (this.name == null)
9508            if (Configuration.errorOnAutoCreate())
9509              throw new Error("Attempt to auto-create ManifestPageComponent.name");
9510            else if (Configuration.doAutoCreate())
9511              this.name = new StringType(); // bb
9512          return this.name;
9513        }
9514
9515        public boolean hasNameElement() { 
9516          return this.name != null && !this.name.isEmpty();
9517        }
9518
9519        public boolean hasName() { 
9520          return this.name != null && !this.name.isEmpty();
9521        }
9522
9523        /**
9524         * @param value {@link #name} (Relative path to the page.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
9525         */
9526        public ManifestPageComponent setNameElement(StringType value) { 
9527          this.name = value;
9528          return this;
9529        }
9530
9531        /**
9532         * @return Relative path to the page.
9533         */
9534        public String getName() { 
9535          return this.name == null ? null : this.name.getValue();
9536        }
9537
9538        /**
9539         * @param value Relative path to the page.
9540         */
9541        public ManifestPageComponent setName(String value) { 
9542            if (this.name == null)
9543              this.name = new StringType();
9544            this.name.setValue(value);
9545          return this;
9546        }
9547
9548        /**
9549         * @return {@link #title} (Label for the page intended for human display.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
9550         */
9551        public StringType getTitleElement() { 
9552          if (this.title == null)
9553            if (Configuration.errorOnAutoCreate())
9554              throw new Error("Attempt to auto-create ManifestPageComponent.title");
9555            else if (Configuration.doAutoCreate())
9556              this.title = new StringType(); // bb
9557          return this.title;
9558        }
9559
9560        public boolean hasTitleElement() { 
9561          return this.title != null && !this.title.isEmpty();
9562        }
9563
9564        public boolean hasTitle() { 
9565          return this.title != null && !this.title.isEmpty();
9566        }
9567
9568        /**
9569         * @param value {@link #title} (Label for the page intended for human display.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
9570         */
9571        public ManifestPageComponent setTitleElement(StringType value) { 
9572          this.title = value;
9573          return this;
9574        }
9575
9576        /**
9577         * @return Label for the page intended for human display.
9578         */
9579        public String getTitle() { 
9580          return this.title == null ? null : this.title.getValue();
9581        }
9582
9583        /**
9584         * @param value Label for the page intended for human display.
9585         */
9586        public ManifestPageComponent setTitle(String value) { 
9587          if (Utilities.noString(value))
9588            this.title = null;
9589          else {
9590            if (this.title == null)
9591              this.title = new StringType();
9592            this.title.setValue(value);
9593          }
9594          return this;
9595        }
9596
9597        /**
9598         * @return {@link #anchor} (The name of an anchor available on the page.)
9599         */
9600        public List<StringType> getAnchor() { 
9601          if (this.anchor == null)
9602            this.anchor = new ArrayList<StringType>();
9603          return this.anchor;
9604        }
9605
9606        /**
9607         * @return Returns a reference to <code>this</code> for easy method chaining
9608         */
9609        public ManifestPageComponent setAnchor(List<StringType> theAnchor) { 
9610          this.anchor = theAnchor;
9611          return this;
9612        }
9613
9614        public boolean hasAnchor() { 
9615          if (this.anchor == null)
9616            return false;
9617          for (StringType item : this.anchor)
9618            if (!item.isEmpty())
9619              return true;
9620          return false;
9621        }
9622
9623        /**
9624         * @return {@link #anchor} (The name of an anchor available on the page.)
9625         */
9626        public StringType addAnchorElement() {//2 
9627          StringType t = new StringType();
9628          if (this.anchor == null)
9629            this.anchor = new ArrayList<StringType>();
9630          this.anchor.add(t);
9631          return t;
9632        }
9633
9634        /**
9635         * @param value {@link #anchor} (The name of an anchor available on the page.)
9636         */
9637        public ManifestPageComponent addAnchor(String value) { //1
9638          StringType t = new StringType();
9639          t.setValue(value);
9640          if (this.anchor == null)
9641            this.anchor = new ArrayList<StringType>();
9642          this.anchor.add(t);
9643          return this;
9644        }
9645
9646        /**
9647         * @param value {@link #anchor} (The name of an anchor available on the page.)
9648         */
9649        public boolean hasAnchor(String value) { 
9650          if (this.anchor == null)
9651            return false;
9652          for (StringType v : this.anchor)
9653            if (v.getValue().equals(value)) // string
9654              return true;
9655          return false;
9656        }
9657
9658        protected void listChildren(List<Property> children) {
9659          super.listChildren(children);
9660          children.add(new Property("name", "string", "Relative path to the page.", 0, 1, name));
9661          children.add(new Property("title", "string", "Label for the page intended for human display.", 0, 1, title));
9662          children.add(new Property("anchor", "string", "The name of an anchor available on the page.", 0, java.lang.Integer.MAX_VALUE, anchor));
9663        }
9664
9665        @Override
9666        public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
9667          switch (_hash) {
9668          case 3373707: /*name*/  return new Property("name", "string", "Relative path to the page.", 0, 1, name);
9669          case 110371416: /*title*/  return new Property("title", "string", "Label for the page intended for human display.", 0, 1, title);
9670          case -1413299531: /*anchor*/  return new Property("anchor", "string", "The name of an anchor available on the page.", 0, java.lang.Integer.MAX_VALUE, anchor);
9671          default: return super.getNamedProperty(_hash, _name, _checkValid);
9672          }
9673
9674        }
9675
9676      @Override
9677      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
9678        switch (hash) {
9679        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
9680        case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
9681        case -1413299531: /*anchor*/ return this.anchor == null ? new Base[0] : this.anchor.toArray(new Base[this.anchor.size()]); // StringType
9682        default: return super.getProperty(hash, name, checkValid);
9683        }
9684
9685      }
9686
9687      @Override
9688      public Base setProperty(int hash, String name, Base value) throws FHIRException {
9689        switch (hash) {
9690        case 3373707: // name
9691          this.name = castToString(value); // StringType
9692          return value;
9693        case 110371416: // title
9694          this.title = castToString(value); // StringType
9695          return value;
9696        case -1413299531: // anchor
9697          this.getAnchor().add(castToString(value)); // StringType
9698          return value;
9699        default: return super.setProperty(hash, name, value);
9700        }
9701
9702      }
9703
9704      @Override
9705      public Base setProperty(String name, Base value) throws FHIRException {
9706        if (name.equals("name")) {
9707          this.name = castToString(value); // StringType
9708        } else if (name.equals("title")) {
9709          this.title = castToString(value); // StringType
9710        } else if (name.equals("anchor")) {
9711          this.getAnchor().add(castToString(value));
9712        } else
9713          return super.setProperty(name, value);
9714        return value;
9715      }
9716
9717      @Override
9718      public Base makeProperty(int hash, String name) throws FHIRException {
9719        switch (hash) {
9720        case 3373707:  return getNameElement();
9721        case 110371416:  return getTitleElement();
9722        case -1413299531:  return addAnchorElement();
9723        default: return super.makeProperty(hash, name);
9724        }
9725
9726      }
9727
9728      @Override
9729      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
9730        switch (hash) {
9731        case 3373707: /*name*/ return new String[] {"string"};
9732        case 110371416: /*title*/ return new String[] {"string"};
9733        case -1413299531: /*anchor*/ return new String[] {"string"};
9734        default: return super.getTypesForProperty(hash, name);
9735        }
9736
9737      }
9738
9739      @Override
9740      public Base addChild(String name) throws FHIRException {
9741        if (name.equals("name")) {
9742          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name");
9743        }
9744        else if (name.equals("title")) {
9745          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.title");
9746        }
9747        else if (name.equals("anchor")) {
9748          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.anchor");
9749        }
9750        else
9751          return super.addChild(name);
9752      }
9753
9754      public ManifestPageComponent copy() {
9755        ManifestPageComponent dst = new ManifestPageComponent();
9756        copyValues(dst);
9757        return dst;
9758      }
9759
9760      public void copyValues(ManifestPageComponent dst) {
9761        super.copyValues(dst);
9762        dst.name = name == null ? null : name.copy();
9763        dst.title = title == null ? null : title.copy();
9764        if (anchor != null) {
9765          dst.anchor = new ArrayList<StringType>();
9766          for (StringType i : anchor)
9767            dst.anchor.add(i.copy());
9768        };
9769      }
9770
9771      @Override
9772      public boolean equalsDeep(Base other_) {
9773        if (!super.equalsDeep(other_))
9774          return false;
9775        if (!(other_ instanceof ManifestPageComponent))
9776          return false;
9777        ManifestPageComponent o = (ManifestPageComponent) other_;
9778        return compareDeep(name, o.name, true) && compareDeep(title, o.title, true) && compareDeep(anchor, o.anchor, true)
9779          ;
9780      }
9781
9782      @Override
9783      public boolean equalsShallow(Base other_) {
9784        if (!super.equalsShallow(other_))
9785          return false;
9786        if (!(other_ instanceof ManifestPageComponent))
9787          return false;
9788        ManifestPageComponent o = (ManifestPageComponent) other_;
9789        return compareValues(name, o.name, true) && compareValues(title, o.title, true) && compareValues(anchor, o.anchor, true)
9790          ;
9791      }
9792
9793      public boolean isEmpty() {
9794        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(name, title, anchor);
9795      }
9796
9797  public String fhirType() {
9798    return "ImplementationGuide.manifest.page";
9799
9800  }
9801
9802  }
9803
9804    /**
9805     * A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide.
9806     */
9807    @Child(name = "copyright", type = {MarkdownType.class}, order=0, min=0, max=1, modifier=false, summary=false)
9808    @Description(shortDefinition="Use and/or publishing restrictions", formalDefinition="A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide." )
9809    protected MarkdownType copyright;
9810
9811    /**
9812     * The NPM package name for this Implementation Guide, used in the NPM package distribution, which is the primary mechanism by which FHIR based tooling manages IG dependencies. This value must be globally unique, and should be assigned with care.
9813     */
9814    @Child(name = "packageId", type = {IdType.class}, order=1, min=1, max=1, modifier=false, summary=true)
9815    @Description(shortDefinition="NPM Package name for IG", formalDefinition="The NPM package name for this Implementation Guide, used in the NPM package distribution, which is the primary mechanism by which FHIR based tooling manages IG dependencies. This value must be globally unique, and should be assigned with care." )
9816    protected IdType packageId;
9817
9818    /**
9819     * The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'.
9820     */
9821    @Child(name = "license", type = {CodeType.class}, order=2, min=0, max=1, modifier=false, summary=true)
9822    @Description(shortDefinition="SPDX license code for this IG (or not-open-source)", formalDefinition="The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'." )
9823    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/spdx-license")
9824    protected Enumeration<SPDXLicense> license;
9825
9826    /**
9827     * The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.1.0. for this version.
9828     */
9829    @Child(name = "fhirVersion", type = {CodeType.class}, order=3, min=1, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
9830    @Description(shortDefinition="FHIR Version(s) this Implementation Guide targets", formalDefinition="The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.1.0. for this version." )
9831    @ca.uhn.fhir.model.api.annotation.Binding(valueSet="http://hl7.org/fhir/ValueSet/FHIR-version")
9832    protected List<Enumeration<FHIRVersion>> fhirVersion;
9833
9834    /**
9835     * Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides.
9836     */
9837    @Child(name = "dependsOn", type = {}, order=4, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
9838    @Description(shortDefinition="Another Implementation guide this depends on", formalDefinition="Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides." )
9839    protected List<ImplementationGuideDependsOnComponent> dependsOn;
9840
9841    /**
9842     * A set of profiles that all resources covered by this implementation guide must conform to.
9843     */
9844    @Child(name = "global", type = {}, order=5, min=0, max=Child.MAX_UNLIMITED, modifier=false, summary=true)
9845    @Description(shortDefinition="Profiles that apply globally", formalDefinition="A set of profiles that all resources covered by this implementation guide must conform to." )
9846    protected List<ImplementationGuideGlobalComponent> global;
9847
9848    /**
9849     * The information needed by an IG publisher tool to publish the whole implementation guide.
9850     */
9851    @Child(name = "definition", type = {}, order=6, min=0, max=1, modifier=false, summary=false)
9852    @Description(shortDefinition="Information needed to build the IG", formalDefinition="The information needed by an IG publisher tool to publish the whole implementation guide." )
9853    protected ImplementationGuideDefinitionComponent definition;
9854
9855    /**
9856     * Information about an assembled implementation guide, created by the publication tooling.
9857     */
9858    @Child(name = "manifest", type = {}, order=7, min=0, max=1, modifier=false, summary=false)
9859    @Description(shortDefinition="Information about an assembled IG", formalDefinition="Information about an assembled implementation guide, created by the publication tooling." )
9860    protected ImplementationGuideManifestComponent manifest;
9861
9862    private static final long serialVersionUID = 415193005L;
9863
9864  /**
9865   * Constructor
9866   */
9867    public ImplementationGuide() {
9868      super();
9869    }
9870
9871  /**
9872   * Constructor
9873   */
9874    public ImplementationGuide(UriType url, StringType name, Enumeration<PublicationStatus> status, IdType packageId) {
9875      super();
9876      this.url = url;
9877      this.name = name;
9878      this.status = status;
9879      this.packageId = packageId;
9880    }
9881
9882    /**
9883     * @return {@link #url} (An absolute URI that is used to identify this implementation guide when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this implementation guide is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the implementation guide is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
9884     */
9885    public UriType getUrlElement() { 
9886      if (this.url == null)
9887        if (Configuration.errorOnAutoCreate())
9888          throw new Error("Attempt to auto-create ImplementationGuide.url");
9889        else if (Configuration.doAutoCreate())
9890          this.url = new UriType(); // bb
9891      return this.url;
9892    }
9893
9894    public boolean hasUrlElement() { 
9895      return this.url != null && !this.url.isEmpty();
9896    }
9897
9898    public boolean hasUrl() { 
9899      return this.url != null && !this.url.isEmpty();
9900    }
9901
9902    /**
9903     * @param value {@link #url} (An absolute URI that is used to identify this implementation guide when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this implementation guide is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the implementation guide is stored on different servers.). This is the underlying object with id, value and extensions. The accessor "getUrl" gives direct access to the value
9904     */
9905    public ImplementationGuide setUrlElement(UriType value) { 
9906      this.url = value;
9907      return this;
9908    }
9909
9910    /**
9911     * @return An absolute URI that is used to identify this implementation guide when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this implementation guide is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the implementation guide is stored on different servers.
9912     */
9913    public String getUrl() { 
9914      return this.url == null ? null : this.url.getValue();
9915    }
9916
9917    /**
9918     * @param value An absolute URI that is used to identify this implementation guide when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this implementation guide is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the implementation guide is stored on different servers.
9919     */
9920    public ImplementationGuide setUrl(String value) { 
9921        if (this.url == null)
9922          this.url = new UriType();
9923        this.url.setValue(value);
9924      return this;
9925    }
9926
9927    /**
9928     * @return {@link #version} (The identifier that is used to identify this version of the implementation guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the implementation guide author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
9929     */
9930    public StringType getVersionElement() { 
9931      if (this.version == null)
9932        if (Configuration.errorOnAutoCreate())
9933          throw new Error("Attempt to auto-create ImplementationGuide.version");
9934        else if (Configuration.doAutoCreate())
9935          this.version = new StringType(); // bb
9936      return this.version;
9937    }
9938
9939    public boolean hasVersionElement() { 
9940      return this.version != null && !this.version.isEmpty();
9941    }
9942
9943    public boolean hasVersion() { 
9944      return this.version != null && !this.version.isEmpty();
9945    }
9946
9947    /**
9948     * @param value {@link #version} (The identifier that is used to identify this version of the implementation guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the implementation guide author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.). This is the underlying object with id, value and extensions. The accessor "getVersion" gives direct access to the value
9949     */
9950    public ImplementationGuide setVersionElement(StringType value) { 
9951      this.version = value;
9952      return this;
9953    }
9954
9955    /**
9956     * @return The identifier that is used to identify this version of the implementation guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the implementation guide author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.
9957     */
9958    public String getVersion() { 
9959      return this.version == null ? null : this.version.getValue();
9960    }
9961
9962    /**
9963     * @param value The identifier that is used to identify this version of the implementation guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the implementation guide author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.
9964     */
9965    public ImplementationGuide setVersion(String value) { 
9966      if (Utilities.noString(value))
9967        this.version = null;
9968      else {
9969        if (this.version == null)
9970          this.version = new StringType();
9971        this.version.setValue(value);
9972      }
9973      return this;
9974    }
9975
9976    /**
9977     * @return {@link #name} (A natural language name identifying the implementation guide. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
9978     */
9979    public StringType getNameElement() { 
9980      if (this.name == null)
9981        if (Configuration.errorOnAutoCreate())
9982          throw new Error("Attempt to auto-create ImplementationGuide.name");
9983        else if (Configuration.doAutoCreate())
9984          this.name = new StringType(); // bb
9985      return this.name;
9986    }
9987
9988    public boolean hasNameElement() { 
9989      return this.name != null && !this.name.isEmpty();
9990    }
9991
9992    public boolean hasName() { 
9993      return this.name != null && !this.name.isEmpty();
9994    }
9995
9996    /**
9997     * @param value {@link #name} (A natural language name identifying the implementation guide. This name should be usable as an identifier for the module by machine processing applications such as code generation.). This is the underlying object with id, value and extensions. The accessor "getName" gives direct access to the value
9998     */
9999    public ImplementationGuide setNameElement(StringType value) { 
10000      this.name = value;
10001      return this;
10002    }
10003
10004    /**
10005     * @return A natural language name identifying the implementation guide. This name should be usable as an identifier for the module by machine processing applications such as code generation.
10006     */
10007    public String getName() { 
10008      return this.name == null ? null : this.name.getValue();
10009    }
10010
10011    /**
10012     * @param value A natural language name identifying the implementation guide. This name should be usable as an identifier for the module by machine processing applications such as code generation.
10013     */
10014    public ImplementationGuide setName(String value) { 
10015        if (this.name == null)
10016          this.name = new StringType();
10017        this.name.setValue(value);
10018      return this;
10019    }
10020
10021    /**
10022     * @return {@link #title} (A short, descriptive, user-friendly title for the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
10023     */
10024    public StringType getTitleElement() { 
10025      if (this.title == null)
10026        if (Configuration.errorOnAutoCreate())
10027          throw new Error("Attempt to auto-create ImplementationGuide.title");
10028        else if (Configuration.doAutoCreate())
10029          this.title = new StringType(); // bb
10030      return this.title;
10031    }
10032
10033    public boolean hasTitleElement() { 
10034      return this.title != null && !this.title.isEmpty();
10035    }
10036
10037    public boolean hasTitle() { 
10038      return this.title != null && !this.title.isEmpty();
10039    }
10040
10041    /**
10042     * @param value {@link #title} (A short, descriptive, user-friendly title for the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getTitle" gives direct access to the value
10043     */
10044    public ImplementationGuide setTitleElement(StringType value) { 
10045      this.title = value;
10046      return this;
10047    }
10048
10049    /**
10050     * @return A short, descriptive, user-friendly title for the implementation guide.
10051     */
10052    public String getTitle() { 
10053      return this.title == null ? null : this.title.getValue();
10054    }
10055
10056    /**
10057     * @param value A short, descriptive, user-friendly title for the implementation guide.
10058     */
10059    public ImplementationGuide setTitle(String value) { 
10060      if (Utilities.noString(value))
10061        this.title = null;
10062      else {
10063        if (this.title == null)
10064          this.title = new StringType();
10065        this.title.setValue(value);
10066      }
10067      return this;
10068    }
10069
10070    /**
10071     * @return {@link #status} (The status of this implementation guide. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
10072     */
10073    public Enumeration<PublicationStatus> getStatusElement() { 
10074      if (this.status == null)
10075        if (Configuration.errorOnAutoCreate())
10076          throw new Error("Attempt to auto-create ImplementationGuide.status");
10077        else if (Configuration.doAutoCreate())
10078          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory()); // bb
10079      return this.status;
10080    }
10081
10082    public boolean hasStatusElement() { 
10083      return this.status != null && !this.status.isEmpty();
10084    }
10085
10086    public boolean hasStatus() { 
10087      return this.status != null && !this.status.isEmpty();
10088    }
10089
10090    /**
10091     * @param value {@link #status} (The status of this implementation guide. Enables tracking the life-cycle of the content.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value
10092     */
10093    public ImplementationGuide setStatusElement(Enumeration<PublicationStatus> value) { 
10094      this.status = value;
10095      return this;
10096    }
10097
10098    /**
10099     * @return The status of this implementation guide. Enables tracking the life-cycle of the content.
10100     */
10101    public PublicationStatus getStatus() { 
10102      return this.status == null ? null : this.status.getValue();
10103    }
10104
10105    /**
10106     * @param value The status of this implementation guide. Enables tracking the life-cycle of the content.
10107     */
10108    public ImplementationGuide setStatus(PublicationStatus value) { 
10109        if (this.status == null)
10110          this.status = new Enumeration<PublicationStatus>(new PublicationStatusEnumFactory());
10111        this.status.setValue(value);
10112      return this;
10113    }
10114
10115    /**
10116     * @return {@link #experimental} (A Boolean value to indicate that this implementation guide is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
10117     */
10118    public BooleanType getExperimentalElement() { 
10119      if (this.experimental == null)
10120        if (Configuration.errorOnAutoCreate())
10121          throw new Error("Attempt to auto-create ImplementationGuide.experimental");
10122        else if (Configuration.doAutoCreate())
10123          this.experimental = new BooleanType(); // bb
10124      return this.experimental;
10125    }
10126
10127    public boolean hasExperimentalElement() { 
10128      return this.experimental != null && !this.experimental.isEmpty();
10129    }
10130
10131    public boolean hasExperimental() { 
10132      return this.experimental != null && !this.experimental.isEmpty();
10133    }
10134
10135    /**
10136     * @param value {@link #experimental} (A Boolean value to indicate that this implementation guide is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.). This is the underlying object with id, value and extensions. The accessor "getExperimental" gives direct access to the value
10137     */
10138    public ImplementationGuide setExperimentalElement(BooleanType value) { 
10139      this.experimental = value;
10140      return this;
10141    }
10142
10143    /**
10144     * @return A Boolean value to indicate that this implementation guide is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.
10145     */
10146    public boolean getExperimental() { 
10147      return this.experimental == null || this.experimental.isEmpty() ? false : this.experimental.getValue();
10148    }
10149
10150    /**
10151     * @param value A Boolean value to indicate that this implementation guide is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.
10152     */
10153    public ImplementationGuide setExperimental(boolean value) { 
10154        if (this.experimental == null)
10155          this.experimental = new BooleanType();
10156        this.experimental.setValue(value);
10157      return this;
10158    }
10159
10160    /**
10161     * @return {@link #date} (The date  (and optionally time) when the implementation guide was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
10162     */
10163    public DateTimeType getDateElement() { 
10164      if (this.date == null)
10165        if (Configuration.errorOnAutoCreate())
10166          throw new Error("Attempt to auto-create ImplementationGuide.date");
10167        else if (Configuration.doAutoCreate())
10168          this.date = new DateTimeType(); // bb
10169      return this.date;
10170    }
10171
10172    public boolean hasDateElement() { 
10173      return this.date != null && !this.date.isEmpty();
10174    }
10175
10176    public boolean hasDate() { 
10177      return this.date != null && !this.date.isEmpty();
10178    }
10179
10180    /**
10181     * @param value {@link #date} (The date  (and optionally time) when the implementation guide was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes.). This is the underlying object with id, value and extensions. The accessor "getDate" gives direct access to the value
10182     */
10183    public ImplementationGuide setDateElement(DateTimeType value) { 
10184      this.date = value;
10185      return this;
10186    }
10187
10188    /**
10189     * @return The date  (and optionally time) when the implementation guide was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes.
10190     */
10191    public Date getDate() { 
10192      return this.date == null ? null : this.date.getValue();
10193    }
10194
10195    /**
10196     * @param value The date  (and optionally time) when the implementation guide was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes.
10197     */
10198    public ImplementationGuide setDate(Date value) { 
10199      if (value == null)
10200        this.date = null;
10201      else {
10202        if (this.date == null)
10203          this.date = new DateTimeType();
10204        this.date.setValue(value);
10205      }
10206      return this;
10207    }
10208
10209    /**
10210     * @return {@link #publisher} (The name of the organization or individual that published the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
10211     */
10212    public StringType getPublisherElement() { 
10213      if (this.publisher == null)
10214        if (Configuration.errorOnAutoCreate())
10215          throw new Error("Attempt to auto-create ImplementationGuide.publisher");
10216        else if (Configuration.doAutoCreate())
10217          this.publisher = new StringType(); // bb
10218      return this.publisher;
10219    }
10220
10221    public boolean hasPublisherElement() { 
10222      return this.publisher != null && !this.publisher.isEmpty();
10223    }
10224
10225    public boolean hasPublisher() { 
10226      return this.publisher != null && !this.publisher.isEmpty();
10227    }
10228
10229    /**
10230     * @param value {@link #publisher} (The name of the organization or individual that published the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getPublisher" gives direct access to the value
10231     */
10232    public ImplementationGuide setPublisherElement(StringType value) { 
10233      this.publisher = value;
10234      return this;
10235    }
10236
10237    /**
10238     * @return The name of the organization or individual that published the implementation guide.
10239     */
10240    public String getPublisher() { 
10241      return this.publisher == null ? null : this.publisher.getValue();
10242    }
10243
10244    /**
10245     * @param value The name of the organization or individual that published the implementation guide.
10246     */
10247    public ImplementationGuide setPublisher(String value) { 
10248      if (Utilities.noString(value))
10249        this.publisher = null;
10250      else {
10251        if (this.publisher == null)
10252          this.publisher = new StringType();
10253        this.publisher.setValue(value);
10254      }
10255      return this;
10256    }
10257
10258    /**
10259     * @return {@link #contact} (Contact details to assist a user in finding and communicating with the publisher.)
10260     */
10261    public List<ContactDetail> getContact() { 
10262      if (this.contact == null)
10263        this.contact = new ArrayList<ContactDetail>();
10264      return this.contact;
10265    }
10266
10267    /**
10268     * @return Returns a reference to <code>this</code> for easy method chaining
10269     */
10270    public ImplementationGuide setContact(List<ContactDetail> theContact) { 
10271      this.contact = theContact;
10272      return this;
10273    }
10274
10275    public boolean hasContact() { 
10276      if (this.contact == null)
10277        return false;
10278      for (ContactDetail item : this.contact)
10279        if (!item.isEmpty())
10280          return true;
10281      return false;
10282    }
10283
10284    public ContactDetail addContact() { //3
10285      ContactDetail t = new ContactDetail();
10286      if (this.contact == null)
10287        this.contact = new ArrayList<ContactDetail>();
10288      this.contact.add(t);
10289      return t;
10290    }
10291
10292    public ImplementationGuide addContact(ContactDetail t) { //3
10293      if (t == null)
10294        return this;
10295      if (this.contact == null)
10296        this.contact = new ArrayList<ContactDetail>();
10297      this.contact.add(t);
10298      return this;
10299    }
10300
10301    /**
10302     * @return The first repetition of repeating field {@link #contact}, creating it if it does not already exist
10303     */
10304    public ContactDetail getContactFirstRep() { 
10305      if (getContact().isEmpty()) {
10306        addContact();
10307      }
10308      return getContact().get(0);
10309    }
10310
10311    /**
10312     * @return {@link #description} (A free text natural language description of the implementation guide from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
10313     */
10314    public MarkdownType getDescriptionElement() { 
10315      if (this.description == null)
10316        if (Configuration.errorOnAutoCreate())
10317          throw new Error("Attempt to auto-create ImplementationGuide.description");
10318        else if (Configuration.doAutoCreate())
10319          this.description = new MarkdownType(); // bb
10320      return this.description;
10321    }
10322
10323    public boolean hasDescriptionElement() { 
10324      return this.description != null && !this.description.isEmpty();
10325    }
10326
10327    public boolean hasDescription() { 
10328      return this.description != null && !this.description.isEmpty();
10329    }
10330
10331    /**
10332     * @param value {@link #description} (A free text natural language description of the implementation guide from a consumer's perspective.). This is the underlying object with id, value and extensions. The accessor "getDescription" gives direct access to the value
10333     */
10334    public ImplementationGuide setDescriptionElement(MarkdownType value) { 
10335      this.description = value;
10336      return this;
10337    }
10338
10339    /**
10340     * @return A free text natural language description of the implementation guide from a consumer's perspective.
10341     */
10342    public String getDescription() { 
10343      return this.description == null ? null : this.description.getValue();
10344    }
10345
10346    /**
10347     * @param value A free text natural language description of the implementation guide from a consumer's perspective.
10348     */
10349    public ImplementationGuide setDescription(String value) { 
10350      if (value == null)
10351        this.description = null;
10352      else {
10353        if (this.description == null)
10354          this.description = new MarkdownType();
10355        this.description.setValue(value);
10356      }
10357      return this;
10358    }
10359
10360    /**
10361     * @return {@link #useContext} (The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate implementation guide instances.)
10362     */
10363    public List<UsageContext> getUseContext() { 
10364      if (this.useContext == null)
10365        this.useContext = new ArrayList<UsageContext>();
10366      return this.useContext;
10367    }
10368
10369    /**
10370     * @return Returns a reference to <code>this</code> for easy method chaining
10371     */
10372    public ImplementationGuide setUseContext(List<UsageContext> theUseContext) { 
10373      this.useContext = theUseContext;
10374      return this;
10375    }
10376
10377    public boolean hasUseContext() { 
10378      if (this.useContext == null)
10379        return false;
10380      for (UsageContext item : this.useContext)
10381        if (!item.isEmpty())
10382          return true;
10383      return false;
10384    }
10385
10386    public UsageContext addUseContext() { //3
10387      UsageContext t = new UsageContext();
10388      if (this.useContext == null)
10389        this.useContext = new ArrayList<UsageContext>();
10390      this.useContext.add(t);
10391      return t;
10392    }
10393
10394    public ImplementationGuide addUseContext(UsageContext t) { //3
10395      if (t == null)
10396        return this;
10397      if (this.useContext == null)
10398        this.useContext = new ArrayList<UsageContext>();
10399      this.useContext.add(t);
10400      return this;
10401    }
10402
10403    /**
10404     * @return The first repetition of repeating field {@link #useContext}, creating it if it does not already exist
10405     */
10406    public UsageContext getUseContextFirstRep() { 
10407      if (getUseContext().isEmpty()) {
10408        addUseContext();
10409      }
10410      return getUseContext().get(0);
10411    }
10412
10413    /**
10414     * @return {@link #jurisdiction} (A legal or geographic region in which the implementation guide is intended to be used.)
10415     */
10416    public List<CodeableConcept> getJurisdiction() { 
10417      if (this.jurisdiction == null)
10418        this.jurisdiction = new ArrayList<CodeableConcept>();
10419      return this.jurisdiction;
10420    }
10421
10422    /**
10423     * @return Returns a reference to <code>this</code> for easy method chaining
10424     */
10425    public ImplementationGuide setJurisdiction(List<CodeableConcept> theJurisdiction) { 
10426      this.jurisdiction = theJurisdiction;
10427      return this;
10428    }
10429
10430    public boolean hasJurisdiction() { 
10431      if (this.jurisdiction == null)
10432        return false;
10433      for (CodeableConcept item : this.jurisdiction)
10434        if (!item.isEmpty())
10435          return true;
10436      return false;
10437    }
10438
10439    public CodeableConcept addJurisdiction() { //3
10440      CodeableConcept t = new CodeableConcept();
10441      if (this.jurisdiction == null)
10442        this.jurisdiction = new ArrayList<CodeableConcept>();
10443      this.jurisdiction.add(t);
10444      return t;
10445    }
10446
10447    public ImplementationGuide addJurisdiction(CodeableConcept t) { //3
10448      if (t == null)
10449        return this;
10450      if (this.jurisdiction == null)
10451        this.jurisdiction = new ArrayList<CodeableConcept>();
10452      this.jurisdiction.add(t);
10453      return this;
10454    }
10455
10456    /**
10457     * @return The first repetition of repeating field {@link #jurisdiction}, creating it if it does not already exist
10458     */
10459    public CodeableConcept getJurisdictionFirstRep() { 
10460      if (getJurisdiction().isEmpty()) {
10461        addJurisdiction();
10462      }
10463      return getJurisdiction().get(0);
10464    }
10465
10466    /**
10467     * @return {@link #copyright} (A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
10468     */
10469    public MarkdownType getCopyrightElement() { 
10470      if (this.copyright == null)
10471        if (Configuration.errorOnAutoCreate())
10472          throw new Error("Attempt to auto-create ImplementationGuide.copyright");
10473        else if (Configuration.doAutoCreate())
10474          this.copyright = new MarkdownType(); // bb
10475      return this.copyright;
10476    }
10477
10478    public boolean hasCopyrightElement() { 
10479      return this.copyright != null && !this.copyright.isEmpty();
10480    }
10481
10482    public boolean hasCopyright() { 
10483      return this.copyright != null && !this.copyright.isEmpty();
10484    }
10485
10486    /**
10487     * @param value {@link #copyright} (A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide.). This is the underlying object with id, value and extensions. The accessor "getCopyright" gives direct access to the value
10488     */
10489    public ImplementationGuide setCopyrightElement(MarkdownType value) { 
10490      this.copyright = value;
10491      return this;
10492    }
10493
10494    /**
10495     * @return A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide.
10496     */
10497    public String getCopyright() { 
10498      return this.copyright == null ? null : this.copyright.getValue();
10499    }
10500
10501    /**
10502     * @param value A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide.
10503     */
10504    public ImplementationGuide setCopyright(String value) { 
10505      if (value == null)
10506        this.copyright = null;
10507      else {
10508        if (this.copyright == null)
10509          this.copyright = new MarkdownType();
10510        this.copyright.setValue(value);
10511      }
10512      return this;
10513    }
10514
10515    /**
10516     * @return {@link #packageId} (The NPM package name for this Implementation Guide, used in the NPM package distribution, which is the primary mechanism by which FHIR based tooling manages IG dependencies. This value must be globally unique, and should be assigned with care.). This is the underlying object with id, value and extensions. The accessor "getPackageId" gives direct access to the value
10517     */
10518    public IdType getPackageIdElement() { 
10519      if (this.packageId == null)
10520        if (Configuration.errorOnAutoCreate())
10521          throw new Error("Attempt to auto-create ImplementationGuide.packageId");
10522        else if (Configuration.doAutoCreate())
10523          this.packageId = new IdType(); // bb
10524      return this.packageId;
10525    }
10526
10527    public boolean hasPackageIdElement() { 
10528      return this.packageId != null && !this.packageId.isEmpty();
10529    }
10530
10531    public boolean hasPackageId() { 
10532      return this.packageId != null && !this.packageId.isEmpty();
10533    }
10534
10535    /**
10536     * @param value {@link #packageId} (The NPM package name for this Implementation Guide, used in the NPM package distribution, which is the primary mechanism by which FHIR based tooling manages IG dependencies. This value must be globally unique, and should be assigned with care.). This is the underlying object with id, value and extensions. The accessor "getPackageId" gives direct access to the value
10537     */
10538    public ImplementationGuide setPackageIdElement(IdType value) { 
10539      this.packageId = value;
10540      return this;
10541    }
10542
10543    /**
10544     * @return The NPM package name for this Implementation Guide, used in the NPM package distribution, which is the primary mechanism by which FHIR based tooling manages IG dependencies. This value must be globally unique, and should be assigned with care.
10545     */
10546    public String getPackageId() { 
10547      return this.packageId == null ? null : this.packageId.getValue();
10548    }
10549
10550    /**
10551     * @param value The NPM package name for this Implementation Guide, used in the NPM package distribution, which is the primary mechanism by which FHIR based tooling manages IG dependencies. This value must be globally unique, and should be assigned with care.
10552     */
10553    public ImplementationGuide setPackageId(String value) { 
10554        if (this.packageId == null)
10555          this.packageId = new IdType();
10556        this.packageId.setValue(value);
10557      return this;
10558    }
10559
10560    /**
10561     * @return {@link #license} (The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'.). This is the underlying object with id, value and extensions. The accessor "getLicense" gives direct access to the value
10562     */
10563    public Enumeration<SPDXLicense> getLicenseElement() { 
10564      if (this.license == null)
10565        if (Configuration.errorOnAutoCreate())
10566          throw new Error("Attempt to auto-create ImplementationGuide.license");
10567        else if (Configuration.doAutoCreate())
10568          this.license = new Enumeration<SPDXLicense>(new SPDXLicenseEnumFactory()); // bb
10569      return this.license;
10570    }
10571
10572    public boolean hasLicenseElement() { 
10573      return this.license != null && !this.license.isEmpty();
10574    }
10575
10576    public boolean hasLicense() { 
10577      return this.license != null && !this.license.isEmpty();
10578    }
10579
10580    /**
10581     * @param value {@link #license} (The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'.). This is the underlying object with id, value and extensions. The accessor "getLicense" gives direct access to the value
10582     */
10583    public ImplementationGuide setLicenseElement(Enumeration<SPDXLicense> value) { 
10584      this.license = value;
10585      return this;
10586    }
10587
10588    /**
10589     * @return The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'.
10590     */
10591    public SPDXLicense getLicense() { 
10592      return this.license == null ? null : this.license.getValue();
10593    }
10594
10595    /**
10596     * @param value The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'.
10597     */
10598    public ImplementationGuide setLicense(SPDXLicense value) { 
10599      if (value == null)
10600        this.license = null;
10601      else {
10602        if (this.license == null)
10603          this.license = new Enumeration<SPDXLicense>(new SPDXLicenseEnumFactory());
10604        this.license.setValue(value);
10605      }
10606      return this;
10607    }
10608
10609    /**
10610     * @return {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.1.0. for this version.)
10611     */
10612    public List<Enumeration<FHIRVersion>> getFhirVersion() { 
10613      if (this.fhirVersion == null)
10614        this.fhirVersion = new ArrayList<Enumeration<FHIRVersion>>();
10615      return this.fhirVersion;
10616    }
10617
10618    /**
10619     * @return Returns a reference to <code>this</code> for easy method chaining
10620     */
10621    public ImplementationGuide setFhirVersion(List<Enumeration<FHIRVersion>> theFhirVersion) { 
10622      this.fhirVersion = theFhirVersion;
10623      return this;
10624    }
10625
10626    public boolean hasFhirVersion() { 
10627      if (this.fhirVersion == null)
10628        return false;
10629      for (Enumeration<FHIRVersion> item : this.fhirVersion)
10630        if (!item.isEmpty())
10631          return true;
10632      return false;
10633    }
10634
10635    /**
10636     * @return {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.1.0. for this version.)
10637     */
10638    public Enumeration<FHIRVersion> addFhirVersionElement() {//2 
10639      Enumeration<FHIRVersion> t = new Enumeration<FHIRVersion>(new FHIRVersionEnumFactory());
10640      if (this.fhirVersion == null)
10641        this.fhirVersion = new ArrayList<Enumeration<FHIRVersion>>();
10642      this.fhirVersion.add(t);
10643      return t;
10644    }
10645
10646    /**
10647     * @param value {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.1.0. for this version.)
10648     */
10649    public ImplementationGuide addFhirVersion(FHIRVersion value) { //1
10650      Enumeration<FHIRVersion> t = new Enumeration<FHIRVersion>(new FHIRVersionEnumFactory());
10651      t.setValue(value);
10652      if (this.fhirVersion == null)
10653        this.fhirVersion = new ArrayList<Enumeration<FHIRVersion>>();
10654      this.fhirVersion.add(t);
10655      return this;
10656    }
10657
10658    /**
10659     * @param value {@link #fhirVersion} (The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.1.0. for this version.)
10660     */
10661    public boolean hasFhirVersion(FHIRVersion value) { 
10662      if (this.fhirVersion == null)
10663        return false;
10664      for (Enumeration<FHIRVersion> v : this.fhirVersion)
10665        if (v.getValue().equals(value)) // code
10666          return true;
10667      return false;
10668    }
10669
10670    /**
10671     * @return {@link #dependsOn} (Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides.)
10672     */
10673    public List<ImplementationGuideDependsOnComponent> getDependsOn() { 
10674      if (this.dependsOn == null)
10675        this.dependsOn = new ArrayList<ImplementationGuideDependsOnComponent>();
10676      return this.dependsOn;
10677    }
10678
10679    /**
10680     * @return Returns a reference to <code>this</code> for easy method chaining
10681     */
10682    public ImplementationGuide setDependsOn(List<ImplementationGuideDependsOnComponent> theDependsOn) { 
10683      this.dependsOn = theDependsOn;
10684      return this;
10685    }
10686
10687    public boolean hasDependsOn() { 
10688      if (this.dependsOn == null)
10689        return false;
10690      for (ImplementationGuideDependsOnComponent item : this.dependsOn)
10691        if (!item.isEmpty())
10692          return true;
10693      return false;
10694    }
10695
10696    public ImplementationGuideDependsOnComponent addDependsOn() { //3
10697      ImplementationGuideDependsOnComponent t = new ImplementationGuideDependsOnComponent();
10698      if (this.dependsOn == null)
10699        this.dependsOn = new ArrayList<ImplementationGuideDependsOnComponent>();
10700      this.dependsOn.add(t);
10701      return t;
10702    }
10703
10704    public ImplementationGuide addDependsOn(ImplementationGuideDependsOnComponent t) { //3
10705      if (t == null)
10706        return this;
10707      if (this.dependsOn == null)
10708        this.dependsOn = new ArrayList<ImplementationGuideDependsOnComponent>();
10709      this.dependsOn.add(t);
10710      return this;
10711    }
10712
10713    /**
10714     * @return The first repetition of repeating field {@link #dependsOn}, creating it if it does not already exist
10715     */
10716    public ImplementationGuideDependsOnComponent getDependsOnFirstRep() { 
10717      if (getDependsOn().isEmpty()) {
10718        addDependsOn();
10719      }
10720      return getDependsOn().get(0);
10721    }
10722
10723    /**
10724     * @return {@link #global} (A set of profiles that all resources covered by this implementation guide must conform to.)
10725     */
10726    public List<ImplementationGuideGlobalComponent> getGlobal() { 
10727      if (this.global == null)
10728        this.global = new ArrayList<ImplementationGuideGlobalComponent>();
10729      return this.global;
10730    }
10731
10732    /**
10733     * @return Returns a reference to <code>this</code> for easy method chaining
10734     */
10735    public ImplementationGuide setGlobal(List<ImplementationGuideGlobalComponent> theGlobal) { 
10736      this.global = theGlobal;
10737      return this;
10738    }
10739
10740    public boolean hasGlobal() { 
10741      if (this.global == null)
10742        return false;
10743      for (ImplementationGuideGlobalComponent item : this.global)
10744        if (!item.isEmpty())
10745          return true;
10746      return false;
10747    }
10748
10749    public ImplementationGuideGlobalComponent addGlobal() { //3
10750      ImplementationGuideGlobalComponent t = new ImplementationGuideGlobalComponent();
10751      if (this.global == null)
10752        this.global = new ArrayList<ImplementationGuideGlobalComponent>();
10753      this.global.add(t);
10754      return t;
10755    }
10756
10757    public ImplementationGuide addGlobal(ImplementationGuideGlobalComponent t) { //3
10758      if (t == null)
10759        return this;
10760      if (this.global == null)
10761        this.global = new ArrayList<ImplementationGuideGlobalComponent>();
10762      this.global.add(t);
10763      return this;
10764    }
10765
10766    /**
10767     * @return The first repetition of repeating field {@link #global}, creating it if it does not already exist
10768     */
10769    public ImplementationGuideGlobalComponent getGlobalFirstRep() { 
10770      if (getGlobal().isEmpty()) {
10771        addGlobal();
10772      }
10773      return getGlobal().get(0);
10774    }
10775
10776    /**
10777     * @return {@link #definition} (The information needed by an IG publisher tool to publish the whole implementation guide.)
10778     */
10779    public ImplementationGuideDefinitionComponent getDefinition() { 
10780      if (this.definition == null)
10781        if (Configuration.errorOnAutoCreate())
10782          throw new Error("Attempt to auto-create ImplementationGuide.definition");
10783        else if (Configuration.doAutoCreate())
10784          this.definition = new ImplementationGuideDefinitionComponent(); // cc
10785      return this.definition;
10786    }
10787
10788    public boolean hasDefinition() { 
10789      return this.definition != null && !this.definition.isEmpty();
10790    }
10791
10792    /**
10793     * @param value {@link #definition} (The information needed by an IG publisher tool to publish the whole implementation guide.)
10794     */
10795    public ImplementationGuide setDefinition(ImplementationGuideDefinitionComponent value) { 
10796      this.definition = value;
10797      return this;
10798    }
10799
10800    /**
10801     * @return {@link #manifest} (Information about an assembled implementation guide, created by the publication tooling.)
10802     */
10803    public ImplementationGuideManifestComponent getManifest() { 
10804      if (this.manifest == null)
10805        if (Configuration.errorOnAutoCreate())
10806          throw new Error("Attempt to auto-create ImplementationGuide.manifest");
10807        else if (Configuration.doAutoCreate())
10808          this.manifest = new ImplementationGuideManifestComponent(); // cc
10809      return this.manifest;
10810    }
10811
10812    public boolean hasManifest() { 
10813      return this.manifest != null && !this.manifest.isEmpty();
10814    }
10815
10816    /**
10817     * @param value {@link #manifest} (Information about an assembled implementation guide, created by the publication tooling.)
10818     */
10819    public ImplementationGuide setManifest(ImplementationGuideManifestComponent value) { 
10820      this.manifest = value;
10821      return this;
10822    }
10823
10824      protected void listChildren(List<Property> children) {
10825        super.listChildren(children);
10826        children.add(new Property("url", "uri", "An absolute URI that is used to identify this implementation guide when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this implementation guide is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the implementation guide is stored on different servers.", 0, 1, url));
10827        children.add(new Property("version", "string", "The identifier that is used to identify this version of the implementation guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the implementation guide author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version));
10828        children.add(new Property("name", "string", "A natural language name identifying the implementation guide. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name));
10829        children.add(new Property("title", "string", "A short, descriptive, user-friendly title for the implementation guide.", 0, 1, title));
10830        children.add(new Property("status", "code", "The status of this implementation guide. Enables tracking the life-cycle of the content.", 0, 1, status));
10831        children.add(new Property("experimental", "boolean", "A Boolean value to indicate that this implementation guide is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental));
10832        children.add(new Property("date", "dateTime", "The date  (and optionally time) when the implementation guide was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes.", 0, 1, date));
10833        children.add(new Property("publisher", "string", "The name of the organization or individual that published the implementation guide.", 0, 1, publisher));
10834        children.add(new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact));
10835        children.add(new Property("description", "markdown", "A free text natural language description of the implementation guide from a consumer's perspective.", 0, 1, description));
10836        children.add(new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate implementation guide instances.", 0, java.lang.Integer.MAX_VALUE, useContext));
10837        children.add(new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the implementation guide is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction));
10838        children.add(new Property("copyright", "markdown", "A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide.", 0, 1, copyright));
10839        children.add(new Property("packageId", "id", "The NPM package name for this Implementation Guide, used in the NPM package distribution, which is the primary mechanism by which FHIR based tooling manages IG dependencies. This value must be globally unique, and should be assigned with care.", 0, 1, packageId));
10840        children.add(new Property("license", "code", "The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'.", 0, 1, license));
10841        children.add(new Property("fhirVersion", "code", "The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.1.0. for this version.", 0, java.lang.Integer.MAX_VALUE, fhirVersion));
10842        children.add(new Property("dependsOn", "", "Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides.", 0, java.lang.Integer.MAX_VALUE, dependsOn));
10843        children.add(new Property("global", "", "A set of profiles that all resources covered by this implementation guide must conform to.", 0, java.lang.Integer.MAX_VALUE, global));
10844        children.add(new Property("definition", "", "The information needed by an IG publisher tool to publish the whole implementation guide.", 0, 1, definition));
10845        children.add(new Property("manifest", "", "Information about an assembled implementation guide, created by the publication tooling.", 0, 1, manifest));
10846      }
10847
10848      @Override
10849      public Property getNamedProperty(int _hash, String _name, boolean _checkValid) throws FHIRException {
10850        switch (_hash) {
10851        case 116079: /*url*/  return new Property("url", "uri", "An absolute URI that is used to identify this implementation guide when it is referenced in a specification, model, design or an instance; also called its canonical identifier. This SHOULD be globally unique and SHOULD be a literal address at which at which an authoritative instance of this implementation guide is (or will be) published. This URL can be the target of a canonical reference. It SHALL remain the same when the implementation guide is stored on different servers.", 0, 1, url);
10852        case 351608024: /*version*/  return new Property("version", "string", "The identifier that is used to identify this version of the implementation guide when it is referenced in a specification, model, design or instance. This is an arbitrary value managed by the implementation guide author and is not expected to be globally unique. For example, it might be a timestamp (e.g. yyyymmdd) if a managed version is not available. There is also no expectation that versions can be placed in a lexicographical sequence.", 0, 1, version);
10853        case 3373707: /*name*/  return new Property("name", "string", "A natural language name identifying the implementation guide. This name should be usable as an identifier for the module by machine processing applications such as code generation.", 0, 1, name);
10854        case 110371416: /*title*/  return new Property("title", "string", "A short, descriptive, user-friendly title for the implementation guide.", 0, 1, title);
10855        case -892481550: /*status*/  return new Property("status", "code", "The status of this implementation guide. Enables tracking the life-cycle of the content.", 0, 1, status);
10856        case -404562712: /*experimental*/  return new Property("experimental", "boolean", "A Boolean value to indicate that this implementation guide is authored for testing purposes (or education/evaluation/marketing) and is not intended to be used for genuine usage.", 0, 1, experimental);
10857        case 3076014: /*date*/  return new Property("date", "dateTime", "The date  (and optionally time) when the implementation guide was published. The date must change when the business version changes and it must change if the status code changes. In addition, it should change when the substantive content of the implementation guide changes.", 0, 1, date);
10858        case 1447404028: /*publisher*/  return new Property("publisher", "string", "The name of the organization or individual that published the implementation guide.", 0, 1, publisher);
10859        case 951526432: /*contact*/  return new Property("contact", "ContactDetail", "Contact details to assist a user in finding and communicating with the publisher.", 0, java.lang.Integer.MAX_VALUE, contact);
10860        case -1724546052: /*description*/  return new Property("description", "markdown", "A free text natural language description of the implementation guide from a consumer's perspective.", 0, 1, description);
10861        case -669707736: /*useContext*/  return new Property("useContext", "UsageContext", "The content was developed with a focus and intent of supporting the contexts that are listed. These contexts may be general categories (gender, age, ...) or may be references to specific programs (insurance plans, studies, ...) and may be used to assist with indexing and searching for appropriate implementation guide instances.", 0, java.lang.Integer.MAX_VALUE, useContext);
10862        case -507075711: /*jurisdiction*/  return new Property("jurisdiction", "CodeableConcept", "A legal or geographic region in which the implementation guide is intended to be used.", 0, java.lang.Integer.MAX_VALUE, jurisdiction);
10863        case 1522889671: /*copyright*/  return new Property("copyright", "markdown", "A copyright statement relating to the implementation guide and/or its contents. Copyright statements are generally legal restrictions on the use and publishing of the implementation guide.", 0, 1, copyright);
10864        case 1802060801: /*packageId*/  return new Property("packageId", "id", "The NPM package name for this Implementation Guide, used in the NPM package distribution, which is the primary mechanism by which FHIR based tooling manages IG dependencies. This value must be globally unique, and should be assigned with care.", 0, 1, packageId);
10865        case 166757441: /*license*/  return new Property("license", "code", "The license that applies to this Implementation Guide, using an SPDX license code, or 'not-open-source'.", 0, 1, license);
10866        case 461006061: /*fhirVersion*/  return new Property("fhirVersion", "code", "The version(s) of the FHIR specification that this ImplementationGuide targets - e.g. describes how to use. The value of this element is the formal version of the specification, without the revision number, e.g. [publication].[major].[minor], which is 4.1.0. for this version.", 0, java.lang.Integer.MAX_VALUE, fhirVersion);
10867        case -1109214266: /*dependsOn*/  return new Property("dependsOn", "", "Another implementation guide that this implementation depends on. Typically, an implementation guide uses value sets, profiles etc.defined in other implementation guides.", 0, java.lang.Integer.MAX_VALUE, dependsOn);
10868        case -1243020381: /*global*/  return new Property("global", "", "A set of profiles that all resources covered by this implementation guide must conform to.", 0, java.lang.Integer.MAX_VALUE, global);
10869        case -1014418093: /*definition*/  return new Property("definition", "", "The information needed by an IG publisher tool to publish the whole implementation guide.", 0, 1, definition);
10870        case 130625071: /*manifest*/  return new Property("manifest", "", "Information about an assembled implementation guide, created by the publication tooling.", 0, 1, manifest);
10871        default: return super.getNamedProperty(_hash, _name, _checkValid);
10872        }
10873
10874      }
10875
10876      @Override
10877      public Base[] getProperty(int hash, String name, boolean checkValid) throws FHIRException {
10878        switch (hash) {
10879        case 116079: /*url*/ return this.url == null ? new Base[0] : new Base[] {this.url}; // UriType
10880        case 351608024: /*version*/ return this.version == null ? new Base[0] : new Base[] {this.version}; // StringType
10881        case 3373707: /*name*/ return this.name == null ? new Base[0] : new Base[] {this.name}; // StringType
10882        case 110371416: /*title*/ return this.title == null ? new Base[0] : new Base[] {this.title}; // StringType
10883        case -892481550: /*status*/ return this.status == null ? new Base[0] : new Base[] {this.status}; // Enumeration<PublicationStatus>
10884        case -404562712: /*experimental*/ return this.experimental == null ? new Base[0] : new Base[] {this.experimental}; // BooleanType
10885        case 3076014: /*date*/ return this.date == null ? new Base[0] : new Base[] {this.date}; // DateTimeType
10886        case 1447404028: /*publisher*/ return this.publisher == null ? new Base[0] : new Base[] {this.publisher}; // StringType
10887        case 951526432: /*contact*/ return this.contact == null ? new Base[0] : this.contact.toArray(new Base[this.contact.size()]); // ContactDetail
10888        case -1724546052: /*description*/ return this.description == null ? new Base[0] : new Base[] {this.description}; // MarkdownType
10889        case -669707736: /*useContext*/ return this.useContext == null ? new Base[0] : this.useContext.toArray(new Base[this.useContext.size()]); // UsageContext
10890        case -507075711: /*jurisdiction*/ return this.jurisdiction == null ? new Base[0] : this.jurisdiction.toArray(new Base[this.jurisdiction.size()]); // CodeableConcept
10891        case 1522889671: /*copyright*/ return this.copyright == null ? new Base[0] : new Base[] {this.copyright}; // MarkdownType
10892        case 1802060801: /*packageId*/ return this.packageId == null ? new Base[0] : new Base[] {this.packageId}; // IdType
10893        case 166757441: /*license*/ return this.license == null ? new Base[0] : new Base[] {this.license}; // Enumeration<SPDXLicense>
10894        case 461006061: /*fhirVersion*/ return this.fhirVersion == null ? new Base[0] : this.fhirVersion.toArray(new Base[this.fhirVersion.size()]); // Enumeration<FHIRVersion>
10895        case -1109214266: /*dependsOn*/ return this.dependsOn == null ? new Base[0] : this.dependsOn.toArray(new Base[this.dependsOn.size()]); // ImplementationGuideDependsOnComponent
10896        case -1243020381: /*global*/ return this.global == null ? new Base[0] : this.global.toArray(new Base[this.global.size()]); // ImplementationGuideGlobalComponent
10897        case -1014418093: /*definition*/ return this.definition == null ? new Base[0] : new Base[] {this.definition}; // ImplementationGuideDefinitionComponent
10898        case 130625071: /*manifest*/ return this.manifest == null ? new Base[0] : new Base[] {this.manifest}; // ImplementationGuideManifestComponent
10899        default: return super.getProperty(hash, name, checkValid);
10900        }
10901
10902      }
10903
10904      @Override
10905      public Base setProperty(int hash, String name, Base value) throws FHIRException {
10906        switch (hash) {
10907        case 116079: // url
10908          this.url = castToUri(value); // UriType
10909          return value;
10910        case 351608024: // version
10911          this.version = castToString(value); // StringType
10912          return value;
10913        case 3373707: // name
10914          this.name = castToString(value); // StringType
10915          return value;
10916        case 110371416: // title
10917          this.title = castToString(value); // StringType
10918          return value;
10919        case -892481550: // status
10920          value = new PublicationStatusEnumFactory().fromType(castToCode(value));
10921          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
10922          return value;
10923        case -404562712: // experimental
10924          this.experimental = castToBoolean(value); // BooleanType
10925          return value;
10926        case 3076014: // date
10927          this.date = castToDateTime(value); // DateTimeType
10928          return value;
10929        case 1447404028: // publisher
10930          this.publisher = castToString(value); // StringType
10931          return value;
10932        case 951526432: // contact
10933          this.getContact().add(castToContactDetail(value)); // ContactDetail
10934          return value;
10935        case -1724546052: // description
10936          this.description = castToMarkdown(value); // MarkdownType
10937          return value;
10938        case -669707736: // useContext
10939          this.getUseContext().add(castToUsageContext(value)); // UsageContext
10940          return value;
10941        case -507075711: // jurisdiction
10942          this.getJurisdiction().add(castToCodeableConcept(value)); // CodeableConcept
10943          return value;
10944        case 1522889671: // copyright
10945          this.copyright = castToMarkdown(value); // MarkdownType
10946          return value;
10947        case 1802060801: // packageId
10948          this.packageId = castToId(value); // IdType
10949          return value;
10950        case 166757441: // license
10951          value = new SPDXLicenseEnumFactory().fromType(castToCode(value));
10952          this.license = (Enumeration) value; // Enumeration<SPDXLicense>
10953          return value;
10954        case 461006061: // fhirVersion
10955          value = new FHIRVersionEnumFactory().fromType(castToCode(value));
10956          this.getFhirVersion().add((Enumeration) value); // Enumeration<FHIRVersion>
10957          return value;
10958        case -1109214266: // dependsOn
10959          this.getDependsOn().add((ImplementationGuideDependsOnComponent) value); // ImplementationGuideDependsOnComponent
10960          return value;
10961        case -1243020381: // global
10962          this.getGlobal().add((ImplementationGuideGlobalComponent) value); // ImplementationGuideGlobalComponent
10963          return value;
10964        case -1014418093: // definition
10965          this.definition = (ImplementationGuideDefinitionComponent) value; // ImplementationGuideDefinitionComponent
10966          return value;
10967        case 130625071: // manifest
10968          this.manifest = (ImplementationGuideManifestComponent) value; // ImplementationGuideManifestComponent
10969          return value;
10970        default: return super.setProperty(hash, name, value);
10971        }
10972
10973      }
10974
10975      @Override
10976      public Base setProperty(String name, Base value) throws FHIRException {
10977        if (name.equals("url")) {
10978          this.url = castToUri(value); // UriType
10979        } else if (name.equals("version")) {
10980          this.version = castToString(value); // StringType
10981        } else if (name.equals("name")) {
10982          this.name = castToString(value); // StringType
10983        } else if (name.equals("title")) {
10984          this.title = castToString(value); // StringType
10985        } else if (name.equals("status")) {
10986          value = new PublicationStatusEnumFactory().fromType(castToCode(value));
10987          this.status = (Enumeration) value; // Enumeration<PublicationStatus>
10988        } else if (name.equals("experimental")) {
10989          this.experimental = castToBoolean(value); // BooleanType
10990        } else if (name.equals("date")) {
10991          this.date = castToDateTime(value); // DateTimeType
10992        } else if (name.equals("publisher")) {
10993          this.publisher = castToString(value); // StringType
10994        } else if (name.equals("contact")) {
10995          this.getContact().add(castToContactDetail(value));
10996        } else if (name.equals("description")) {
10997          this.description = castToMarkdown(value); // MarkdownType
10998        } else if (name.equals("useContext")) {
10999          this.getUseContext().add(castToUsageContext(value));
11000        } else if (name.equals("jurisdiction")) {
11001          this.getJurisdiction().add(castToCodeableConcept(value));
11002        } else if (name.equals("copyright")) {
11003          this.copyright = castToMarkdown(value); // MarkdownType
11004        } else if (name.equals("packageId")) {
11005          this.packageId = castToId(value); // IdType
11006        } else if (name.equals("license")) {
11007          value = new SPDXLicenseEnumFactory().fromType(castToCode(value));
11008          this.license = (Enumeration) value; // Enumeration<SPDXLicense>
11009        } else if (name.equals("fhirVersion")) {
11010          value = new FHIRVersionEnumFactory().fromType(castToCode(value));
11011          this.getFhirVersion().add((Enumeration) value);
11012        } else if (name.equals("dependsOn")) {
11013          this.getDependsOn().add((ImplementationGuideDependsOnComponent) value);
11014        } else if (name.equals("global")) {
11015          this.getGlobal().add((ImplementationGuideGlobalComponent) value);
11016        } else if (name.equals("definition")) {
11017          this.definition = (ImplementationGuideDefinitionComponent) value; // ImplementationGuideDefinitionComponent
11018        } else if (name.equals("manifest")) {
11019          this.manifest = (ImplementationGuideManifestComponent) value; // ImplementationGuideManifestComponent
11020        } else
11021          return super.setProperty(name, value);
11022        return value;
11023      }
11024
11025      @Override
11026      public Base makeProperty(int hash, String name) throws FHIRException {
11027        switch (hash) {
11028        case 116079:  return getUrlElement();
11029        case 351608024:  return getVersionElement();
11030        case 3373707:  return getNameElement();
11031        case 110371416:  return getTitleElement();
11032        case -892481550:  return getStatusElement();
11033        case -404562712:  return getExperimentalElement();
11034        case 3076014:  return getDateElement();
11035        case 1447404028:  return getPublisherElement();
11036        case 951526432:  return addContact(); 
11037        case -1724546052:  return getDescriptionElement();
11038        case -669707736:  return addUseContext(); 
11039        case -507075711:  return addJurisdiction(); 
11040        case 1522889671:  return getCopyrightElement();
11041        case 1802060801:  return getPackageIdElement();
11042        case 166757441:  return getLicenseElement();
11043        case 461006061:  return addFhirVersionElement();
11044        case -1109214266:  return addDependsOn(); 
11045        case -1243020381:  return addGlobal(); 
11046        case -1014418093:  return getDefinition();
11047        case 130625071:  return getManifest();
11048        default: return super.makeProperty(hash, name);
11049        }
11050
11051      }
11052
11053      @Override
11054      public String[] getTypesForProperty(int hash, String name) throws FHIRException {
11055        switch (hash) {
11056        case 116079: /*url*/ return new String[] {"uri"};
11057        case 351608024: /*version*/ return new String[] {"string"};
11058        case 3373707: /*name*/ return new String[] {"string"};
11059        case 110371416: /*title*/ return new String[] {"string"};
11060        case -892481550: /*status*/ return new String[] {"code"};
11061        case -404562712: /*experimental*/ return new String[] {"boolean"};
11062        case 3076014: /*date*/ return new String[] {"dateTime"};
11063        case 1447404028: /*publisher*/ return new String[] {"string"};
11064        case 951526432: /*contact*/ return new String[] {"ContactDetail"};
11065        case -1724546052: /*description*/ return new String[] {"markdown"};
11066        case -669707736: /*useContext*/ return new String[] {"UsageContext"};
11067        case -507075711: /*jurisdiction*/ return new String[] {"CodeableConcept"};
11068        case 1522889671: /*copyright*/ return new String[] {"markdown"};
11069        case 1802060801: /*packageId*/ return new String[] {"id"};
11070        case 166757441: /*license*/ return new String[] {"code"};
11071        case 461006061: /*fhirVersion*/ return new String[] {"code"};
11072        case -1109214266: /*dependsOn*/ return new String[] {};
11073        case -1243020381: /*global*/ return new String[] {};
11074        case -1014418093: /*definition*/ return new String[] {};
11075        case 130625071: /*manifest*/ return new String[] {};
11076        default: return super.getTypesForProperty(hash, name);
11077        }
11078
11079      }
11080
11081      @Override
11082      public Base addChild(String name) throws FHIRException {
11083        if (name.equals("url")) {
11084          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.url");
11085        }
11086        else if (name.equals("version")) {
11087          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.version");
11088        }
11089        else if (name.equals("name")) {
11090          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.name");
11091        }
11092        else if (name.equals("title")) {
11093          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.title");
11094        }
11095        else if (name.equals("status")) {
11096          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.status");
11097        }
11098        else if (name.equals("experimental")) {
11099          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.experimental");
11100        }
11101        else if (name.equals("date")) {
11102          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.date");
11103        }
11104        else if (name.equals("publisher")) {
11105          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.publisher");
11106        }
11107        else if (name.equals("contact")) {
11108          return addContact();
11109        }
11110        else if (name.equals("description")) {
11111          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.description");
11112        }
11113        else if (name.equals("useContext")) {
11114          return addUseContext();
11115        }
11116        else if (name.equals("jurisdiction")) {
11117          return addJurisdiction();
11118        }
11119        else if (name.equals("copyright")) {
11120          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.copyright");
11121        }
11122        else if (name.equals("packageId")) {
11123          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.packageId");
11124        }
11125        else if (name.equals("license")) {
11126          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.license");
11127        }
11128        else if (name.equals("fhirVersion")) {
11129          throw new FHIRException("Cannot call addChild on a primitive type ImplementationGuide.fhirVersion");
11130        }
11131        else if (name.equals("dependsOn")) {
11132          return addDependsOn();
11133        }
11134        else if (name.equals("global")) {
11135          return addGlobal();
11136        }
11137        else if (name.equals("definition")) {
11138          this.definition = new ImplementationGuideDefinitionComponent();
11139          return this.definition;
11140        }
11141        else if (name.equals("manifest")) {
11142          this.manifest = new ImplementationGuideManifestComponent();
11143          return this.manifest;
11144        }
11145        else
11146          return super.addChild(name);
11147      }
11148
11149  public String fhirType() {
11150    return "ImplementationGuide";
11151
11152  }
11153
11154      public ImplementationGuide copy() {
11155        ImplementationGuide dst = new ImplementationGuide();
11156        copyValues(dst);
11157        return dst;
11158      }
11159
11160      public void copyValues(ImplementationGuide dst) {
11161        super.copyValues(dst);
11162        dst.url = url == null ? null : url.copy();
11163        dst.version = version == null ? null : version.copy();
11164        dst.name = name == null ? null : name.copy();
11165        dst.title = title == null ? null : title.copy();
11166        dst.status = status == null ? null : status.copy();
11167        dst.experimental = experimental == null ? null : experimental.copy();
11168        dst.date = date == null ? null : date.copy();
11169        dst.publisher = publisher == null ? null : publisher.copy();
11170        if (contact != null) {
11171          dst.contact = new ArrayList<ContactDetail>();
11172          for (ContactDetail i : contact)
11173            dst.contact.add(i.copy());
11174        };
11175        dst.description = description == null ? null : description.copy();
11176        if (useContext != null) {
11177          dst.useContext = new ArrayList<UsageContext>();
11178          for (UsageContext i : useContext)
11179            dst.useContext.add(i.copy());
11180        };
11181        if (jurisdiction != null) {
11182          dst.jurisdiction = new ArrayList<CodeableConcept>();
11183          for (CodeableConcept i : jurisdiction)
11184            dst.jurisdiction.add(i.copy());
11185        };
11186        dst.copyright = copyright == null ? null : copyright.copy();
11187        dst.packageId = packageId == null ? null : packageId.copy();
11188        dst.license = license == null ? null : license.copy();
11189        if (fhirVersion != null) {
11190          dst.fhirVersion = new ArrayList<Enumeration<FHIRVersion>>();
11191          for (Enumeration<FHIRVersion> i : fhirVersion)
11192            dst.fhirVersion.add(i.copy());
11193        };
11194        if (dependsOn != null) {
11195          dst.dependsOn = new ArrayList<ImplementationGuideDependsOnComponent>();
11196          for (ImplementationGuideDependsOnComponent i : dependsOn)
11197            dst.dependsOn.add(i.copy());
11198        };
11199        if (global != null) {
11200          dst.global = new ArrayList<ImplementationGuideGlobalComponent>();
11201          for (ImplementationGuideGlobalComponent i : global)
11202            dst.global.add(i.copy());
11203        };
11204        dst.definition = definition == null ? null : definition.copy();
11205        dst.manifest = manifest == null ? null : manifest.copy();
11206      }
11207
11208      protected ImplementationGuide typedCopy() {
11209        return copy();
11210      }
11211
11212      @Override
11213      public boolean equalsDeep(Base other_) {
11214        if (!super.equalsDeep(other_))
11215          return false;
11216        if (!(other_ instanceof ImplementationGuide))
11217          return false;
11218        ImplementationGuide o = (ImplementationGuide) other_;
11219        return compareDeep(copyright, o.copyright, true) && compareDeep(packageId, o.packageId, true) && compareDeep(license, o.license, true)
11220           && compareDeep(fhirVersion, o.fhirVersion, true) && compareDeep(dependsOn, o.dependsOn, true) && compareDeep(global, o.global, true)
11221           && compareDeep(definition, o.definition, true) && compareDeep(manifest, o.manifest, true);
11222      }
11223
11224      @Override
11225      public boolean equalsShallow(Base other_) {
11226        if (!super.equalsShallow(other_))
11227          return false;
11228        if (!(other_ instanceof ImplementationGuide))
11229          return false;
11230        ImplementationGuide o = (ImplementationGuide) other_;
11231        return compareValues(copyright, o.copyright, true) && compareValues(packageId, o.packageId, true) && compareValues(license, o.license, true)
11232           && compareValues(fhirVersion, o.fhirVersion, true);
11233      }
11234
11235      public boolean isEmpty() {
11236        return super.isEmpty() && ca.uhn.fhir.util.ElementUtil.isEmpty(copyright, packageId, license
11237          , fhirVersion, dependsOn, global, definition, manifest);
11238      }
11239
11240  @Override
11241  public ResourceType getResourceType() {
11242    return ResourceType.ImplementationGuide;
11243   }
11244
11245 /**
11246   * Search parameter: <b>date</b>
11247   * <p>
11248   * Description: <b>The implementation guide publication date</b><br>
11249   * Type: <b>date</b><br>
11250   * Path: <b>ImplementationGuide.date</b><br>
11251   * </p>
11252   */
11253  @SearchParamDefinition(name="date", path="ImplementationGuide.date", description="The implementation guide publication date", type="date" )
11254  public static final String SP_DATE = "date";
11255 /**
11256   * <b>Fluent Client</b> search parameter constant for <b>date</b>
11257   * <p>
11258   * Description: <b>The implementation guide publication date</b><br>
11259   * Type: <b>date</b><br>
11260   * Path: <b>ImplementationGuide.date</b><br>
11261   * </p>
11262   */
11263  public static final ca.uhn.fhir.rest.gclient.DateClientParam DATE = new ca.uhn.fhir.rest.gclient.DateClientParam(SP_DATE);
11264
11265 /**
11266   * Search parameter: <b>context-type-value</b>
11267   * <p>
11268   * Description: <b>A use context type and value assigned to the implementation guide</b><br>
11269   * Type: <b>composite</b><br>
11270   * Path: <b></b><br>
11271   * </p>
11272   */
11273  @SearchParamDefinition(name="context-type-value", path="ImplementationGuide.useContext", description="A use context type and value assigned to the implementation guide", type="composite", compositeOf={"context-type", "context"} )
11274  public static final String SP_CONTEXT_TYPE_VALUE = "context-type-value";
11275 /**
11276   * <b>Fluent Client</b> search parameter constant for <b>context-type-value</b>
11277   * <p>
11278   * Description: <b>A use context type and value assigned to the implementation guide</b><br>
11279   * Type: <b>composite</b><br>
11280   * Path: <b></b><br>
11281   * </p>
11282   */
11283  public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam> CONTEXT_TYPE_VALUE = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.TokenClientParam>(SP_CONTEXT_TYPE_VALUE);
11284
11285 /**
11286   * Search parameter: <b>resource</b>
11287   * <p>
11288   * Description: <b>Location of the resource</b><br>
11289   * Type: <b>reference</b><br>
11290   * Path: <b>ImplementationGuide.definition.resource.reference</b><br>
11291   * </p>
11292   */
11293  @SearchParamDefinition(name="resource", path="ImplementationGuide.definition.resource.reference", description="Location of the resource", type="reference" )
11294  public static final String SP_RESOURCE = "resource";
11295 /**
11296   * <b>Fluent Client</b> search parameter constant for <b>resource</b>
11297   * <p>
11298   * Description: <b>Location of the resource</b><br>
11299   * Type: <b>reference</b><br>
11300   * Path: <b>ImplementationGuide.definition.resource.reference</b><br>
11301   * </p>
11302   */
11303  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam RESOURCE = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_RESOURCE);
11304
11305/**
11306   * Constant for fluent queries to be used to add include statements. Specifies
11307   * the path value of "<b>ImplementationGuide:resource</b>".
11308   */
11309  public static final ca.uhn.fhir.model.api.Include INCLUDE_RESOURCE = new ca.uhn.fhir.model.api.Include("ImplementationGuide:resource").toLocked();
11310
11311 /**
11312   * Search parameter: <b>jurisdiction</b>
11313   * <p>
11314   * Description: <b>Intended jurisdiction for the implementation guide</b><br>
11315   * Type: <b>token</b><br>
11316   * Path: <b>ImplementationGuide.jurisdiction</b><br>
11317   * </p>
11318   */
11319  @SearchParamDefinition(name="jurisdiction", path="ImplementationGuide.jurisdiction", description="Intended jurisdiction for the implementation guide", type="token" )
11320  public static final String SP_JURISDICTION = "jurisdiction";
11321 /**
11322   * <b>Fluent Client</b> search parameter constant for <b>jurisdiction</b>
11323   * <p>
11324   * Description: <b>Intended jurisdiction for the implementation guide</b><br>
11325   * Type: <b>token</b><br>
11326   * Path: <b>ImplementationGuide.jurisdiction</b><br>
11327   * </p>
11328   */
11329  public static final ca.uhn.fhir.rest.gclient.TokenClientParam JURISDICTION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_JURISDICTION);
11330
11331 /**
11332   * Search parameter: <b>description</b>
11333   * <p>
11334   * Description: <b>The description of the implementation guide</b><br>
11335   * Type: <b>string</b><br>
11336   * Path: <b>ImplementationGuide.description</b><br>
11337   * </p>
11338   */
11339  @SearchParamDefinition(name="description", path="ImplementationGuide.description", description="The description of the implementation guide", type="string" )
11340  public static final String SP_DESCRIPTION = "description";
11341 /**
11342   * <b>Fluent Client</b> search parameter constant for <b>description</b>
11343   * <p>
11344   * Description: <b>The description of the implementation guide</b><br>
11345   * Type: <b>string</b><br>
11346   * Path: <b>ImplementationGuide.description</b><br>
11347   * </p>
11348   */
11349  public static final ca.uhn.fhir.rest.gclient.StringClientParam DESCRIPTION = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_DESCRIPTION);
11350
11351 /**
11352   * Search parameter: <b>context-type</b>
11353   * <p>
11354   * Description: <b>A type of use context assigned to the implementation guide</b><br>
11355   * Type: <b>token</b><br>
11356   * Path: <b>ImplementationGuide.useContext.code</b><br>
11357   * </p>
11358   */
11359  @SearchParamDefinition(name="context-type", path="ImplementationGuide.useContext.code", description="A type of use context assigned to the implementation guide", type="token" )
11360  public static final String SP_CONTEXT_TYPE = "context-type";
11361 /**
11362   * <b>Fluent Client</b> search parameter constant for <b>context-type</b>
11363   * <p>
11364   * Description: <b>A type of use context assigned to the implementation guide</b><br>
11365   * Type: <b>token</b><br>
11366   * Path: <b>ImplementationGuide.useContext.code</b><br>
11367   * </p>
11368   */
11369  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT_TYPE = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT_TYPE);
11370
11371 /**
11372   * Search parameter: <b>experimental</b>
11373   * <p>
11374   * Description: <b>For testing purposes, not real usage</b><br>
11375   * Type: <b>token</b><br>
11376   * Path: <b>ImplementationGuide.experimental</b><br>
11377   * </p>
11378   */
11379  @SearchParamDefinition(name="experimental", path="ImplementationGuide.experimental", description="For testing purposes, not real usage", type="token" )
11380  public static final String SP_EXPERIMENTAL = "experimental";
11381 /**
11382   * <b>Fluent Client</b> search parameter constant for <b>experimental</b>
11383   * <p>
11384   * Description: <b>For testing purposes, not real usage</b><br>
11385   * Type: <b>token</b><br>
11386   * Path: <b>ImplementationGuide.experimental</b><br>
11387   * </p>
11388   */
11389  public static final ca.uhn.fhir.rest.gclient.TokenClientParam EXPERIMENTAL = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_EXPERIMENTAL);
11390
11391 /**
11392   * Search parameter: <b>global</b>
11393   * <p>
11394   * Description: <b>Profile that all resources must conform to</b><br>
11395   * Type: <b>reference</b><br>
11396   * Path: <b>ImplementationGuide.global.profile</b><br>
11397   * </p>
11398   */
11399  @SearchParamDefinition(name="global", path="ImplementationGuide.global.profile", description="Profile that all resources must conform to", type="reference", target={StructureDefinition.class } )
11400  public static final String SP_GLOBAL = "global";
11401 /**
11402   * <b>Fluent Client</b> search parameter constant for <b>global</b>
11403   * <p>
11404   * Description: <b>Profile that all resources must conform to</b><br>
11405   * Type: <b>reference</b><br>
11406   * Path: <b>ImplementationGuide.global.profile</b><br>
11407   * </p>
11408   */
11409  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam GLOBAL = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_GLOBAL);
11410
11411/**
11412   * Constant for fluent queries to be used to add include statements. Specifies
11413   * the path value of "<b>ImplementationGuide:global</b>".
11414   */
11415  public static final ca.uhn.fhir.model.api.Include INCLUDE_GLOBAL = new ca.uhn.fhir.model.api.Include("ImplementationGuide:global").toLocked();
11416
11417 /**
11418   * Search parameter: <b>title</b>
11419   * <p>
11420   * Description: <b>The human-friendly name of the implementation guide</b><br>
11421   * Type: <b>string</b><br>
11422   * Path: <b>ImplementationGuide.title</b><br>
11423   * </p>
11424   */
11425  @SearchParamDefinition(name="title", path="ImplementationGuide.title", description="The human-friendly name of the implementation guide", type="string" )
11426  public static final String SP_TITLE = "title";
11427 /**
11428   * <b>Fluent Client</b> search parameter constant for <b>title</b>
11429   * <p>
11430   * Description: <b>The human-friendly name of the implementation guide</b><br>
11431   * Type: <b>string</b><br>
11432   * Path: <b>ImplementationGuide.title</b><br>
11433   * </p>
11434   */
11435  public static final ca.uhn.fhir.rest.gclient.StringClientParam TITLE = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_TITLE);
11436
11437 /**
11438   * Search parameter: <b>version</b>
11439   * <p>
11440   * Description: <b>The business version of the implementation guide</b><br>
11441   * Type: <b>token</b><br>
11442   * Path: <b>ImplementationGuide.version</b><br>
11443   * </p>
11444   */
11445  @SearchParamDefinition(name="version", path="ImplementationGuide.version", description="The business version of the implementation guide", type="token" )
11446  public static final String SP_VERSION = "version";
11447 /**
11448   * <b>Fluent Client</b> search parameter constant for <b>version</b>
11449   * <p>
11450   * Description: <b>The business version of the implementation guide</b><br>
11451   * Type: <b>token</b><br>
11452   * Path: <b>ImplementationGuide.version</b><br>
11453   * </p>
11454   */
11455  public static final ca.uhn.fhir.rest.gclient.TokenClientParam VERSION = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_VERSION);
11456
11457 /**
11458   * Search parameter: <b>url</b>
11459   * <p>
11460   * Description: <b>The uri that identifies the implementation guide</b><br>
11461   * Type: <b>uri</b><br>
11462   * Path: <b>ImplementationGuide.url</b><br>
11463   * </p>
11464   */
11465  @SearchParamDefinition(name="url", path="ImplementationGuide.url", description="The uri that identifies the implementation guide", type="uri" )
11466  public static final String SP_URL = "url";
11467 /**
11468   * <b>Fluent Client</b> search parameter constant for <b>url</b>
11469   * <p>
11470   * Description: <b>The uri that identifies the implementation guide</b><br>
11471   * Type: <b>uri</b><br>
11472   * Path: <b>ImplementationGuide.url</b><br>
11473   * </p>
11474   */
11475  public static final ca.uhn.fhir.rest.gclient.UriClientParam URL = new ca.uhn.fhir.rest.gclient.UriClientParam(SP_URL);
11476
11477 /**
11478   * Search parameter: <b>context-quantity</b>
11479   * <p>
11480   * Description: <b>A quantity- or range-valued use context assigned to the implementation guide</b><br>
11481   * Type: <b>quantity</b><br>
11482   * Path: <b>ImplementationGuide.useContext.valueQuantity, ImplementationGuide.useContext.valueRange</b><br>
11483   * </p>
11484   */
11485  @SearchParamDefinition(name="context-quantity", path="(ImplementationGuide.useContext.value as Quantity) | (ImplementationGuide.useContext.value as Range)", description="A quantity- or range-valued use context assigned to the implementation guide", type="quantity" )
11486  public static final String SP_CONTEXT_QUANTITY = "context-quantity";
11487 /**
11488   * <b>Fluent Client</b> search parameter constant for <b>context-quantity</b>
11489   * <p>
11490   * Description: <b>A quantity- or range-valued use context assigned to the implementation guide</b><br>
11491   * Type: <b>quantity</b><br>
11492   * Path: <b>ImplementationGuide.useContext.valueQuantity, ImplementationGuide.useContext.valueRange</b><br>
11493   * </p>
11494   */
11495  public static final ca.uhn.fhir.rest.gclient.QuantityClientParam CONTEXT_QUANTITY = new ca.uhn.fhir.rest.gclient.QuantityClientParam(SP_CONTEXT_QUANTITY);
11496
11497 /**
11498   * Search parameter: <b>depends-on</b>
11499   * <p>
11500   * Description: <b>Identity of the IG that this depends on</b><br>
11501   * Type: <b>reference</b><br>
11502   * Path: <b>ImplementationGuide.dependsOn.uri</b><br>
11503   * </p>
11504   */
11505  @SearchParamDefinition(name="depends-on", path="ImplementationGuide.dependsOn.uri", description="Identity of the IG that this depends on", type="reference", target={ImplementationGuide.class } )
11506  public static final String SP_DEPENDS_ON = "depends-on";
11507 /**
11508   * <b>Fluent Client</b> search parameter constant for <b>depends-on</b>
11509   * <p>
11510   * Description: <b>Identity of the IG that this depends on</b><br>
11511   * Type: <b>reference</b><br>
11512   * Path: <b>ImplementationGuide.dependsOn.uri</b><br>
11513   * </p>
11514   */
11515  public static final ca.uhn.fhir.rest.gclient.ReferenceClientParam DEPENDS_ON = new ca.uhn.fhir.rest.gclient.ReferenceClientParam(SP_DEPENDS_ON);
11516
11517/**
11518   * Constant for fluent queries to be used to add include statements. Specifies
11519   * the path value of "<b>ImplementationGuide:depends-on</b>".
11520   */
11521  public static final ca.uhn.fhir.model.api.Include INCLUDE_DEPENDS_ON = new ca.uhn.fhir.model.api.Include("ImplementationGuide:depends-on").toLocked();
11522
11523 /**
11524   * Search parameter: <b>name</b>
11525   * <p>
11526   * Description: <b>Computationally friendly name of the implementation guide</b><br>
11527   * Type: <b>string</b><br>
11528   * Path: <b>ImplementationGuide.name</b><br>
11529   * </p>
11530   */
11531  @SearchParamDefinition(name="name", path="ImplementationGuide.name", description="Computationally friendly name of the implementation guide", type="string" )
11532  public static final String SP_NAME = "name";
11533 /**
11534   * <b>Fluent Client</b> search parameter constant for <b>name</b>
11535   * <p>
11536   * Description: <b>Computationally friendly name of the implementation guide</b><br>
11537   * Type: <b>string</b><br>
11538   * Path: <b>ImplementationGuide.name</b><br>
11539   * </p>
11540   */
11541  public static final ca.uhn.fhir.rest.gclient.StringClientParam NAME = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_NAME);
11542
11543 /**
11544   * Search parameter: <b>context</b>
11545   * <p>
11546   * Description: <b>A use context assigned to the implementation guide</b><br>
11547   * Type: <b>token</b><br>
11548   * Path: <b>ImplementationGuide.useContext.valueCodeableConcept</b><br>
11549   * </p>
11550   */
11551  @SearchParamDefinition(name="context", path="(ImplementationGuide.useContext.value as CodeableConcept)", description="A use context assigned to the implementation guide", type="token" )
11552  public static final String SP_CONTEXT = "context";
11553 /**
11554   * <b>Fluent Client</b> search parameter constant for <b>context</b>
11555   * <p>
11556   * Description: <b>A use context assigned to the implementation guide</b><br>
11557   * Type: <b>token</b><br>
11558   * Path: <b>ImplementationGuide.useContext.valueCodeableConcept</b><br>
11559   * </p>
11560   */
11561  public static final ca.uhn.fhir.rest.gclient.TokenClientParam CONTEXT = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_CONTEXT);
11562
11563 /**
11564   * Search parameter: <b>publisher</b>
11565   * <p>
11566   * Description: <b>Name of the publisher of the implementation guide</b><br>
11567   * Type: <b>string</b><br>
11568   * Path: <b>ImplementationGuide.publisher</b><br>
11569   * </p>
11570   */
11571  @SearchParamDefinition(name="publisher", path="ImplementationGuide.publisher", description="Name of the publisher of the implementation guide", type="string" )
11572  public static final String SP_PUBLISHER = "publisher";
11573 /**
11574   * <b>Fluent Client</b> search parameter constant for <b>publisher</b>
11575   * <p>
11576   * Description: <b>Name of the publisher of the implementation guide</b><br>
11577   * Type: <b>string</b><br>
11578   * Path: <b>ImplementationGuide.publisher</b><br>
11579   * </p>
11580   */
11581  public static final ca.uhn.fhir.rest.gclient.StringClientParam PUBLISHER = new ca.uhn.fhir.rest.gclient.StringClientParam(SP_PUBLISHER);
11582
11583 /**
11584   * Search parameter: <b>context-type-quantity</b>
11585   * <p>
11586   * Description: <b>A use context type and quantity- or range-based value assigned to the implementation guide</b><br>
11587   * Type: <b>composite</b><br>
11588   * Path: <b></b><br>
11589   * </p>
11590   */
11591  @SearchParamDefinition(name="context-type-quantity", path="ImplementationGuide.useContext", description="A use context type and quantity- or range-based value assigned to the implementation guide", type="composite", compositeOf={"context-type", "context-quantity"} )
11592  public static final String SP_CONTEXT_TYPE_QUANTITY = "context-type-quantity";
11593 /**
11594   * <b>Fluent Client</b> search parameter constant for <b>context-type-quantity</b>
11595   * <p>
11596   * Description: <b>A use context type and quantity- or range-based value assigned to the implementation guide</b><br>
11597   * Type: <b>composite</b><br>
11598   * Path: <b></b><br>
11599   * </p>
11600   */
11601  public static final ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam> CONTEXT_TYPE_QUANTITY = new ca.uhn.fhir.rest.gclient.CompositeClientParam<ca.uhn.fhir.rest.gclient.TokenClientParam, ca.uhn.fhir.rest.gclient.QuantityClientParam>(SP_CONTEXT_TYPE_QUANTITY);
11602
11603 /**
11604   * Search parameter: <b>status</b>
11605   * <p>
11606   * Description: <b>The current status of the implementation guide</b><br>
11607   * Type: <b>token</b><br>
11608   * Path: <b>ImplementationGuide.status</b><br>
11609   * </p>
11610   */
11611  @SearchParamDefinition(name="status", path="ImplementationGuide.status", description="The current status of the implementation guide", type="token" )
11612  public static final String SP_STATUS = "status";
11613 /**
11614   * <b>Fluent Client</b> search parameter constant for <b>status</b>
11615   * <p>
11616   * Description: <b>The current status of the implementation guide</b><br>
11617   * Type: <b>token</b><br>
11618   * Path: <b>ImplementationGuide.status</b><br>
11619   * </p>
11620   */
11621  public static final ca.uhn.fhir.rest.gclient.TokenClientParam STATUS = new ca.uhn.fhir.rest.gclient.TokenClientParam(SP_STATUS);
11622
11623
11624}
11625