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.NOTOPENSOURCE)
738      return "not-open-source";
739    if (code == SpdxLicense._0BSD)
740      return "0BSD";
741    if (code == SpdxLicense.AAL)
742      return "AAL";
743    if (code == SpdxLicense.ABSTYLES)
744      return "Abstyles";
745    if (code == SpdxLicense.ADOBE2006)
746      return "Adobe-2006";
747    if (code == SpdxLicense.ADOBEGLYPH)
748      return "Adobe-Glyph";
749    if (code == SpdxLicense.ADSL)
750      return "ADSL";
751    if (code == SpdxLicense.AFL1_1)
752      return "AFL-1.1";
753    if (code == SpdxLicense.AFL1_2)
754      return "AFL-1.2";
755    if (code == SpdxLicense.AFL2_0)
756      return "AFL-2.0";
757    if (code == SpdxLicense.AFL2_1)
758      return "AFL-2.1";
759    if (code == SpdxLicense.AFL3_0)
760      return "AFL-3.0";
761    if (code == SpdxLicense.AFMPARSE)
762      return "Afmparse";
763    if (code == SpdxLicense.AGPL1_0ONLY)
764      return "AGPL-1.0-only";
765    if (code == SpdxLicense.AGPL1_0ORLATER)
766      return "AGPL-1.0-or-later";
767    if (code == SpdxLicense.AGPL3_0ONLY)
768      return "AGPL-3.0-only";
769    if (code == SpdxLicense.AGPL3_0ORLATER)
770      return "AGPL-3.0-or-later";
771    if (code == SpdxLicense.ALADDIN)
772      return "Aladdin";
773    if (code == SpdxLicense.AMDPLPA)
774      return "AMDPLPA";
775    if (code == SpdxLicense.AML)
776      return "AML";
777    if (code == SpdxLicense.AMPAS)
778      return "AMPAS";
779    if (code == SpdxLicense.ANTLRPD)
780      return "ANTLR-PD";
781    if (code == SpdxLicense.APACHE1_0)
782      return "Apache-1.0";
783    if (code == SpdxLicense.APACHE1_1)
784      return "Apache-1.1";
785    if (code == SpdxLicense.APACHE2_0)
786      return "Apache-2.0";
787    if (code == SpdxLicense.APAFML)
788      return "APAFML";
789    if (code == SpdxLicense.APL1_0)
790      return "APL-1.0";
791    if (code == SpdxLicense.APSL1_0)
792      return "APSL-1.0";
793    if (code == SpdxLicense.APSL1_1)
794      return "APSL-1.1";
795    if (code == SpdxLicense.APSL1_2)
796      return "APSL-1.2";
797    if (code == SpdxLicense.APSL2_0)
798      return "APSL-2.0";
799    if (code == SpdxLicense.ARTISTIC1_0CL8)
800      return "Artistic-1.0-cl8";
801    if (code == SpdxLicense.ARTISTIC1_0PERL)
802      return "Artistic-1.0-Perl";
803    if (code == SpdxLicense.ARTISTIC1_0)
804      return "Artistic-1.0";
805    if (code == SpdxLicense.ARTISTIC2_0)
806      return "Artistic-2.0";
807    if (code == SpdxLicense.BAHYPH)
808      return "Bahyph";
809    if (code == SpdxLicense.BARR)
810      return "Barr";
811    if (code == SpdxLicense.BEERWARE)
812      return "Beerware";
813    if (code == SpdxLicense.BITTORRENT1_0)
814      return "BitTorrent-1.0";
815    if (code == SpdxLicense.BITTORRENT1_1)
816      return "BitTorrent-1.1";
817    if (code == SpdxLicense.BORCEUX)
818      return "Borceux";
819    if (code == SpdxLicense.BSD1CLAUSE)
820      return "BSD-1-Clause";
821    if (code == SpdxLicense.BSD2CLAUSEFREEBSD)
822      return "BSD-2-Clause-FreeBSD";
823    if (code == SpdxLicense.BSD2CLAUSENETBSD)
824      return "BSD-2-Clause-NetBSD";
825    if (code == SpdxLicense.BSD2CLAUSEPATENT)
826      return "BSD-2-Clause-Patent";
827    if (code == SpdxLicense.BSD2CLAUSE)
828      return "BSD-2-Clause";
829    if (code == SpdxLicense.BSD3CLAUSEATTRIBUTION)
830      return "BSD-3-Clause-Attribution";
831    if (code == SpdxLicense.BSD3CLAUSECLEAR)
832      return "BSD-3-Clause-Clear";
833    if (code == SpdxLicense.BSD3CLAUSELBNL)
834      return "BSD-3-Clause-LBNL";
835    if (code == SpdxLicense.BSD3CLAUSENONUCLEARLICENSE2014)
836      return "BSD-3-Clause-No-Nuclear-License-2014";
837    if (code == SpdxLicense.BSD3CLAUSENONUCLEARLICENSE)
838      return "BSD-3-Clause-No-Nuclear-License";
839    if (code == SpdxLicense.BSD3CLAUSENONUCLEARWARRANTY)
840      return "BSD-3-Clause-No-Nuclear-Warranty";
841    if (code == SpdxLicense.BSD3CLAUSE)
842      return "BSD-3-Clause";
843    if (code == SpdxLicense.BSD4CLAUSEUC)
844      return "BSD-4-Clause-UC";
845    if (code == SpdxLicense.BSD4CLAUSE)
846      return "BSD-4-Clause";
847    if (code == SpdxLicense.BSDPROTECTION)
848      return "BSD-Protection";
849    if (code == SpdxLicense.BSDSOURCECODE)
850      return "BSD-Source-Code";
851    if (code == SpdxLicense.BSL1_0)
852      return "BSL-1.0";
853    if (code == SpdxLicense.BZIP21_0_5)
854      return "bzip2-1.0.5";
855    if (code == SpdxLicense.BZIP21_0_6)
856      return "bzip2-1.0.6";
857    if (code == SpdxLicense.CALDERA)
858      return "Caldera";
859    if (code == SpdxLicense.CATOSL1_1)
860      return "CATOSL-1.1";
861    if (code == SpdxLicense.CCBY1_0)
862      return "CC-BY-1.0";
863    if (code == SpdxLicense.CCBY2_0)
864      return "CC-BY-2.0";
865    if (code == SpdxLicense.CCBY2_5)
866      return "CC-BY-2.5";
867    if (code == SpdxLicense.CCBY3_0)
868      return "CC-BY-3.0";
869    if (code == SpdxLicense.CCBY4_0)
870      return "CC-BY-4.0";
871    if (code == SpdxLicense.CCBYNC1_0)
872      return "CC-BY-NC-1.0";
873    if (code == SpdxLicense.CCBYNC2_0)
874      return "CC-BY-NC-2.0";
875    if (code == SpdxLicense.CCBYNC2_5)
876      return "CC-BY-NC-2.5";
877    if (code == SpdxLicense.CCBYNC3_0)
878      return "CC-BY-NC-3.0";
879    if (code == SpdxLicense.CCBYNC4_0)
880      return "CC-BY-NC-4.0";
881    if (code == SpdxLicense.CCBYNCND1_0)
882      return "CC-BY-NC-ND-1.0";
883    if (code == SpdxLicense.CCBYNCND2_0)
884      return "CC-BY-NC-ND-2.0";
885    if (code == SpdxLicense.CCBYNCND2_5)
886      return "CC-BY-NC-ND-2.5";
887    if (code == SpdxLicense.CCBYNCND3_0)
888      return "CC-BY-NC-ND-3.0";
889    if (code == SpdxLicense.CCBYNCND4_0)
890      return "CC-BY-NC-ND-4.0";
891    if (code == SpdxLicense.CCBYNCSA1_0)
892      return "CC-BY-NC-SA-1.0";
893    if (code == SpdxLicense.CCBYNCSA2_0)
894      return "CC-BY-NC-SA-2.0";
895    if (code == SpdxLicense.CCBYNCSA2_5)
896      return "CC-BY-NC-SA-2.5";
897    if (code == SpdxLicense.CCBYNCSA3_0)
898      return "CC-BY-NC-SA-3.0";
899    if (code == SpdxLicense.CCBYNCSA4_0)
900      return "CC-BY-NC-SA-4.0";
901    if (code == SpdxLicense.CCBYND1_0)
902      return "CC-BY-ND-1.0";
903    if (code == SpdxLicense.CCBYND2_0)
904      return "CC-BY-ND-2.0";
905    if (code == SpdxLicense.CCBYND2_5)
906      return "CC-BY-ND-2.5";
907    if (code == SpdxLicense.CCBYND3_0)
908      return "CC-BY-ND-3.0";
909    if (code == SpdxLicense.CCBYND4_0)
910      return "CC-BY-ND-4.0";
911    if (code == SpdxLicense.CCBYSA1_0)
912      return "CC-BY-SA-1.0";
913    if (code == SpdxLicense.CCBYSA2_0)
914      return "CC-BY-SA-2.0";
915    if (code == SpdxLicense.CCBYSA2_5)
916      return "CC-BY-SA-2.5";
917    if (code == SpdxLicense.CCBYSA3_0)
918      return "CC-BY-SA-3.0";
919    if (code == SpdxLicense.CCBYSA4_0)
920      return "CC-BY-SA-4.0";
921    if (code == SpdxLicense.CC01_0)
922      return "CC0-1.0";
923    if (code == SpdxLicense.CDDL1_0)
924      return "CDDL-1.0";
925    if (code == SpdxLicense.CDDL1_1)
926      return "CDDL-1.1";
927    if (code == SpdxLicense.CDLAPERMISSIVE1_0)
928      return "CDLA-Permissive-1.0";
929    if (code == SpdxLicense.CDLASHARING1_0)
930      return "CDLA-Sharing-1.0";
931    if (code == SpdxLicense.CECILL1_0)
932      return "CECILL-1.0";
933    if (code == SpdxLicense.CECILL1_1)
934      return "CECILL-1.1";
935    if (code == SpdxLicense.CECILL2_0)
936      return "CECILL-2.0";
937    if (code == SpdxLicense.CECILL2_1)
938      return "CECILL-2.1";
939    if (code == SpdxLicense.CECILLB)
940      return "CECILL-B";
941    if (code == SpdxLicense.CECILLC)
942      return "CECILL-C";
943    if (code == SpdxLicense.CLARTISTIC)
944      return "ClArtistic";
945    if (code == SpdxLicense.CNRIJYTHON)
946      return "CNRI-Jython";
947    if (code == SpdxLicense.CNRIPYTHONGPLCOMPATIBLE)
948      return "CNRI-Python-GPL-Compatible";
949    if (code == SpdxLicense.CNRIPYTHON)
950      return "CNRI-Python";
951    if (code == SpdxLicense.CONDOR1_1)
952      return "Condor-1.1";
953    if (code == SpdxLicense.CPAL1_0)
954      return "CPAL-1.0";
955    if (code == SpdxLicense.CPL1_0)
956      return "CPL-1.0";
957    if (code == SpdxLicense.CPOL1_02)
958      return "CPOL-1.02";
959    if (code == SpdxLicense.CROSSWORD)
960      return "Crossword";
961    if (code == SpdxLicense.CRYSTALSTACKER)
962      return "CrystalStacker";
963    if (code == SpdxLicense.CUAOPL1_0)
964      return "CUA-OPL-1.0";
965    if (code == SpdxLicense.CUBE)
966      return "Cube";
967    if (code == SpdxLicense.CURL)
968      return "curl";
969    if (code == SpdxLicense.DFSL1_0)
970      return "D-FSL-1.0";
971    if (code == SpdxLicense.DIFFMARK)
972      return "diffmark";
973    if (code == SpdxLicense.DOC)
974      return "DOC";
975    if (code == SpdxLicense.DOTSEQN)
976      return "Dotseqn";
977    if (code == SpdxLicense.DSDP)
978      return "DSDP";
979    if (code == SpdxLicense.DVIPDFM)
980      return "dvipdfm";
981    if (code == SpdxLicense.ECL1_0)
982      return "ECL-1.0";
983    if (code == SpdxLicense.ECL2_0)
984      return "ECL-2.0";
985    if (code == SpdxLicense.EFL1_0)
986      return "EFL-1.0";
987    if (code == SpdxLicense.EFL2_0)
988      return "EFL-2.0";
989    if (code == SpdxLicense.EGENIX)
990      return "eGenix";
991    if (code == SpdxLicense.ENTESSA)
992      return "Entessa";
993    if (code == SpdxLicense.EPL1_0)
994      return "EPL-1.0";
995    if (code == SpdxLicense.EPL2_0)
996      return "EPL-2.0";
997    if (code == SpdxLicense.ERLPL1_1)
998      return "ErlPL-1.1";
999    if (code == SpdxLicense.EUDATAGRID)
1000      return "EUDatagrid";
1001    if (code == SpdxLicense.EUPL1_0)
1002      return "EUPL-1.0";
1003    if (code == SpdxLicense.EUPL1_1)
1004      return "EUPL-1.1";
1005    if (code == SpdxLicense.EUPL1_2)
1006      return "EUPL-1.2";
1007    if (code == SpdxLicense.EUROSYM)
1008      return "Eurosym";
1009    if (code == SpdxLicense.FAIR)
1010      return "Fair";
1011    if (code == SpdxLicense.FRAMEWORX1_0)
1012      return "Frameworx-1.0";
1013    if (code == SpdxLicense.FREEIMAGE)
1014      return "FreeImage";
1015    if (code == SpdxLicense.FSFAP)
1016      return "FSFAP";
1017    if (code == SpdxLicense.FSFUL)
1018      return "FSFUL";
1019    if (code == SpdxLicense.FSFULLR)
1020      return "FSFULLR";
1021    if (code == SpdxLicense.FTL)
1022      return "FTL";
1023    if (code == SpdxLicense.GFDL1_1ONLY)
1024      return "GFDL-1.1-only";
1025    if (code == SpdxLicense.GFDL1_1ORLATER)
1026      return "GFDL-1.1-or-later";
1027    if (code == SpdxLicense.GFDL1_2ONLY)
1028      return "GFDL-1.2-only";
1029    if (code == SpdxLicense.GFDL1_2ORLATER)
1030      return "GFDL-1.2-or-later";
1031    if (code == SpdxLicense.GFDL1_3ONLY)
1032      return "GFDL-1.3-only";
1033    if (code == SpdxLicense.GFDL1_3ORLATER)
1034      return "GFDL-1.3-or-later";
1035    if (code == SpdxLicense.GIFTWARE)
1036      return "Giftware";
1037    if (code == SpdxLicense.GL2PS)
1038      return "GL2PS";
1039    if (code == SpdxLicense.GLIDE)
1040      return "Glide";
1041    if (code == SpdxLicense.GLULXE)
1042      return "Glulxe";
1043    if (code == SpdxLicense.GNUPLOT)
1044      return "gnuplot";
1045    if (code == SpdxLicense.GPL1_0ONLY)
1046      return "GPL-1.0-only";
1047    if (code == SpdxLicense.GPL1_0ORLATER)
1048      return "GPL-1.0-or-later";
1049    if (code == SpdxLicense.GPL2_0ONLY)
1050      return "GPL-2.0-only";
1051    if (code == SpdxLicense.GPL2_0ORLATER)
1052      return "GPL-2.0-or-later";
1053    if (code == SpdxLicense.GPL3_0ONLY)
1054      return "GPL-3.0-only";
1055    if (code == SpdxLicense.GPL3_0ORLATER)
1056      return "GPL-3.0-or-later";
1057    if (code == SpdxLicense.GSOAP1_3B)
1058      return "gSOAP-1.3b";
1059    if (code == SpdxLicense.HASKELLREPORT)
1060      return "HaskellReport";
1061    if (code == SpdxLicense.HPND)
1062      return "HPND";
1063    if (code == SpdxLicense.IBMPIBS)
1064      return "IBM-pibs";
1065    if (code == SpdxLicense.ICU)
1066      return "ICU";
1067    if (code == SpdxLicense.IJG)
1068      return "IJG";
1069    if (code == SpdxLicense.IMAGEMAGICK)
1070      return "ImageMagick";
1071    if (code == SpdxLicense.IMATIX)
1072      return "iMatix";
1073    if (code == SpdxLicense.IMLIB2)
1074      return "Imlib2";
1075    if (code == SpdxLicense.INFOZIP)
1076      return "Info-ZIP";
1077    if (code == SpdxLicense.INTELACPI)
1078      return "Intel-ACPI";
1079    if (code == SpdxLicense.INTEL)
1080      return "Intel";
1081    if (code == SpdxLicense.INTERBASE1_0)
1082      return "Interbase-1.0";
1083    if (code == SpdxLicense.IPA)
1084      return "IPA";
1085    if (code == SpdxLicense.IPL1_0)
1086      return "IPL-1.0";
1087    if (code == SpdxLicense.ISC)
1088      return "ISC";
1089    if (code == SpdxLicense.JASPER2_0)
1090      return "JasPer-2.0";
1091    if (code == SpdxLicense.JSON)
1092      return "JSON";
1093    if (code == SpdxLicense.LAL1_2)
1094      return "LAL-1.2";
1095    if (code == SpdxLicense.LAL1_3)
1096      return "LAL-1.3";
1097    if (code == SpdxLicense.LATEX2E)
1098      return "Latex2e";
1099    if (code == SpdxLicense.LEPTONICA)
1100      return "Leptonica";
1101    if (code == SpdxLicense.LGPL2_0ONLY)
1102      return "LGPL-2.0-only";
1103    if (code == SpdxLicense.LGPL2_0ORLATER)
1104      return "LGPL-2.0-or-later";
1105    if (code == SpdxLicense.LGPL2_1ONLY)
1106      return "LGPL-2.1-only";
1107    if (code == SpdxLicense.LGPL2_1ORLATER)
1108      return "LGPL-2.1-or-later";
1109    if (code == SpdxLicense.LGPL3_0ONLY)
1110      return "LGPL-3.0-only";
1111    if (code == SpdxLicense.LGPL3_0ORLATER)
1112      return "LGPL-3.0-or-later";
1113    if (code == SpdxLicense.LGPLLR)
1114      return "LGPLLR";
1115    if (code == SpdxLicense.LIBPNG)
1116      return "Libpng";
1117    if (code == SpdxLicense.LIBTIFF)
1118      return "libtiff";
1119    if (code == SpdxLicense.LILIQP1_1)
1120      return "LiLiQ-P-1.1";
1121    if (code == SpdxLicense.LILIQR1_1)
1122      return "LiLiQ-R-1.1";
1123    if (code == SpdxLicense.LILIQRPLUS1_1)
1124      return "LiLiQ-Rplus-1.1";
1125    if (code == SpdxLicense.LINUXOPENIB)
1126      return "Linux-OpenIB";
1127    if (code == SpdxLicense.LPL1_0)
1128      return "LPL-1.0";
1129    if (code == SpdxLicense.LPL1_02)
1130      return "LPL-1.02";
1131    if (code == SpdxLicense.LPPL1_0)
1132      return "LPPL-1.0";
1133    if (code == SpdxLicense.LPPL1_1)
1134      return "LPPL-1.1";
1135    if (code == SpdxLicense.LPPL1_2)
1136      return "LPPL-1.2";
1137    if (code == SpdxLicense.LPPL1_3A)
1138      return "LPPL-1.3a";
1139    if (code == SpdxLicense.LPPL1_3C)
1140      return "LPPL-1.3c";
1141    if (code == SpdxLicense.MAKEINDEX)
1142      return "MakeIndex";
1143    if (code == SpdxLicense.MIROS)
1144      return "MirOS";
1145    if (code == SpdxLicense.MIT0)
1146      return "MIT-0";
1147    if (code == SpdxLicense.MITADVERTISING)
1148      return "MIT-advertising";
1149    if (code == SpdxLicense.MITCMU)
1150      return "MIT-CMU";
1151    if (code == SpdxLicense.MITENNA)
1152      return "MIT-enna";
1153    if (code == SpdxLicense.MITFEH)
1154      return "MIT-feh";
1155    if (code == SpdxLicense.MIT)
1156      return "MIT";
1157    if (code == SpdxLicense.MITNFA)
1158      return "MITNFA";
1159    if (code == SpdxLicense.MOTOSOTO)
1160      return "Motosoto";
1161    if (code == SpdxLicense.MPICH2)
1162      return "mpich2";
1163    if (code == SpdxLicense.MPL1_0)
1164      return "MPL-1.0";
1165    if (code == SpdxLicense.MPL1_1)
1166      return "MPL-1.1";
1167    if (code == SpdxLicense.MPL2_0NOCOPYLEFTEXCEPTION)
1168      return "MPL-2.0-no-copyleft-exception";
1169    if (code == SpdxLicense.MPL2_0)
1170      return "MPL-2.0";
1171    if (code == SpdxLicense.MSPL)
1172      return "MS-PL";
1173    if (code == SpdxLicense.MSRL)
1174      return "MS-RL";
1175    if (code == SpdxLicense.MTLL)
1176      return "MTLL";
1177    if (code == SpdxLicense.MULTICS)
1178      return "Multics";
1179    if (code == SpdxLicense.MUP)
1180      return "Mup";
1181    if (code == SpdxLicense.NASA1_3)
1182      return "NASA-1.3";
1183    if (code == SpdxLicense.NAUMEN)
1184      return "Naumen";
1185    if (code == SpdxLicense.NBPL1_0)
1186      return "NBPL-1.0";
1187    if (code == SpdxLicense.NCSA)
1188      return "NCSA";
1189    if (code == SpdxLicense.NETSNMP)
1190      return "Net-SNMP";
1191    if (code == SpdxLicense.NETCDF)
1192      return "NetCDF";
1193    if (code == SpdxLicense.NEWSLETR)
1194      return "Newsletr";
1195    if (code == SpdxLicense.NGPL)
1196      return "NGPL";
1197    if (code == SpdxLicense.NLOD1_0)
1198      return "NLOD-1.0";
1199    if (code == SpdxLicense.NLPL)
1200      return "NLPL";
1201    if (code == SpdxLicense.NOKIA)
1202      return "Nokia";
1203    if (code == SpdxLicense.NOSL)
1204      return "NOSL";
1205    if (code == SpdxLicense.NOWEB)
1206      return "Noweb";
1207    if (code == SpdxLicense.NPL1_0)
1208      return "NPL-1.0";
1209    if (code == SpdxLicense.NPL1_1)
1210      return "NPL-1.1";
1211    if (code == SpdxLicense.NPOSL3_0)
1212      return "NPOSL-3.0";
1213    if (code == SpdxLicense.NRL)
1214      return "NRL";
1215    if (code == SpdxLicense.NTP)
1216      return "NTP";
1217    if (code == SpdxLicense.OCCTPL)
1218      return "OCCT-PL";
1219    if (code == SpdxLicense.OCLC2_0)
1220      return "OCLC-2.0";
1221    if (code == SpdxLicense.ODBL1_0)
1222      return "ODbL-1.0";
1223    if (code == SpdxLicense.OFL1_0)
1224      return "OFL-1.0";
1225    if (code == SpdxLicense.OFL1_1)
1226      return "OFL-1.1";
1227    if (code == SpdxLicense.OGTSL)
1228      return "OGTSL";
1229    if (code == SpdxLicense.OLDAP1_1)
1230      return "OLDAP-1.1";
1231    if (code == SpdxLicense.OLDAP1_2)
1232      return "OLDAP-1.2";
1233    if (code == SpdxLicense.OLDAP1_3)
1234      return "OLDAP-1.3";
1235    if (code == SpdxLicense.OLDAP1_4)
1236      return "OLDAP-1.4";
1237    if (code == SpdxLicense.OLDAP2_0_1)
1238      return "OLDAP-2.0.1";
1239    if (code == SpdxLicense.OLDAP2_0)
1240      return "OLDAP-2.0";
1241    if (code == SpdxLicense.OLDAP2_1)
1242      return "OLDAP-2.1";
1243    if (code == SpdxLicense.OLDAP2_2_1)
1244      return "OLDAP-2.2.1";
1245    if (code == SpdxLicense.OLDAP2_2_2)
1246      return "OLDAP-2.2.2";
1247    if (code == SpdxLicense.OLDAP2_2)
1248      return "OLDAP-2.2";
1249    if (code == SpdxLicense.OLDAP2_3)
1250      return "OLDAP-2.3";
1251    if (code == SpdxLicense.OLDAP2_4)
1252      return "OLDAP-2.4";
1253    if (code == SpdxLicense.OLDAP2_5)
1254      return "OLDAP-2.5";
1255    if (code == SpdxLicense.OLDAP2_6)
1256      return "OLDAP-2.6";
1257    if (code == SpdxLicense.OLDAP2_7)
1258      return "OLDAP-2.7";
1259    if (code == SpdxLicense.OLDAP2_8)
1260      return "OLDAP-2.8";
1261    if (code == SpdxLicense.OML)
1262      return "OML";
1263    if (code == SpdxLicense.OPENSSL)
1264      return "OpenSSL";
1265    if (code == SpdxLicense.OPL1_0)
1266      return "OPL-1.0";
1267    if (code == SpdxLicense.OSETPL2_1)
1268      return "OSET-PL-2.1";
1269    if (code == SpdxLicense.OSL1_0)
1270      return "OSL-1.0";
1271    if (code == SpdxLicense.OSL1_1)
1272      return "OSL-1.1";
1273    if (code == SpdxLicense.OSL2_0)
1274      return "OSL-2.0";
1275    if (code == SpdxLicense.OSL2_1)
1276      return "OSL-2.1";
1277    if (code == SpdxLicense.OSL3_0)
1278      return "OSL-3.0";
1279    if (code == SpdxLicense.PDDL1_0)
1280      return "PDDL-1.0";
1281    if (code == SpdxLicense.PHP3_0)
1282      return "PHP-3.0";
1283    if (code == SpdxLicense.PHP3_01)
1284      return "PHP-3.01";
1285    if (code == SpdxLicense.PLEXUS)
1286      return "Plexus";
1287    if (code == SpdxLicense.POSTGRESQL)
1288      return "PostgreSQL";
1289    if (code == SpdxLicense.PSFRAG)
1290      return "psfrag";
1291    if (code == SpdxLicense.PSUTILS)
1292      return "psutils";
1293    if (code == SpdxLicense.PYTHON2_0)
1294      return "Python-2.0";
1295    if (code == SpdxLicense.QHULL)
1296      return "Qhull";
1297    if (code == SpdxLicense.QPL1_0)
1298      return "QPL-1.0";
1299    if (code == SpdxLicense.RDISC)
1300      return "Rdisc";
1301    if (code == SpdxLicense.RHECOS1_1)
1302      return "RHeCos-1.1";
1303    if (code == SpdxLicense.RPL1_1)
1304      return "RPL-1.1";
1305    if (code == SpdxLicense.RPL1_5)
1306      return "RPL-1.5";
1307    if (code == SpdxLicense.RPSL1_0)
1308      return "RPSL-1.0";
1309    if (code == SpdxLicense.RSAMD)
1310      return "RSA-MD";
1311    if (code == SpdxLicense.RSCPL)
1312      return "RSCPL";
1313    if (code == SpdxLicense.RUBY)
1314      return "Ruby";
1315    if (code == SpdxLicense.SAXPD)
1316      return "SAX-PD";
1317    if (code == SpdxLicense.SAXPATH)
1318      return "Saxpath";
1319    if (code == SpdxLicense.SCEA)
1320      return "SCEA";
1321    if (code == SpdxLicense.SENDMAIL)
1322      return "Sendmail";
1323    if (code == SpdxLicense.SGIB1_0)
1324      return "SGI-B-1.0";
1325    if (code == SpdxLicense.SGIB1_1)
1326      return "SGI-B-1.1";
1327    if (code == SpdxLicense.SGIB2_0)
1328      return "SGI-B-2.0";
1329    if (code == SpdxLicense.SIMPL2_0)
1330      return "SimPL-2.0";
1331    if (code == SpdxLicense.SISSL1_2)
1332      return "SISSL-1.2";
1333    if (code == SpdxLicense.SISSL)
1334      return "SISSL";
1335    if (code == SpdxLicense.SLEEPYCAT)
1336      return "Sleepycat";
1337    if (code == SpdxLicense.SMLNJ)
1338      return "SMLNJ";
1339    if (code == SpdxLicense.SMPPL)
1340      return "SMPPL";
1341    if (code == SpdxLicense.SNIA)
1342      return "SNIA";
1343    if (code == SpdxLicense.SPENCER86)
1344      return "Spencer-86";
1345    if (code == SpdxLicense.SPENCER94)
1346      return "Spencer-94";
1347    if (code == SpdxLicense.SPENCER99)
1348      return "Spencer-99";
1349    if (code == SpdxLicense.SPL1_0)
1350      return "SPL-1.0";
1351    if (code == SpdxLicense.SUGARCRM1_1_3)
1352      return "SugarCRM-1.1.3";
1353    if (code == SpdxLicense.SWL)
1354      return "SWL";
1355    if (code == SpdxLicense.TCL)
1356      return "TCL";
1357    if (code == SpdxLicense.TCPWRAPPERS)
1358      return "TCP-wrappers";
1359    if (code == SpdxLicense.TMATE)
1360      return "TMate";
1361    if (code == SpdxLicense.TORQUE1_1)
1362      return "TORQUE-1.1";
1363    if (code == SpdxLicense.TOSL)
1364      return "TOSL";
1365    if (code == SpdxLicense.UNICODEDFS2015)
1366      return "Unicode-DFS-2015";
1367    if (code == SpdxLicense.UNICODEDFS2016)
1368      return "Unicode-DFS-2016";
1369    if (code == SpdxLicense.UNICODETOU)
1370      return "Unicode-TOU";
1371    if (code == SpdxLicense.UNLICENSE)
1372      return "Unlicense";
1373    if (code == SpdxLicense.UPL1_0)
1374      return "UPL-1.0";
1375    if (code == SpdxLicense.VIM)
1376      return "Vim";
1377    if (code == SpdxLicense.VOSTROM)
1378      return "VOSTROM";
1379    if (code == SpdxLicense.VSL1_0)
1380      return "VSL-1.0";
1381    if (code == SpdxLicense.W3C19980720)
1382      return "W3C-19980720";
1383    if (code == SpdxLicense.W3C20150513)
1384      return "W3C-20150513";
1385    if (code == SpdxLicense.W3C)
1386      return "W3C";
1387    if (code == SpdxLicense.WATCOM1_0)
1388      return "Watcom-1.0";
1389    if (code == SpdxLicense.WSUIPA)
1390      return "Wsuipa";
1391    if (code == SpdxLicense.WTFPL)
1392      return "WTFPL";
1393    if (code == SpdxLicense.X11)
1394      return "X11";
1395    if (code == SpdxLicense.XEROX)
1396      return "Xerox";
1397    if (code == SpdxLicense.XFREE861_1)
1398      return "XFree86-1.1";
1399    if (code == SpdxLicense.XINETD)
1400      return "xinetd";
1401    if (code == SpdxLicense.XNET)
1402      return "Xnet";
1403    if (code == SpdxLicense.XPP)
1404      return "xpp";
1405    if (code == SpdxLicense.XSKAT)
1406      return "XSkat";
1407    if (code == SpdxLicense.YPL1_0)
1408      return "YPL-1.0";
1409    if (code == SpdxLicense.YPL1_1)
1410      return "YPL-1.1";
1411    if (code == SpdxLicense.ZED)
1412      return "Zed";
1413    if (code == SpdxLicense.ZEND2_0)
1414      return "Zend-2.0";
1415    if (code == SpdxLicense.ZIMBRA1_3)
1416      return "Zimbra-1.3";
1417    if (code == SpdxLicense.ZIMBRA1_4)
1418      return "Zimbra-1.4";
1419    if (code == SpdxLicense.ZLIBACKNOWLEDGEMENT)
1420      return "zlib-acknowledgement";
1421    if (code == SpdxLicense.ZLIB)
1422      return "Zlib";
1423    if (code == SpdxLicense.ZPL1_1)
1424      return "ZPL-1.1";
1425    if (code == SpdxLicense.ZPL2_0)
1426      return "ZPL-2.0";
1427    if (code == SpdxLicense.ZPL2_1)
1428      return "ZPL-2.1";
1429    return "?";
1430  }
1431
1432  public String toSystem(SpdxLicense code) {
1433    return code.getSystem();
1434  }
1435
1436}