Package com.helger.base.thirdparty
Enum Class ELicense
- All Implemented Interfaces:
IHasID<String>,IHasDisplayName,ILicense,IHasVersion,Serializable,Comparable<ELicense>,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 TypeMethodDescription@NonNull @Nonempty Stringstatic @Nullable ELicensegetFromIDOrNull(@Nullable String sID) Find the license with the given ID.@NonNull @Nonempty StringgetID()Get the unique ID of this object.@Nullable StringgetURL()@Nullable Versionstatic ELicenseReturns the enum constant of this class with the specified name.static ELicense[]values()Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class 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 license. Neither
nullnor empty.
-
getVersion
- Specified by:
getVersionin interfaceIHasVersion- Returns:
- The version of this license. May be
null.
-
getURL
-
getFromIDOrNull
Find the license with the given ID.- Parameters:
sID- The ID to search for. May benull.- Returns:
nullif no such license exists.
-