Package com.helger.commons.thirdparty
Enum ELicense
- All Implemented Interfaces:
IHasID<String>,IHasDisplayName,ILicense,IHasVersion,Serializable,Comparable<ELicense>,java.lang.constant.Constable
Represents a bunch of Open Source licenses regularly used.
- Author:
- Philip Helger
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ELicensegetFromIDOrNull(String sID) getID()Get the unique ID of this object.getURL()static ELicenseReturns 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.
-
Enum Constant Details
-
APACHE1
-
APACHE2
-
MPL10
-
MPL11
-
MPL20
-
BSD
-
BSD3
-
MIT
-
GPL10
-
GPL20
-
GPL20CP
-
GPL30
-
LGPL20
-
LGPL21
-
LGPL30
-
AGPL30
-
FDL11
-
FDL12
-
FDL13
-
EPL10
-
EPL20
-
EDL10
-
EUPL11
-
EUPL12
-
CCBY10
-
CCBY20
-
CCBY25
-
CCBY30
-
CCBY40
-
PUBLIC_DOMAIN
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getID
Description copied from interface:IHasIDGet the unique ID of this object. If the type isStringthan the returned value must match an XML NMToken expression (so e.g. no ':' in the ID)! -
getDisplayName
- Specified by:
getDisplayNamein interfaceIHasDisplayName- Returns:
- The display name of this object. Should never be
null.
-
getVersion
- Specified by:
getVersionin interfaceIHasVersion- Returns:
- The version number of the object. No assumption on nullable can be done.
-
getURL
-
getFromIDOrNull
-