public enum ELicense extends Enum<ELicense> implements ILicense
| Enum Constant and Description |
|---|
AGPL30 |
APACHE1 |
APACHE2 |
BSD |
BSD3 |
CCBY10 |
CCBY20 |
CCBY25 |
CCBY30 |
CCBY40 |
EPL10 |
EUPL11 |
EUPL12 |
FDL11 |
FDL12 |
FDL13 |
GPL10 |
GPL20 |
GPL30 |
LGPL20 |
LGPL21 |
LGPL30 |
MIT |
MPL10 |
MPL11 |
MPL20 |
PUBLIC_DOMAIN |
| Modifier and Type | Method and Description |
|---|---|
String |
getDisplayName() |
static ELicense |
getFromIDOrNull(String sID) |
String |
getID()
Get the unique ID of this object.
|
String |
getURL() |
Version |
getVersion() |
static ELicense |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ELicense[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfgetComparatorIDgetComparatorCollatingpublic static final ELicense APACHE1
public static final ELicense APACHE2
public static final ELicense MPL10
public static final ELicense MPL11
public static final ELicense MPL20
public static final ELicense BSD
public static final ELicense BSD3
public static final ELicense MIT
public static final ELicense GPL10
public static final ELicense GPL20
public static final ELicense GPL30
public static final ELicense LGPL20
public static final ELicense LGPL21
public static final ELicense LGPL30
public static final ELicense AGPL30
public static final ELicense FDL11
public static final ELicense FDL12
public static final ELicense FDL13
public static final ELicense EPL10
public static final ELicense EUPL11
public static final ELicense EUPL12
public static final ELicense CCBY10
public static final ELicense CCBY20
public static final ELicense CCBY25
public static final ELicense CCBY30
public static final ELicense CCBY40
public static final ELicense PUBLIC_DOMAIN
public static ELicense[] values()
for (ELicense c : ELicense.values()) System.out.println(c);
public static ELicense valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is null@Nonnull @Nonempty public String getID()
IHasIDString than the
returned value must match an XML NMToken expression (so e.g. no ':' in the
ID)!@Nonnull @Nonempty public String getDisplayName()
getDisplayName in interface IHasDisplayNamenull.@Nullable public Version getVersion()
getVersion in interface IHasVersionnull
.Copyright © 2014–2016 Philip Helger. All rights reserved.