Enum KnownLicense
- java.lang.Object
-
- java.lang.Enum<KnownLicense>
-
- org.wildfly.maven.plugins.licenses.KnownLicense
-
- All Implemented Interfaces:
Serializable,Comparable<KnownLicense>
public enum KnownLicense extends Enum<KnownLicense>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APACHE_1_1APACHE_2_0BSD_2_CLAUSEBSD_3_CLAUSECC_2_5CC0CPLEDL_1_0EPL_1_0EPL_2_0FSF_ALLGPL_2_0_W_CPEINDIANA_UNIVERSITY_EXTREMELGPL_2_0_ONLYLGPL_2_1_LATERLGPL_2_1_ONLYLGPL_3_0_LATERLGPL_3_0_ONLYMITMIT_0MPL_1_1MPL_2_0PUBLIC_DOMAIN
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Map<String,org.apache.maven.model.License>toMap()static KnownLicensevalueOf(String name)Returns the enum constant of this type with the specified name.static KnownLicense[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APACHE_1_1
public static final KnownLicense APACHE_1_1
-
APACHE_2_0
public static final KnownLicense APACHE_2_0
-
BSD_2_CLAUSE
public static final KnownLicense BSD_2_CLAUSE
-
BSD_3_CLAUSE
public static final KnownLicense BSD_3_CLAUSE
-
CPL
public static final KnownLicense CPL
-
CC0
public static final KnownLicense CC0
-
CC_2_5
public static final KnownLicense CC_2_5
-
EDL_1_0
public static final KnownLicense EDL_1_0
-
EPL_1_0
public static final KnownLicense EPL_1_0
-
EPL_2_0
public static final KnownLicense EPL_2_0
-
FSF_ALL
public static final KnownLicense FSF_ALL
-
GPL_2_0_W_CPE
public static final KnownLicense GPL_2_0_W_CPE
-
LGPL_2_0_ONLY
public static final KnownLicense LGPL_2_0_ONLY
-
LGPL_2_1_ONLY
public static final KnownLicense LGPL_2_1_ONLY
-
LGPL_2_1_LATER
public static final KnownLicense LGPL_2_1_LATER
-
LGPL_3_0_ONLY
public static final KnownLicense LGPL_3_0_ONLY
-
LGPL_3_0_LATER
public static final KnownLicense LGPL_3_0_LATER
-
INDIANA_UNIVERSITY_EXTREME
public static final KnownLicense INDIANA_UNIVERSITY_EXTREME
-
MIT_0
public static final KnownLicense MIT_0
-
MIT
public static final KnownLicense MIT
-
MPL_1_1
public static final KnownLicense MPL_1_1
-
MPL_2_0
public static final KnownLicense MPL_2_0
-
PUBLIC_DOMAIN
public static final KnownLicense PUBLIC_DOMAIN
-
-
Method Detail
-
values
public static KnownLicense[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KnownLicense c : KnownLicense.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KnownLicense valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-