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