001package org.hl7.fhir.r4.model.codesystems;
002
003/*
004  Copyright (c) 2011+, HL7, Inc.
005  All rights reserved.
006  
007  Redistribution and use in source and binary forms, with or without modification, 
008  are permitted provided that the following conditions are met:
009  
010   * Redistributions of source code must retain the above copyright notice, this 
011     list of conditions and the following disclaimer.
012   * Redistributions in binary form must reproduce the above copyright notice, 
013     this list of conditions and the following disclaimer in the documentation 
014     and/or other materials provided with the distribution.
015   * Neither the name of HL7 nor the names of its contributors may be used to 
016     endorse or promote products derived from this software without specific 
017     prior written permission.
018  
019  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND 
020  ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 
021  WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 
022  IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, 
023  INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 
024  NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR 
025  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 
026  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
027  ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
028  POSSIBILITY OF SUCH DAMAGE.
029  
030*/
031
032// Generated on Wed, Jan 30, 2019 16:19-0500 for FHIR v4.0.0
033
034import org.hl7.fhir.r4.model.EnumFactory;
035
036public class SpdxLicenseEnumFactory implements EnumFactory<SpdxLicense> {
037
038  public SpdxLicense fromCode(String codeString) throws IllegalArgumentException {
039    if (codeString == null || "".equals(codeString))
040      return null;
041    if ("not-open-source".equals(codeString))
042      return SpdxLicense.NOTOPENSOURCE;
043    if ("0BSD".equals(codeString))
044      return SpdxLicense._0BSD;
045    if ("AAL".equals(codeString))
046      return SpdxLicense.AAL;
047    if ("Abstyles".equals(codeString))
048      return SpdxLicense.ABSTYLES;
049    if ("Adobe-2006".equals(codeString))
050      return SpdxLicense.ADOBE2006;
051    if ("Adobe-Glyph".equals(codeString))
052      return SpdxLicense.ADOBEGLYPH;
053    if ("ADSL".equals(codeString))
054      return SpdxLicense.ADSL;
055    if ("AFL-1.1".equals(codeString))
056      return SpdxLicense.AFL1_1;
057    if ("AFL-1.2".equals(codeString))
058      return SpdxLicense.AFL1_2;
059    if ("AFL-2.0".equals(codeString))
060      return SpdxLicense.AFL2_0;
061    if ("AFL-2.1".equals(codeString))
062      return SpdxLicense.AFL2_1;
063    if ("AFL-3.0".equals(codeString))
064      return SpdxLicense.AFL3_0;
065    if ("Afmparse".equals(codeString))
066      return SpdxLicense.AFMPARSE;
067    if ("AGPL-1.0-only".equals(codeString))
068      return SpdxLicense.AGPL1_0ONLY;
069    if ("AGPL-1.0-or-later".equals(codeString))
070      return SpdxLicense.AGPL1_0ORLATER;
071    if ("AGPL-3.0-only".equals(codeString))
072      return SpdxLicense.AGPL3_0ONLY;
073    if ("AGPL-3.0-or-later".equals(codeString))
074      return SpdxLicense.AGPL3_0ORLATER;
075    if ("Aladdin".equals(codeString))
076      return SpdxLicense.ALADDIN;
077    if ("AMDPLPA".equals(codeString))
078      return SpdxLicense.AMDPLPA;
079    if ("AML".equals(codeString))
080      return SpdxLicense.AML;
081    if ("AMPAS".equals(codeString))
082      return SpdxLicense.AMPAS;
083    if ("ANTLR-PD".equals(codeString))
084      return SpdxLicense.ANTLRPD;
085    if ("Apache-1.0".equals(codeString))
086      return SpdxLicense.APACHE1_0;
087    if ("Apache-1.1".equals(codeString))
088      return SpdxLicense.APACHE1_1;
089    if ("Apache-2.0".equals(codeString))
090      return SpdxLicense.APACHE2_0;
091    if ("APAFML".equals(codeString))
092      return SpdxLicense.APAFML;
093    if ("APL-1.0".equals(codeString))
094      return SpdxLicense.APL1_0;
095    if ("APSL-1.0".equals(codeString))
096      return SpdxLicense.APSL1_0;
097    if ("APSL-1.1".equals(codeString))
098      return SpdxLicense.APSL1_1;
099    if ("APSL-1.2".equals(codeString))
100      return SpdxLicense.APSL1_2;
101    if ("APSL-2.0".equals(codeString))
102      return SpdxLicense.APSL2_0;
103    if ("Artistic-1.0-cl8".equals(codeString))
104      return SpdxLicense.ARTISTIC1_0CL8;
105    if ("Artistic-1.0-Perl".equals(codeString))
106      return SpdxLicense.ARTISTIC1_0PERL;
107    if ("Artistic-1.0".equals(codeString))
108      return SpdxLicense.ARTISTIC1_0;
109    if ("Artistic-2.0".equals(codeString))
110      return SpdxLicense.ARTISTIC2_0;
111    if ("Bahyph".equals(codeString))
112      return SpdxLicense.BAHYPH;
113    if ("Barr".equals(codeString))
114      return SpdxLicense.BARR;
115    if ("Beerware".equals(codeString))
116      return SpdxLicense.BEERWARE;
117    if ("BitTorrent-1.0".equals(codeString))
118      return SpdxLicense.BITTORRENT1_0;
119    if ("BitTorrent-1.1".equals(codeString))
120      return SpdxLicense.BITTORRENT1_1;
121    if ("Borceux".equals(codeString))
122      return SpdxLicense.BORCEUX;
123    if ("BSD-1-Clause".equals(codeString))
124      return SpdxLicense.BSD1CLAUSE;
125    if ("BSD-2-Clause-FreeBSD".equals(codeString))
126      return SpdxLicense.BSD2CLAUSEFREEBSD;
127    if ("BSD-2-Clause-NetBSD".equals(codeString))
128      return SpdxLicense.BSD2CLAUSENETBSD;
129    if ("BSD-2-Clause-Patent".equals(codeString))
130      return SpdxLicense.BSD2CLAUSEPATENT;
131    if ("BSD-2-Clause".equals(codeString))
132      return SpdxLicense.BSD2CLAUSE;
133    if ("BSD-3-Clause-Attribution".equals(codeString))
134      return SpdxLicense.BSD3CLAUSEATTRIBUTION;
135    if ("BSD-3-Clause-Clear".equals(codeString))
136      return SpdxLicense.BSD3CLAUSECLEAR;
137    if ("BSD-3-Clause-LBNL".equals(codeString))
138      return SpdxLicense.BSD3CLAUSELBNL;
139    if ("BSD-3-Clause-No-Nuclear-License-2014".equals(codeString))
140      return SpdxLicense.BSD3CLAUSENONUCLEARLICENSE2014;
141    if ("BSD-3-Clause-No-Nuclear-License".equals(codeString))
142      return SpdxLicense.BSD3CLAUSENONUCLEARLICENSE;
143    if ("BSD-3-Clause-No-Nuclear-Warranty".equals(codeString))
144      return SpdxLicense.BSD3CLAUSENONUCLEARWARRANTY;
145    if ("BSD-3-Clause".equals(codeString))
146      return SpdxLicense.BSD3CLAUSE;
147    if ("BSD-4-Clause-UC".equals(codeString))
148      return SpdxLicense.BSD4CLAUSEUC;
149    if ("BSD-4-Clause".equals(codeString))
150      return SpdxLicense.BSD4CLAUSE;
151    if ("BSD-Protection".equals(codeString))
152      return SpdxLicense.BSDPROTECTION;
153    if ("BSD-Source-Code".equals(codeString))
154      return SpdxLicense.BSDSOURCECODE;
155    if ("BSL-1.0".equals(codeString))
156      return SpdxLicense.BSL1_0;
157    if ("bzip2-1.0.5".equals(codeString))
158      return SpdxLicense.BZIP21_0_5;
159    if ("bzip2-1.0.6".equals(codeString))
160      return SpdxLicense.BZIP21_0_6;
161    if ("Caldera".equals(codeString))
162      return SpdxLicense.CALDERA;
163    if ("CATOSL-1.1".equals(codeString))
164      return SpdxLicense.CATOSL1_1;
165    if ("CC-BY-1.0".equals(codeString))
166      return SpdxLicense.CCBY1_0;
167    if ("CC-BY-2.0".equals(codeString))
168      return SpdxLicense.CCBY2_0;
169    if ("CC-BY-2.5".equals(codeString))
170      return SpdxLicense.CCBY2_5;
171    if ("CC-BY-3.0".equals(codeString))
172      return SpdxLicense.CCBY3_0;
173    if ("CC-BY-4.0".equals(codeString))
174      return SpdxLicense.CCBY4_0;
175    if ("CC-BY-NC-1.0".equals(codeString))
176      return SpdxLicense.CCBYNC1_0;
177    if ("CC-BY-NC-2.0".equals(codeString))
178      return SpdxLicense.CCBYNC2_0;
179    if ("CC-BY-NC-2.5".equals(codeString))
180      return SpdxLicense.CCBYNC2_5;
181    if ("CC-BY-NC-3.0".equals(codeString))
182      return SpdxLicense.CCBYNC3_0;
183    if ("CC-BY-NC-4.0".equals(codeString))
184      return SpdxLicense.CCBYNC4_0;
185    if ("CC-BY-NC-ND-1.0".equals(codeString))
186      return SpdxLicense.CCBYNCND1_0;
187    if ("CC-BY-NC-ND-2.0".equals(codeString))
188      return SpdxLicense.CCBYNCND2_0;
189    if ("CC-BY-NC-ND-2.5".equals(codeString))
190      return SpdxLicense.CCBYNCND2_5;
191    if ("CC-BY-NC-ND-3.0".equals(codeString))
192      return SpdxLicense.CCBYNCND3_0;
193    if ("CC-BY-NC-ND-4.0".equals(codeString))
194      return SpdxLicense.CCBYNCND4_0;
195    if ("CC-BY-NC-SA-1.0".equals(codeString))
196      return SpdxLicense.CCBYNCSA1_0;
197    if ("CC-BY-NC-SA-2.0".equals(codeString))
198      return SpdxLicense.CCBYNCSA2_0;
199    if ("CC-BY-NC-SA-2.5".equals(codeString))
200      return SpdxLicense.CCBYNCSA2_5;
201    if ("CC-BY-NC-SA-3.0".equals(codeString))
202      return SpdxLicense.CCBYNCSA3_0;
203    if ("CC-BY-NC-SA-4.0".equals(codeString))
204      return SpdxLicense.CCBYNCSA4_0;
205    if ("CC-BY-ND-1.0".equals(codeString))
206      return SpdxLicense.CCBYND1_0;
207    if ("CC-BY-ND-2.0".equals(codeString))
208      return SpdxLicense.CCBYND2_0;
209    if ("CC-BY-ND-2.5".equals(codeString))
210      return SpdxLicense.CCBYND2_5;
211    if ("CC-BY-ND-3.0".equals(codeString))
212      return SpdxLicense.CCBYND3_0;
213    if ("CC-BY-ND-4.0".equals(codeString))
214      return SpdxLicense.CCBYND4_0;
215    if ("CC-BY-SA-1.0".equals(codeString))
216      return SpdxLicense.CCBYSA1_0;
217    if ("CC-BY-SA-2.0".equals(codeString))
218      return SpdxLicense.CCBYSA2_0;
219    if ("CC-BY-SA-2.5".equals(codeString))
220      return SpdxLicense.CCBYSA2_5;
221    if ("CC-BY-SA-3.0".equals(codeString))
222      return SpdxLicense.CCBYSA3_0;
223    if ("CC-BY-SA-4.0".equals(codeString))
224      return SpdxLicense.CCBYSA4_0;
225    if ("CC0-1.0".equals(codeString))
226      return SpdxLicense.CC01_0;
227    if ("CDDL-1.0".equals(codeString))
228      return SpdxLicense.CDDL1_0;
229    if ("CDDL-1.1".equals(codeString))
230      return SpdxLicense.CDDL1_1;
231    if ("CDLA-Permissive-1.0".equals(codeString))
232      return SpdxLicense.CDLAPERMISSIVE1_0;
233    if ("CDLA-Sharing-1.0".equals(codeString))
234      return SpdxLicense.CDLASHARING1_0;
235    if ("CECILL-1.0".equals(codeString))
236      return SpdxLicense.CECILL1_0;
237    if ("CECILL-1.1".equals(codeString))
238      return SpdxLicense.CECILL1_1;
239    if ("CECILL-2.0".equals(codeString))
240      return SpdxLicense.CECILL2_0;
241    if ("CECILL-2.1".equals(codeString))
242      return SpdxLicense.CECILL2_1;
243    if ("CECILL-B".equals(codeString))
244      return SpdxLicense.CECILLB;
245    if ("CECILL-C".equals(codeString))
246      return SpdxLicense.CECILLC;
247    if ("ClArtistic".equals(codeString))
248      return SpdxLicense.CLARTISTIC;
249    if ("CNRI-Jython".equals(codeString))
250      return SpdxLicense.CNRIJYTHON;
251    if ("CNRI-Python-GPL-Compatible".equals(codeString))
252      return SpdxLicense.CNRIPYTHONGPLCOMPATIBLE;
253    if ("CNRI-Python".equals(codeString))
254      return SpdxLicense.CNRIPYTHON;
255    if ("Condor-1.1".equals(codeString))
256      return SpdxLicense.CONDOR1_1;
257    if ("CPAL-1.0".equals(codeString))
258      return SpdxLicense.CPAL1_0;
259    if ("CPL-1.0".equals(codeString))
260      return SpdxLicense.CPL1_0;
261    if ("CPOL-1.02".equals(codeString))
262      return SpdxLicense.CPOL1_02;
263    if ("Crossword".equals(codeString))
264      return SpdxLicense.CROSSWORD;
265    if ("CrystalStacker".equals(codeString))
266      return SpdxLicense.CRYSTALSTACKER;
267    if ("CUA-OPL-1.0".equals(codeString))
268      return SpdxLicense.CUAOPL1_0;
269    if ("Cube".equals(codeString))
270      return SpdxLicense.CUBE;
271    if ("curl".equals(codeString))
272      return SpdxLicense.CURL;
273    if ("D-FSL-1.0".equals(codeString))
274      return SpdxLicense.DFSL1_0;
275    if ("diffmark".equals(codeString))
276      return SpdxLicense.DIFFMARK;
277    if ("DOC".equals(codeString))
278      return SpdxLicense.DOC;
279    if ("Dotseqn".equals(codeString))
280      return SpdxLicense.DOTSEQN;
281    if ("DSDP".equals(codeString))
282      return SpdxLicense.DSDP;
283    if ("dvipdfm".equals(codeString))
284      return SpdxLicense.DVIPDFM;
285    if ("ECL-1.0".equals(codeString))
286      return SpdxLicense.ECL1_0;
287    if ("ECL-2.0".equals(codeString))
288      return SpdxLicense.ECL2_0;
289    if ("EFL-1.0".equals(codeString))
290      return SpdxLicense.EFL1_0;
291    if ("EFL-2.0".equals(codeString))
292      return SpdxLicense.EFL2_0;
293    if ("eGenix".equals(codeString))
294      return SpdxLicense.EGENIX;
295    if ("Entessa".equals(codeString))
296      return SpdxLicense.ENTESSA;
297    if ("EPL-1.0".equals(codeString))
298      return SpdxLicense.EPL1_0;
299    if ("EPL-2.0".equals(codeString))
300      return SpdxLicense.EPL2_0;
301    if ("ErlPL-1.1".equals(codeString))
302      return SpdxLicense.ERLPL1_1;
303    if ("EUDatagrid".equals(codeString))
304      return SpdxLicense.EUDATAGRID;
305    if ("EUPL-1.0".equals(codeString))
306      return SpdxLicense.EUPL1_0;
307    if ("EUPL-1.1".equals(codeString))
308      return SpdxLicense.EUPL1_1;
309    if ("EUPL-1.2".equals(codeString))
310      return SpdxLicense.EUPL1_2;
311    if ("Eurosym".equals(codeString))
312      return SpdxLicense.EUROSYM;
313    if ("Fair".equals(codeString))
314      return SpdxLicense.FAIR;
315    if ("Frameworx-1.0".equals(codeString))
316      return SpdxLicense.FRAMEWORX1_0;
317    if ("FreeImage".equals(codeString))
318      return SpdxLicense.FREEIMAGE;
319    if ("FSFAP".equals(codeString))
320      return SpdxLicense.FSFAP;
321    if ("FSFUL".equals(codeString))
322      return SpdxLicense.FSFUL;
323    if ("FSFULLR".equals(codeString))
324      return SpdxLicense.FSFULLR;
325    if ("FTL".equals(codeString))
326      return SpdxLicense.FTL;
327    if ("GFDL-1.1-only".equals(codeString))
328      return SpdxLicense.GFDL1_1ONLY;
329    if ("GFDL-1.1-or-later".equals(codeString))
330      return SpdxLicense.GFDL1_1ORLATER;
331    if ("GFDL-1.2-only".equals(codeString))
332      return SpdxLicense.GFDL1_2ONLY;
333    if ("GFDL-1.2-or-later".equals(codeString))
334      return SpdxLicense.GFDL1_2ORLATER;
335    if ("GFDL-1.3-only".equals(codeString))
336      return SpdxLicense.GFDL1_3ONLY;
337    if ("GFDL-1.3-or-later".equals(codeString))
338      return SpdxLicense.GFDL1_3ORLATER;
339    if ("Giftware".equals(codeString))
340      return SpdxLicense.GIFTWARE;
341    if ("GL2PS".equals(codeString))
342      return SpdxLicense.GL2PS;
343    if ("Glide".equals(codeString))
344      return SpdxLicense.GLIDE;
345    if ("Glulxe".equals(codeString))
346      return SpdxLicense.GLULXE;
347    if ("gnuplot".equals(codeString))
348      return SpdxLicense.GNUPLOT;
349    if ("GPL-1.0-only".equals(codeString))
350      return SpdxLicense.GPL1_0ONLY;
351    if ("GPL-1.0-or-later".equals(codeString))
352      return SpdxLicense.GPL1_0ORLATER;
353    if ("GPL-2.0-only".equals(codeString))
354      return SpdxLicense.GPL2_0ONLY;
355    if ("GPL-2.0-or-later".equals(codeString))
356      return SpdxLicense.GPL2_0ORLATER;
357    if ("GPL-3.0-only".equals(codeString))
358      return SpdxLicense.GPL3_0ONLY;
359    if ("GPL-3.0-or-later".equals(codeString))
360      return SpdxLicense.GPL3_0ORLATER;
361    if ("gSOAP-1.3b".equals(codeString))
362      return SpdxLicense.GSOAP1_3B;
363    if ("HaskellReport".equals(codeString))
364      return SpdxLicense.HASKELLREPORT;
365    if ("HPND".equals(codeString))
366      return SpdxLicense.HPND;
367    if ("IBM-pibs".equals(codeString))
368      return SpdxLicense.IBMPIBS;
369    if ("ICU".equals(codeString))
370      return SpdxLicense.ICU;
371    if ("IJG".equals(codeString))
372      return SpdxLicense.IJG;
373    if ("ImageMagick".equals(codeString))
374      return SpdxLicense.IMAGEMAGICK;
375    if ("iMatix".equals(codeString))
376      return SpdxLicense.IMATIX;
377    if ("Imlib2".equals(codeString))
378      return SpdxLicense.IMLIB2;
379    if ("Info-ZIP".equals(codeString))
380      return SpdxLicense.INFOZIP;
381    if ("Intel-ACPI".equals(codeString))
382      return SpdxLicense.INTELACPI;
383    if ("Intel".equals(codeString))
384      return SpdxLicense.INTEL;
385    if ("Interbase-1.0".equals(codeString))
386      return SpdxLicense.INTERBASE1_0;
387    if ("IPA".equals(codeString))
388      return SpdxLicense.IPA;
389    if ("IPL-1.0".equals(codeString))
390      return SpdxLicense.IPL1_0;
391    if ("ISC".equals(codeString))
392      return SpdxLicense.ISC;
393    if ("JasPer-2.0".equals(codeString))
394      return SpdxLicense.JASPER2_0;
395    if ("JSON".equals(codeString))
396      return SpdxLicense.JSON;
397    if ("LAL-1.2".equals(codeString))
398      return SpdxLicense.LAL1_2;
399    if ("LAL-1.3".equals(codeString))
400      return SpdxLicense.LAL1_3;
401    if ("Latex2e".equals(codeString))
402      return SpdxLicense.LATEX2E;
403    if ("Leptonica".equals(codeString))
404      return SpdxLicense.LEPTONICA;
405    if ("LGPL-2.0-only".equals(codeString))
406      return SpdxLicense.LGPL2_0ONLY;
407    if ("LGPL-2.0-or-later".equals(codeString))
408      return SpdxLicense.LGPL2_0ORLATER;
409    if ("LGPL-2.1-only".equals(codeString))
410      return SpdxLicense.LGPL2_1ONLY;
411    if ("LGPL-2.1-or-later".equals(codeString))
412      return SpdxLicense.LGPL2_1ORLATER;
413    if ("LGPL-3.0-only".equals(codeString))
414      return SpdxLicense.LGPL3_0ONLY;
415    if ("LGPL-3.0-or-later".equals(codeString))
416      return SpdxLicense.LGPL3_0ORLATER;
417    if ("LGPLLR".equals(codeString))
418      return SpdxLicense.LGPLLR;
419    if ("Libpng".equals(codeString))
420      return SpdxLicense.LIBPNG;
421    if ("libtiff".equals(codeString))
422      return SpdxLicense.LIBTIFF;
423    if ("LiLiQ-P-1.1".equals(codeString))
424      return SpdxLicense.LILIQP1_1;
425    if ("LiLiQ-R-1.1".equals(codeString))
426      return SpdxLicense.LILIQR1_1;
427    if ("LiLiQ-Rplus-1.1".equals(codeString))
428      return SpdxLicense.LILIQRPLUS1_1;
429    if ("Linux-OpenIB".equals(codeString))
430      return SpdxLicense.LINUXOPENIB;
431    if ("LPL-1.0".equals(codeString))
432      return SpdxLicense.LPL1_0;
433    if ("LPL-1.02".equals(codeString))
434      return SpdxLicense.LPL1_02;
435    if ("LPPL-1.0".equals(codeString))
436      return SpdxLicense.LPPL1_0;
437    if ("LPPL-1.1".equals(codeString))
438      return SpdxLicense.LPPL1_1;
439    if ("LPPL-1.2".equals(codeString))
440      return SpdxLicense.LPPL1_2;
441    if ("LPPL-1.3a".equals(codeString))
442      return SpdxLicense.LPPL1_3A;
443    if ("LPPL-1.3c".equals(codeString))
444      return SpdxLicense.LPPL1_3C;
445    if ("MakeIndex".equals(codeString))
446      return SpdxLicense.MAKEINDEX;
447    if ("MirOS".equals(codeString))
448      return SpdxLicense.MIROS;
449    if ("MIT-0".equals(codeString))
450      return SpdxLicense.MIT0;
451    if ("MIT-advertising".equals(codeString))
452      return SpdxLicense.MITADVERTISING;
453    if ("MIT-CMU".equals(codeString))
454      return SpdxLicense.MITCMU;
455    if ("MIT-enna".equals(codeString))
456      return SpdxLicense.MITENNA;
457    if ("MIT-feh".equals(codeString))
458      return SpdxLicense.MITFEH;
459    if ("MIT".equals(codeString))
460      return SpdxLicense.MIT;
461    if ("MITNFA".equals(codeString))
462      return SpdxLicense.MITNFA;
463    if ("Motosoto".equals(codeString))
464      return SpdxLicense.MOTOSOTO;
465    if ("mpich2".equals(codeString))
466      return SpdxLicense.MPICH2;
467    if ("MPL-1.0".equals(codeString))
468      return SpdxLicense.MPL1_0;
469    if ("MPL-1.1".equals(codeString))
470      return SpdxLicense.MPL1_1;
471    if ("MPL-2.0-no-copyleft-exception".equals(codeString))
472      return SpdxLicense.MPL2_0NOCOPYLEFTEXCEPTION;
473    if ("MPL-2.0".equals(codeString))
474      return SpdxLicense.MPL2_0;
475    if ("MS-PL".equals(codeString))
476      return SpdxLicense.MSPL;
477    if ("MS-RL".equals(codeString))
478      return SpdxLicense.MSRL;
479    if ("MTLL".equals(codeString))
480      return SpdxLicense.MTLL;
481    if ("Multics".equals(codeString))
482      return SpdxLicense.MULTICS;
483    if ("Mup".equals(codeString))
484      return SpdxLicense.MUP;
485    if ("NASA-1.3".equals(codeString))
486      return SpdxLicense.NASA1_3;
487    if ("Naumen".equals(codeString))
488      return SpdxLicense.NAUMEN;
489    if ("NBPL-1.0".equals(codeString))
490      return SpdxLicense.NBPL1_0;
491    if ("NCSA".equals(codeString))
492      return SpdxLicense.NCSA;
493    if ("Net-SNMP".equals(codeString))
494      return SpdxLicense.NETSNMP;
495    if ("NetCDF".equals(codeString))
496      return SpdxLicense.NETCDF;
497    if ("Newsletr".equals(codeString))
498      return SpdxLicense.NEWSLETR;
499    if ("NGPL".equals(codeString))
500      return SpdxLicense.NGPL;
501    if ("NLOD-1.0".equals(codeString))
502      return SpdxLicense.NLOD1_0;
503    if ("NLPL".equals(codeString))
504      return SpdxLicense.NLPL;
505    if ("Nokia".equals(codeString))
506      return SpdxLicense.NOKIA;
507    if ("NOSL".equals(codeString))
508      return SpdxLicense.NOSL;
509    if ("Noweb".equals(codeString))
510      return SpdxLicense.NOWEB;
511    if ("NPL-1.0".equals(codeString))
512      return SpdxLicense.NPL1_0;
513    if ("NPL-1.1".equals(codeString))
514      return SpdxLicense.NPL1_1;
515    if ("NPOSL-3.0".equals(codeString))
516      return SpdxLicense.NPOSL3_0;
517    if ("NRL".equals(codeString))
518      return SpdxLicense.NRL;
519    if ("NTP".equals(codeString))
520      return SpdxLicense.NTP;
521    if ("OCCT-PL".equals(codeString))
522      return SpdxLicense.OCCTPL;
523    if ("OCLC-2.0".equals(codeString))
524      return SpdxLicense.OCLC2_0;
525    if ("ODbL-1.0".equals(codeString))
526      return SpdxLicense.ODBL1_0;
527    if ("OFL-1.0".equals(codeString))
528      return SpdxLicense.OFL1_0;
529    if ("OFL-1.1".equals(codeString))
530      return SpdxLicense.OFL1_1;
531    if ("OGTSL".equals(codeString))
532      return SpdxLicense.OGTSL;
533    if ("OLDAP-1.1".equals(codeString))
534      return SpdxLicense.OLDAP1_1;
535    if ("OLDAP-1.2".equals(codeString))
536      return SpdxLicense.OLDAP1_2;
537    if ("OLDAP-1.3".equals(codeString))
538      return SpdxLicense.OLDAP1_3;
539    if ("OLDAP-1.4".equals(codeString))
540      return SpdxLicense.OLDAP1_4;
541    if ("OLDAP-2.0.1".equals(codeString))
542      return SpdxLicense.OLDAP2_0_1;
543    if ("OLDAP-2.0".equals(codeString))
544      return SpdxLicense.OLDAP2_0;
545    if ("OLDAP-2.1".equals(codeString))
546      return SpdxLicense.OLDAP2_1;
547    if ("OLDAP-2.2.1".equals(codeString))
548      return SpdxLicense.OLDAP2_2_1;
549    if ("OLDAP-2.2.2".equals(codeString))
550      return SpdxLicense.OLDAP2_2_2;
551    if ("OLDAP-2.2".equals(codeString))
552      return SpdxLicense.OLDAP2_2;
553    if ("OLDAP-2.3".equals(codeString))
554      return SpdxLicense.OLDAP2_3;
555    if ("OLDAP-2.4".equals(codeString))
556      return SpdxLicense.OLDAP2_4;
557    if ("OLDAP-2.5".equals(codeString))
558      return SpdxLicense.OLDAP2_5;
559    if ("OLDAP-2.6".equals(codeString))
560      return SpdxLicense.OLDAP2_6;
561    if ("OLDAP-2.7".equals(codeString))
562      return SpdxLicense.OLDAP2_7;
563    if ("OLDAP-2.8".equals(codeString))
564      return SpdxLicense.OLDAP2_8;
565    if ("OML".equals(codeString))
566      return SpdxLicense.OML;
567    if ("OpenSSL".equals(codeString))
568      return SpdxLicense.OPENSSL;
569    if ("OPL-1.0".equals(codeString))
570      return SpdxLicense.OPL1_0;
571    if ("OSET-PL-2.1".equals(codeString))
572      return SpdxLicense.OSETPL2_1;
573    if ("OSL-1.0".equals(codeString))
574      return SpdxLicense.OSL1_0;
575    if ("OSL-1.1".equals(codeString))
576      return SpdxLicense.OSL1_1;
577    if ("OSL-2.0".equals(codeString))
578      return SpdxLicense.OSL2_0;
579    if ("OSL-2.1".equals(codeString))
580      return SpdxLicense.OSL2_1;
581    if ("OSL-3.0".equals(codeString))
582      return SpdxLicense.OSL3_0;
583    if ("PDDL-1.0".equals(codeString))
584      return SpdxLicense.PDDL1_0;
585    if ("PHP-3.0".equals(codeString))
586      return SpdxLicense.PHP3_0;
587    if ("PHP-3.01".equals(codeString))
588      return SpdxLicense.PHP3_01;
589    if ("Plexus".equals(codeString))
590      return SpdxLicense.PLEXUS;
591    if ("PostgreSQL".equals(codeString))
592      return SpdxLicense.POSTGRESQL;
593    if ("psfrag".equals(codeString))
594      return SpdxLicense.PSFRAG;
595    if ("psutils".equals(codeString))
596      return SpdxLicense.PSUTILS;
597    if ("Python-2.0".equals(codeString))
598      return SpdxLicense.PYTHON2_0;
599    if ("Qhull".equals(codeString))
600      return SpdxLicense.QHULL;
601    if ("QPL-1.0".equals(codeString))
602      return SpdxLicense.QPL1_0;
603    if ("Rdisc".equals(codeString))
604      return SpdxLicense.RDISC;
605    if ("RHeCos-1.1".equals(codeString))
606      return SpdxLicense.RHECOS1_1;
607    if ("RPL-1.1".equals(codeString))
608      return SpdxLicense.RPL1_1;
609    if ("RPL-1.5".equals(codeString))
610      return SpdxLicense.RPL1_5;
611    if ("RPSL-1.0".equals(codeString))
612      return SpdxLicense.RPSL1_0;
613    if ("RSA-MD".equals(codeString))
614      return SpdxLicense.RSAMD;
615    if ("RSCPL".equals(codeString))
616      return SpdxLicense.RSCPL;
617    if ("Ruby".equals(codeString))
618      return SpdxLicense.RUBY;
619    if ("SAX-PD".equals(codeString))
620      return SpdxLicense.SAXPD;
621    if ("Saxpath".equals(codeString))
622      return SpdxLicense.SAXPATH;
623    if ("SCEA".equals(codeString))
624      return SpdxLicense.SCEA;
625    if ("Sendmail".equals(codeString))
626      return SpdxLicense.SENDMAIL;
627    if ("SGI-B-1.0".equals(codeString))
628      return SpdxLicense.SGIB1_0;
629    if ("SGI-B-1.1".equals(codeString))
630      return SpdxLicense.SGIB1_1;
631    if ("SGI-B-2.0".equals(codeString))
632      return SpdxLicense.SGIB2_0;
633    if ("SimPL-2.0".equals(codeString))
634      return SpdxLicense.SIMPL2_0;
635    if ("SISSL-1.2".equals(codeString))
636      return SpdxLicense.SISSL1_2;
637    if ("SISSL".equals(codeString))
638      return SpdxLicense.SISSL;
639    if ("Sleepycat".equals(codeString))
640      return SpdxLicense.SLEEPYCAT;
641    if ("SMLNJ".equals(codeString))
642      return SpdxLicense.SMLNJ;
643    if ("SMPPL".equals(codeString))
644      return SpdxLicense.SMPPL;
645    if ("SNIA".equals(codeString))
646      return SpdxLicense.SNIA;
647    if ("Spencer-86".equals(codeString))
648      return SpdxLicense.SPENCER86;
649    if ("Spencer-94".equals(codeString))
650      return SpdxLicense.SPENCER94;
651    if ("Spencer-99".equals(codeString))
652      return SpdxLicense.SPENCER99;
653    if ("SPL-1.0".equals(codeString))
654      return SpdxLicense.SPL1_0;
655    if ("SugarCRM-1.1.3".equals(codeString))
656      return SpdxLicense.SUGARCRM1_1_3;
657    if ("SWL".equals(codeString))
658      return SpdxLicense.SWL;
659    if ("TCL".equals(codeString))
660      return SpdxLicense.TCL;
661    if ("TCP-wrappers".equals(codeString))
662      return SpdxLicense.TCPWRAPPERS;
663    if ("TMate".equals(codeString))
664      return SpdxLicense.TMATE;
665    if ("TORQUE-1.1".equals(codeString))
666      return SpdxLicense.TORQUE1_1;
667    if ("TOSL".equals(codeString))
668      return SpdxLicense.TOSL;
669    if ("Unicode-DFS-2015".equals(codeString))
670      return SpdxLicense.UNICODEDFS2015;
671    if ("Unicode-DFS-2016".equals(codeString))
672      return SpdxLicense.UNICODEDFS2016;
673    if ("Unicode-TOU".equals(codeString))
674      return SpdxLicense.UNICODETOU;
675    if ("Unlicense".equals(codeString))
676      return SpdxLicense.UNLICENSE;
677    if ("UPL-1.0".equals(codeString))
678      return SpdxLicense.UPL1_0;
679    if ("Vim".equals(codeString))
680      return SpdxLicense.VIM;
681    if ("VOSTROM".equals(codeString))
682      return SpdxLicense.VOSTROM;
683    if ("VSL-1.0".equals(codeString))
684      return SpdxLicense.VSL1_0;
685    if ("W3C-19980720".equals(codeString))
686      return SpdxLicense.W3C19980720;
687    if ("W3C-20150513".equals(codeString))
688      return SpdxLicense.W3C20150513;
689    if ("W3C".equals(codeString))
690      return SpdxLicense.W3C;
691    if ("Watcom-1.0".equals(codeString))
692      return SpdxLicense.WATCOM1_0;
693    if ("Wsuipa".equals(codeString))
694      return SpdxLicense.WSUIPA;
695    if ("WTFPL".equals(codeString))
696      return SpdxLicense.WTFPL;
697    if ("X11".equals(codeString))
698      return SpdxLicense.X11;
699    if ("Xerox".equals(codeString))
700      return SpdxLicense.XEROX;
701    if ("XFree86-1.1".equals(codeString))
702      return SpdxLicense.XFREE861_1;
703    if ("xinetd".equals(codeString))
704      return SpdxLicense.XINETD;
705    if ("Xnet".equals(codeString))
706      return SpdxLicense.XNET;
707    if ("xpp".equals(codeString))
708      return SpdxLicense.XPP;
709    if ("XSkat".equals(codeString))
710      return SpdxLicense.XSKAT;
711    if ("YPL-1.0".equals(codeString))
712      return SpdxLicense.YPL1_0;
713    if ("YPL-1.1".equals(codeString))
714      return SpdxLicense.YPL1_1;
715    if ("Zed".equals(codeString))
716      return SpdxLicense.ZED;
717    if ("Zend-2.0".equals(codeString))
718      return SpdxLicense.ZEND2_0;
719    if ("Zimbra-1.3".equals(codeString))
720      return SpdxLicense.ZIMBRA1_3;
721    if ("Zimbra-1.4".equals(codeString))
722      return SpdxLicense.ZIMBRA1_4;
723    if ("zlib-acknowledgement".equals(codeString))
724      return SpdxLicense.ZLIBACKNOWLEDGEMENT;
725    if ("Zlib".equals(codeString))
726      return SpdxLicense.ZLIB;
727    if ("ZPL-1.1".equals(codeString))
728      return SpdxLicense.ZPL1_1;
729    if ("ZPL-2.0".equals(codeString))
730      return SpdxLicense.ZPL2_0;
731    if ("ZPL-2.1".equals(codeString))
732      return SpdxLicense.ZPL2_1;
733    throw new IllegalArgumentException("Unknown SpdxLicense code '" + codeString + "'");
734  }
735
736  public String toCode(SpdxLicense code) {
737       if (code == SpdxLicense.NULL)
738           return null;
739       if (code == SpdxLicense.NOTOPENSOURCE)
740      return "not-open-source";
741    if (code == SpdxLicense._0BSD)
742      return "0BSD";
743    if (code == SpdxLicense.AAL)
744      return "AAL";
745    if (code == SpdxLicense.ABSTYLES)
746      return "Abstyles";
747    if (code == SpdxLicense.ADOBE2006)
748      return "Adobe-2006";
749    if (code == SpdxLicense.ADOBEGLYPH)
750      return "Adobe-Glyph";
751    if (code == SpdxLicense.ADSL)
752      return "ADSL";
753    if (code == SpdxLicense.AFL1_1)
754      return "AFL-1.1";
755    if (code == SpdxLicense.AFL1_2)
756      return "AFL-1.2";
757    if (code == SpdxLicense.AFL2_0)
758      return "AFL-2.0";
759    if (code == SpdxLicense.AFL2_1)
760      return "AFL-2.1";
761    if (code == SpdxLicense.AFL3_0)
762      return "AFL-3.0";
763    if (code == SpdxLicense.AFMPARSE)
764      return "Afmparse";
765    if (code == SpdxLicense.AGPL1_0ONLY)
766      return "AGPL-1.0-only";
767    if (code == SpdxLicense.AGPL1_0ORLATER)
768      return "AGPL-1.0-or-later";
769    if (code == SpdxLicense.AGPL3_0ONLY)
770      return "AGPL-3.0-only";
771    if (code == SpdxLicense.AGPL3_0ORLATER)
772      return "AGPL-3.0-or-later";
773    if (code == SpdxLicense.ALADDIN)
774      return "Aladdin";
775    if (code == SpdxLicense.AMDPLPA)
776      return "AMDPLPA";
777    if (code == SpdxLicense.AML)
778      return "AML";
779    if (code == SpdxLicense.AMPAS)
780      return "AMPAS";
781    if (code == SpdxLicense.ANTLRPD)
782      return "ANTLR-PD";
783    if (code == SpdxLicense.APACHE1_0)
784      return "Apache-1.0";
785    if (code == SpdxLicense.APACHE1_1)
786      return "Apache-1.1";
787    if (code == SpdxLicense.APACHE2_0)
788      return "Apache-2.0";
789    if (code == SpdxLicense.APAFML)
790      return "APAFML";
791    if (code == SpdxLicense.APL1_0)
792      return "APL-1.0";
793    if (code == SpdxLicense.APSL1_0)
794      return "APSL-1.0";
795    if (code == SpdxLicense.APSL1_1)
796      return "APSL-1.1";
797    if (code == SpdxLicense.APSL1_2)
798      return "APSL-1.2";
799    if (code == SpdxLicense.APSL2_0)
800      return "APSL-2.0";
801    if (code == SpdxLicense.ARTISTIC1_0CL8)
802      return "Artistic-1.0-cl8";
803    if (code == SpdxLicense.ARTISTIC1_0PERL)
804      return "Artistic-1.0-Perl";
805    if (code == SpdxLicense.ARTISTIC1_0)
806      return "Artistic-1.0";
807    if (code == SpdxLicense.ARTISTIC2_0)
808      return "Artistic-2.0";
809    if (code == SpdxLicense.BAHYPH)
810      return "Bahyph";
811    if (code == SpdxLicense.BARR)
812      return "Barr";
813    if (code == SpdxLicense.BEERWARE)
814      return "Beerware";
815    if (code == SpdxLicense.BITTORRENT1_0)
816      return "BitTorrent-1.0";
817    if (code == SpdxLicense.BITTORRENT1_1)
818      return "BitTorrent-1.1";
819    if (code == SpdxLicense.BORCEUX)
820      return "Borceux";
821    if (code == SpdxLicense.BSD1CLAUSE)
822      return "BSD-1-Clause";
823    if (code == SpdxLicense.BSD2CLAUSEFREEBSD)
824      return "BSD-2-Clause-FreeBSD";
825    if (code == SpdxLicense.BSD2CLAUSENETBSD)
826      return "BSD-2-Clause-NetBSD";
827    if (code == SpdxLicense.BSD2CLAUSEPATENT)
828      return "BSD-2-Clause-Patent";
829    if (code == SpdxLicense.BSD2CLAUSE)
830      return "BSD-2-Clause";
831    if (code == SpdxLicense.BSD3CLAUSEATTRIBUTION)
832      return "BSD-3-Clause-Attribution";
833    if (code == SpdxLicense.BSD3CLAUSECLEAR)
834      return "BSD-3-Clause-Clear";
835    if (code == SpdxLicense.BSD3CLAUSELBNL)
836      return "BSD-3-Clause-LBNL";
837    if (code == SpdxLicense.BSD3CLAUSENONUCLEARLICENSE2014)
838      return "BSD-3-Clause-No-Nuclear-License-2014";
839    if (code == SpdxLicense.BSD3CLAUSENONUCLEARLICENSE)
840      return "BSD-3-Clause-No-Nuclear-License";
841    if (code == SpdxLicense.BSD3CLAUSENONUCLEARWARRANTY)
842      return "BSD-3-Clause-No-Nuclear-Warranty";
843    if (code == SpdxLicense.BSD3CLAUSE)
844      return "BSD-3-Clause";
845    if (code == SpdxLicense.BSD4CLAUSEUC)
846      return "BSD-4-Clause-UC";
847    if (code == SpdxLicense.BSD4CLAUSE)
848      return "BSD-4-Clause";
849    if (code == SpdxLicense.BSDPROTECTION)
850      return "BSD-Protection";
851    if (code == SpdxLicense.BSDSOURCECODE)
852      return "BSD-Source-Code";
853    if (code == SpdxLicense.BSL1_0)
854      return "BSL-1.0";
855    if (code == SpdxLicense.BZIP21_0_5)
856      return "bzip2-1.0.5";
857    if (code == SpdxLicense.BZIP21_0_6)
858      return "bzip2-1.0.6";
859    if (code == SpdxLicense.CALDERA)
860      return "Caldera";
861    if (code == SpdxLicense.CATOSL1_1)
862      return "CATOSL-1.1";
863    if (code == SpdxLicense.CCBY1_0)
864      return "CC-BY-1.0";
865    if (code == SpdxLicense.CCBY2_0)
866      return "CC-BY-2.0";
867    if (code == SpdxLicense.CCBY2_5)
868      return "CC-BY-2.5";
869    if (code == SpdxLicense.CCBY3_0)
870      return "CC-BY-3.0";
871    if (code == SpdxLicense.CCBY4_0)
872      return "CC-BY-4.0";
873    if (code == SpdxLicense.CCBYNC1_0)
874      return "CC-BY-NC-1.0";
875    if (code == SpdxLicense.CCBYNC2_0)
876      return "CC-BY-NC-2.0";
877    if (code == SpdxLicense.CCBYNC2_5)
878      return "CC-BY-NC-2.5";
879    if (code == SpdxLicense.CCBYNC3_0)
880      return "CC-BY-NC-3.0";
881    if (code == SpdxLicense.CCBYNC4_0)
882      return "CC-BY-NC-4.0";
883    if (code == SpdxLicense.CCBYNCND1_0)
884      return "CC-BY-NC-ND-1.0";
885    if (code == SpdxLicense.CCBYNCND2_0)
886      return "CC-BY-NC-ND-2.0";
887    if (code == SpdxLicense.CCBYNCND2_5)
888      return "CC-BY-NC-ND-2.5";
889    if (code == SpdxLicense.CCBYNCND3_0)
890      return "CC-BY-NC-ND-3.0";
891    if (code == SpdxLicense.CCBYNCND4_0)
892      return "CC-BY-NC-ND-4.0";
893    if (code == SpdxLicense.CCBYNCSA1_0)
894      return "CC-BY-NC-SA-1.0";
895    if (code == SpdxLicense.CCBYNCSA2_0)
896      return "CC-BY-NC-SA-2.0";
897    if (code == SpdxLicense.CCBYNCSA2_5)
898      return "CC-BY-NC-SA-2.5";
899    if (code == SpdxLicense.CCBYNCSA3_0)
900      return "CC-BY-NC-SA-3.0";
901    if (code == SpdxLicense.CCBYNCSA4_0)
902      return "CC-BY-NC-SA-4.0";
903    if (code == SpdxLicense.CCBYND1_0)
904      return "CC-BY-ND-1.0";
905    if (code == SpdxLicense.CCBYND2_0)
906      return "CC-BY-ND-2.0";
907    if (code == SpdxLicense.CCBYND2_5)
908      return "CC-BY-ND-2.5";
909    if (code == SpdxLicense.CCBYND3_0)
910      return "CC-BY-ND-3.0";
911    if (code == SpdxLicense.CCBYND4_0)
912      return "CC-BY-ND-4.0";
913    if (code == SpdxLicense.CCBYSA1_0)
914      return "CC-BY-SA-1.0";
915    if (code == SpdxLicense.CCBYSA2_0)
916      return "CC-BY-SA-2.0";
917    if (code == SpdxLicense.CCBYSA2_5)
918      return "CC-BY-SA-2.5";
919    if (code == SpdxLicense.CCBYSA3_0)
920      return "CC-BY-SA-3.0";
921    if (code == SpdxLicense.CCBYSA4_0)
922      return "CC-BY-SA-4.0";
923    if (code == SpdxLicense.CC01_0)
924      return "CC0-1.0";
925    if (code == SpdxLicense.CDDL1_0)
926      return "CDDL-1.0";
927    if (code == SpdxLicense.CDDL1_1)
928      return "CDDL-1.1";
929    if (code == SpdxLicense.CDLAPERMISSIVE1_0)
930      return "CDLA-Permissive-1.0";
931    if (code == SpdxLicense.CDLASHARING1_0)
932      return "CDLA-Sharing-1.0";
933    if (code == SpdxLicense.CECILL1_0)
934      return "CECILL-1.0";
935    if (code == SpdxLicense.CECILL1_1)
936      return "CECILL-1.1";
937    if (code == SpdxLicense.CECILL2_0)
938      return "CECILL-2.0";
939    if (code == SpdxLicense.CECILL2_1)
940      return "CECILL-2.1";
941    if (code == SpdxLicense.CECILLB)
942      return "CECILL-B";
943    if (code == SpdxLicense.CECILLC)
944      return "CECILL-C";
945    if (code == SpdxLicense.CLARTISTIC)
946      return "ClArtistic";
947    if (code == SpdxLicense.CNRIJYTHON)
948      return "CNRI-Jython";
949    if (code == SpdxLicense.CNRIPYTHONGPLCOMPATIBLE)
950      return "CNRI-Python-GPL-Compatible";
951    if (code == SpdxLicense.CNRIPYTHON)
952      return "CNRI-Python";
953    if (code == SpdxLicense.CONDOR1_1)
954      return "Condor-1.1";
955    if (code == SpdxLicense.CPAL1_0)
956      return "CPAL-1.0";
957    if (code == SpdxLicense.CPL1_0)
958      return "CPL-1.0";
959    if (code == SpdxLicense.CPOL1_02)
960      return "CPOL-1.02";
961    if (code == SpdxLicense.CROSSWORD)
962      return "Crossword";
963    if (code == SpdxLicense.CRYSTALSTACKER)
964      return "CrystalStacker";
965    if (code == SpdxLicense.CUAOPL1_0)
966      return "CUA-OPL-1.0";
967    if (code == SpdxLicense.CUBE)
968      return "Cube";
969    if (code == SpdxLicense.CURL)
970      return "curl";
971    if (code == SpdxLicense.DFSL1_0)
972      return "D-FSL-1.0";
973    if (code == SpdxLicense.DIFFMARK)
974      return "diffmark";
975    if (code == SpdxLicense.DOC)
976      return "DOC";
977    if (code == SpdxLicense.DOTSEQN)
978      return "Dotseqn";
979    if (code == SpdxLicense.DSDP)
980      return "DSDP";
981    if (code == SpdxLicense.DVIPDFM)
982      return "dvipdfm";
983    if (code == SpdxLicense.ECL1_0)
984      return "ECL-1.0";
985    if (code == SpdxLicense.ECL2_0)
986      return "ECL-2.0";
987    if (code == SpdxLicense.EFL1_0)
988      return "EFL-1.0";
989    if (code == SpdxLicense.EFL2_0)
990      return "EFL-2.0";
991    if (code == SpdxLicense.EGENIX)
992      return "eGenix";
993    if (code == SpdxLicense.ENTESSA)
994      return "Entessa";
995    if (code == SpdxLicense.EPL1_0)
996      return "EPL-1.0";
997    if (code == SpdxLicense.EPL2_0)
998      return "EPL-2.0";
999    if (code == SpdxLicense.ERLPL1_1)
1000      return "ErlPL-1.1";
1001    if (code == SpdxLicense.EUDATAGRID)
1002      return "EUDatagrid";
1003    if (code == SpdxLicense.EUPL1_0)
1004      return "EUPL-1.0";
1005    if (code == SpdxLicense.EUPL1_1)
1006      return "EUPL-1.1";
1007    if (code == SpdxLicense.EUPL1_2)
1008      return "EUPL-1.2";
1009    if (code == SpdxLicense.EUROSYM)
1010      return "Eurosym";
1011    if (code == SpdxLicense.FAIR)
1012      return "Fair";
1013    if (code == SpdxLicense.FRAMEWORX1_0)
1014      return "Frameworx-1.0";
1015    if (code == SpdxLicense.FREEIMAGE)
1016      return "FreeImage";
1017    if (code == SpdxLicense.FSFAP)
1018      return "FSFAP";
1019    if (code == SpdxLicense.FSFUL)
1020      return "FSFUL";
1021    if (code == SpdxLicense.FSFULLR)
1022      return "FSFULLR";
1023    if (code == SpdxLicense.FTL)
1024      return "FTL";
1025    if (code == SpdxLicense.GFDL1_1ONLY)
1026      return "GFDL-1.1-only";
1027    if (code == SpdxLicense.GFDL1_1ORLATER)
1028      return "GFDL-1.1-or-later";
1029    if (code == SpdxLicense.GFDL1_2ONLY)
1030      return "GFDL-1.2-only";
1031    if (code == SpdxLicense.GFDL1_2ORLATER)
1032      return "GFDL-1.2-or-later";
1033    if (code == SpdxLicense.GFDL1_3ONLY)
1034      return "GFDL-1.3-only";
1035    if (code == SpdxLicense.GFDL1_3ORLATER)
1036      return "GFDL-1.3-or-later";
1037    if (code == SpdxLicense.GIFTWARE)
1038      return "Giftware";
1039    if (code == SpdxLicense.GL2PS)
1040      return "GL2PS";
1041    if (code == SpdxLicense.GLIDE)
1042      return "Glide";
1043    if (code == SpdxLicense.GLULXE)
1044      return "Glulxe";
1045    if (code == SpdxLicense.GNUPLOT)
1046      return "gnuplot";
1047    if (code == SpdxLicense.GPL1_0ONLY)
1048      return "GPL-1.0-only";
1049    if (code == SpdxLicense.GPL1_0ORLATER)
1050      return "GPL-1.0-or-later";
1051    if (code == SpdxLicense.GPL2_0ONLY)
1052      return "GPL-2.0-only";
1053    if (code == SpdxLicense.GPL2_0ORLATER)
1054      return "GPL-2.0-or-later";
1055    if (code == SpdxLicense.GPL3_0ONLY)
1056      return "GPL-3.0-only";
1057    if (code == SpdxLicense.GPL3_0ORLATER)
1058      return "GPL-3.0-or-later";
1059    if (code == SpdxLicense.GSOAP1_3B)
1060      return "gSOAP-1.3b";
1061    if (code == SpdxLicense.HASKELLREPORT)
1062      return "HaskellReport";
1063    if (code == SpdxLicense.HPND)
1064      return "HPND";
1065    if (code == SpdxLicense.IBMPIBS)
1066      return "IBM-pibs";
1067    if (code == SpdxLicense.ICU)
1068      return "ICU";
1069    if (code == SpdxLicense.IJG)
1070      return "IJG";
1071    if (code == SpdxLicense.IMAGEMAGICK)
1072      return "ImageMagick";
1073    if (code == SpdxLicense.IMATIX)
1074      return "iMatix";
1075    if (code == SpdxLicense.IMLIB2)
1076      return "Imlib2";
1077    if (code == SpdxLicense.INFOZIP)
1078      return "Info-ZIP";
1079    if (code == SpdxLicense.INTELACPI)
1080      return "Intel-ACPI";
1081    if (code == SpdxLicense.INTEL)
1082      return "Intel";
1083    if (code == SpdxLicense.INTERBASE1_0)
1084      return "Interbase-1.0";
1085    if (code == SpdxLicense.IPA)
1086      return "IPA";
1087    if (code == SpdxLicense.IPL1_0)
1088      return "IPL-1.0";
1089    if (code == SpdxLicense.ISC)
1090      return "ISC";
1091    if (code == SpdxLicense.JASPER2_0)
1092      return "JasPer-2.0";
1093    if (code == SpdxLicense.JSON)
1094      return "JSON";
1095    if (code == SpdxLicense.LAL1_2)
1096      return "LAL-1.2";
1097    if (code == SpdxLicense.LAL1_3)
1098      return "LAL-1.3";
1099    if (code == SpdxLicense.LATEX2E)
1100      return "Latex2e";
1101    if (code == SpdxLicense.LEPTONICA)
1102      return "Leptonica";
1103    if (code == SpdxLicense.LGPL2_0ONLY)
1104      return "LGPL-2.0-only";
1105    if (code == SpdxLicense.LGPL2_0ORLATER)
1106      return "LGPL-2.0-or-later";
1107    if (code == SpdxLicense.LGPL2_1ONLY)
1108      return "LGPL-2.1-only";
1109    if (code == SpdxLicense.LGPL2_1ORLATER)
1110      return "LGPL-2.1-or-later";
1111    if (code == SpdxLicense.LGPL3_0ONLY)
1112      return "LGPL-3.0-only";
1113    if (code == SpdxLicense.LGPL3_0ORLATER)
1114      return "LGPL-3.0-or-later";
1115    if (code == SpdxLicense.LGPLLR)
1116      return "LGPLLR";
1117    if (code == SpdxLicense.LIBPNG)
1118      return "Libpng";
1119    if (code == SpdxLicense.LIBTIFF)
1120      return "libtiff";
1121    if (code == SpdxLicense.LILIQP1_1)
1122      return "LiLiQ-P-1.1";
1123    if (code == SpdxLicense.LILIQR1_1)
1124      return "LiLiQ-R-1.1";
1125    if (code == SpdxLicense.LILIQRPLUS1_1)
1126      return "LiLiQ-Rplus-1.1";
1127    if (code == SpdxLicense.LINUXOPENIB)
1128      return "Linux-OpenIB";
1129    if (code == SpdxLicense.LPL1_0)
1130      return "LPL-1.0";
1131    if (code == SpdxLicense.LPL1_02)
1132      return "LPL-1.02";
1133    if (code == SpdxLicense.LPPL1_0)
1134      return "LPPL-1.0";
1135    if (code == SpdxLicense.LPPL1_1)
1136      return "LPPL-1.1";
1137    if (code == SpdxLicense.LPPL1_2)
1138      return "LPPL-1.2";
1139    if (code == SpdxLicense.LPPL1_3A)
1140      return "LPPL-1.3a";
1141    if (code == SpdxLicense.LPPL1_3C)
1142      return "LPPL-1.3c";
1143    if (code == SpdxLicense.MAKEINDEX)
1144      return "MakeIndex";
1145    if (code == SpdxLicense.MIROS)
1146      return "MirOS";
1147    if (code == SpdxLicense.MIT0)
1148      return "MIT-0";
1149    if (code == SpdxLicense.MITADVERTISING)
1150      return "MIT-advertising";
1151    if (code == SpdxLicense.MITCMU)
1152      return "MIT-CMU";
1153    if (code == SpdxLicense.MITENNA)
1154      return "MIT-enna";
1155    if (code == SpdxLicense.MITFEH)
1156      return "MIT-feh";
1157    if (code == SpdxLicense.MIT)
1158      return "MIT";
1159    if (code == SpdxLicense.MITNFA)
1160      return "MITNFA";
1161    if (code == SpdxLicense.MOTOSOTO)
1162      return "Motosoto";
1163    if (code == SpdxLicense.MPICH2)
1164      return "mpich2";
1165    if (code == SpdxLicense.MPL1_0)
1166      return "MPL-1.0";
1167    if (code == SpdxLicense.MPL1_1)
1168      return "MPL-1.1";
1169    if (code == SpdxLicense.MPL2_0NOCOPYLEFTEXCEPTION)
1170      return "MPL-2.0-no-copyleft-exception";
1171    if (code == SpdxLicense.MPL2_0)
1172      return "MPL-2.0";
1173    if (code == SpdxLicense.MSPL)
1174      return "MS-PL";
1175    if (code == SpdxLicense.MSRL)
1176      return "MS-RL";
1177    if (code == SpdxLicense.MTLL)
1178      return "MTLL";
1179    if (code == SpdxLicense.MULTICS)
1180      return "Multics";
1181    if (code == SpdxLicense.MUP)
1182      return "Mup";
1183    if (code == SpdxLicense.NASA1_3)
1184      return "NASA-1.3";
1185    if (code == SpdxLicense.NAUMEN)
1186      return "Naumen";
1187    if (code == SpdxLicense.NBPL1_0)
1188      return "NBPL-1.0";
1189    if (code == SpdxLicense.NCSA)
1190      return "NCSA";
1191    if (code == SpdxLicense.NETSNMP)
1192      return "Net-SNMP";
1193    if (code == SpdxLicense.NETCDF)
1194      return "NetCDF";
1195    if (code == SpdxLicense.NEWSLETR)
1196      return "Newsletr";
1197    if (code == SpdxLicense.NGPL)
1198      return "NGPL";
1199    if (code == SpdxLicense.NLOD1_0)
1200      return "NLOD-1.0";
1201    if (code == SpdxLicense.NLPL)
1202      return "NLPL";
1203    if (code == SpdxLicense.NOKIA)
1204      return "Nokia";
1205    if (code == SpdxLicense.NOSL)
1206      return "NOSL";
1207    if (code == SpdxLicense.NOWEB)
1208      return "Noweb";
1209    if (code == SpdxLicense.NPL1_0)
1210      return "NPL-1.0";
1211    if (code == SpdxLicense.NPL1_1)
1212      return "NPL-1.1";
1213    if (code == SpdxLicense.NPOSL3_0)
1214      return "NPOSL-3.0";
1215    if (code == SpdxLicense.NRL)
1216      return "NRL";
1217    if (code == SpdxLicense.NTP)
1218      return "NTP";
1219    if (code == SpdxLicense.OCCTPL)
1220      return "OCCT-PL";
1221    if (code == SpdxLicense.OCLC2_0)
1222      return "OCLC-2.0";
1223    if (code == SpdxLicense.ODBL1_0)
1224      return "ODbL-1.0";
1225    if (code == SpdxLicense.OFL1_0)
1226      return "OFL-1.0";
1227    if (code == SpdxLicense.OFL1_1)
1228      return "OFL-1.1";
1229    if (code == SpdxLicense.OGTSL)
1230      return "OGTSL";
1231    if (code == SpdxLicense.OLDAP1_1)
1232      return "OLDAP-1.1";
1233    if (code == SpdxLicense.OLDAP1_2)
1234      return "OLDAP-1.2";
1235    if (code == SpdxLicense.OLDAP1_3)
1236      return "OLDAP-1.3";
1237    if (code == SpdxLicense.OLDAP1_4)
1238      return "OLDAP-1.4";
1239    if (code == SpdxLicense.OLDAP2_0_1)
1240      return "OLDAP-2.0.1";
1241    if (code == SpdxLicense.OLDAP2_0)
1242      return "OLDAP-2.0";
1243    if (code == SpdxLicense.OLDAP2_1)
1244      return "OLDAP-2.1";
1245    if (code == SpdxLicense.OLDAP2_2_1)
1246      return "OLDAP-2.2.1";
1247    if (code == SpdxLicense.OLDAP2_2_2)
1248      return "OLDAP-2.2.2";
1249    if (code == SpdxLicense.OLDAP2_2)
1250      return "OLDAP-2.2";
1251    if (code == SpdxLicense.OLDAP2_3)
1252      return "OLDAP-2.3";
1253    if (code == SpdxLicense.OLDAP2_4)
1254      return "OLDAP-2.4";
1255    if (code == SpdxLicense.OLDAP2_5)
1256      return "OLDAP-2.5";
1257    if (code == SpdxLicense.OLDAP2_6)
1258      return "OLDAP-2.6";
1259    if (code == SpdxLicense.OLDAP2_7)
1260      return "OLDAP-2.7";
1261    if (code == SpdxLicense.OLDAP2_8)
1262      return "OLDAP-2.8";
1263    if (code == SpdxLicense.OML)
1264      return "OML";
1265    if (code == SpdxLicense.OPENSSL)
1266      return "OpenSSL";
1267    if (code == SpdxLicense.OPL1_0)
1268      return "OPL-1.0";
1269    if (code == SpdxLicense.OSETPL2_1)
1270      return "OSET-PL-2.1";
1271    if (code == SpdxLicense.OSL1_0)
1272      return "OSL-1.0";
1273    if (code == SpdxLicense.OSL1_1)
1274      return "OSL-1.1";
1275    if (code == SpdxLicense.OSL2_0)
1276      return "OSL-2.0";
1277    if (code == SpdxLicense.OSL2_1)
1278      return "OSL-2.1";
1279    if (code == SpdxLicense.OSL3_0)
1280      return "OSL-3.0";
1281    if (code == SpdxLicense.PDDL1_0)
1282      return "PDDL-1.0";
1283    if (code == SpdxLicense.PHP3_0)
1284      return "PHP-3.0";
1285    if (code == SpdxLicense.PHP3_01)
1286      return "PHP-3.01";
1287    if (code == SpdxLicense.PLEXUS)
1288      return "Plexus";
1289    if (code == SpdxLicense.POSTGRESQL)
1290      return "PostgreSQL";
1291    if (code == SpdxLicense.PSFRAG)
1292      return "psfrag";
1293    if (code == SpdxLicense.PSUTILS)
1294      return "psutils";
1295    if (code == SpdxLicense.PYTHON2_0)
1296      return "Python-2.0";
1297    if (code == SpdxLicense.QHULL)
1298      return "Qhull";
1299    if (code == SpdxLicense.QPL1_0)
1300      return "QPL-1.0";
1301    if (code == SpdxLicense.RDISC)
1302      return "Rdisc";
1303    if (code == SpdxLicense.RHECOS1_1)
1304      return "RHeCos-1.1";
1305    if (code == SpdxLicense.RPL1_1)
1306      return "RPL-1.1";
1307    if (code == SpdxLicense.RPL1_5)
1308      return "RPL-1.5";
1309    if (code == SpdxLicense.RPSL1_0)
1310      return "RPSL-1.0";
1311    if (code == SpdxLicense.RSAMD)
1312      return "RSA-MD";
1313    if (code == SpdxLicense.RSCPL)
1314      return "RSCPL";
1315    if (code == SpdxLicense.RUBY)
1316      return "Ruby";
1317    if (code == SpdxLicense.SAXPD)
1318      return "SAX-PD";
1319    if (code == SpdxLicense.SAXPATH)
1320      return "Saxpath";
1321    if (code == SpdxLicense.SCEA)
1322      return "SCEA";
1323    if (code == SpdxLicense.SENDMAIL)
1324      return "Sendmail";
1325    if (code == SpdxLicense.SGIB1_0)
1326      return "SGI-B-1.0";
1327    if (code == SpdxLicense.SGIB1_1)
1328      return "SGI-B-1.1";
1329    if (code == SpdxLicense.SGIB2_0)
1330      return "SGI-B-2.0";
1331    if (code == SpdxLicense.SIMPL2_0)
1332      return "SimPL-2.0";
1333    if (code == SpdxLicense.SISSL1_2)
1334      return "SISSL-1.2";
1335    if (code == SpdxLicense.SISSL)
1336      return "SISSL";
1337    if (code == SpdxLicense.SLEEPYCAT)
1338      return "Sleepycat";
1339    if (code == SpdxLicense.SMLNJ)
1340      return "SMLNJ";
1341    if (code == SpdxLicense.SMPPL)
1342      return "SMPPL";
1343    if (code == SpdxLicense.SNIA)
1344      return "SNIA";
1345    if (code == SpdxLicense.SPENCER86)
1346      return "Spencer-86";
1347    if (code == SpdxLicense.SPENCER94)
1348      return "Spencer-94";
1349    if (code == SpdxLicense.SPENCER99)
1350      return "Spencer-99";
1351    if (code == SpdxLicense.SPL1_0)
1352      return "SPL-1.0";
1353    if (code == SpdxLicense.SUGARCRM1_1_3)
1354      return "SugarCRM-1.1.3";
1355    if (code == SpdxLicense.SWL)
1356      return "SWL";
1357    if (code == SpdxLicense.TCL)
1358      return "TCL";
1359    if (code == SpdxLicense.TCPWRAPPERS)
1360      return "TCP-wrappers";
1361    if (code == SpdxLicense.TMATE)
1362      return "TMate";
1363    if (code == SpdxLicense.TORQUE1_1)
1364      return "TORQUE-1.1";
1365    if (code == SpdxLicense.TOSL)
1366      return "TOSL";
1367    if (code == SpdxLicense.UNICODEDFS2015)
1368      return "Unicode-DFS-2015";
1369    if (code == SpdxLicense.UNICODEDFS2016)
1370      return "Unicode-DFS-2016";
1371    if (code == SpdxLicense.UNICODETOU)
1372      return "Unicode-TOU";
1373    if (code == SpdxLicense.UNLICENSE)
1374      return "Unlicense";
1375    if (code == SpdxLicense.UPL1_0)
1376      return "UPL-1.0";
1377    if (code == SpdxLicense.VIM)
1378      return "Vim";
1379    if (code == SpdxLicense.VOSTROM)
1380      return "VOSTROM";
1381    if (code == SpdxLicense.VSL1_0)
1382      return "VSL-1.0";
1383    if (code == SpdxLicense.W3C19980720)
1384      return "W3C-19980720";
1385    if (code == SpdxLicense.W3C20150513)
1386      return "W3C-20150513";
1387    if (code == SpdxLicense.W3C)
1388      return "W3C";
1389    if (code == SpdxLicense.WATCOM1_0)
1390      return "Watcom-1.0";
1391    if (code == SpdxLicense.WSUIPA)
1392      return "Wsuipa";
1393    if (code == SpdxLicense.WTFPL)
1394      return "WTFPL";
1395    if (code == SpdxLicense.X11)
1396      return "X11";
1397    if (code == SpdxLicense.XEROX)
1398      return "Xerox";
1399    if (code == SpdxLicense.XFREE861_1)
1400      return "XFree86-1.1";
1401    if (code == SpdxLicense.XINETD)
1402      return "xinetd";
1403    if (code == SpdxLicense.XNET)
1404      return "Xnet";
1405    if (code == SpdxLicense.XPP)
1406      return "xpp";
1407    if (code == SpdxLicense.XSKAT)
1408      return "XSkat";
1409    if (code == SpdxLicense.YPL1_0)
1410      return "YPL-1.0";
1411    if (code == SpdxLicense.YPL1_1)
1412      return "YPL-1.1";
1413    if (code == SpdxLicense.ZED)
1414      return "Zed";
1415    if (code == SpdxLicense.ZEND2_0)
1416      return "Zend-2.0";
1417    if (code == SpdxLicense.ZIMBRA1_3)
1418      return "Zimbra-1.3";
1419    if (code == SpdxLicense.ZIMBRA1_4)
1420      return "Zimbra-1.4";
1421    if (code == SpdxLicense.ZLIBACKNOWLEDGEMENT)
1422      return "zlib-acknowledgement";
1423    if (code == SpdxLicense.ZLIB)
1424      return "Zlib";
1425    if (code == SpdxLicense.ZPL1_1)
1426      return "ZPL-1.1";
1427    if (code == SpdxLicense.ZPL2_0)
1428      return "ZPL-2.0";
1429    if (code == SpdxLicense.ZPL2_1)
1430      return "ZPL-2.1";
1431    return "?";
1432   }
1433
1434  public String toSystem(SpdxLicense code) {
1435    return code.getSystem();
1436  }
1437
1438}