Package org.apache.creadur.whisker.app
Enum LicenseConfiguration
- All Implemented Interfaces:
Serializable
,Comparable<LicenseConfiguration>
,java.lang.constant.Constable
Enumerates
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionInclude source URLs in the LICENSE (as well as the NOTICE)The essentials only. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Should source URLs be included in the LICENSE?static LicenseConfiguration
notNull
(LicenseConfiguration configuration) Replaces null with DEFAULT_LICENSE_CONFIGURATION.static LicenseConfiguration
Returns the enum constant of this type with the specified name.static LicenseConfiguration[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INCLUDE_SOURCE_URLS
Include source URLs in the LICENSE (as well as the NOTICE) -
MINIMAL
The essentials only.
-
-
Field Details
-
DEFAULT_LICENSE_CONFIGURATION
Default to include source URLs.
-
-
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
-
notNull
Replaces null with DEFAULT_LICENSE_CONFIGURATION.- Parameters:
configuration
- possibly null- Returns:
- not null
-
includeSourceUrlsInLicense
public boolean includeSourceUrlsInLicense()Should source URLs be included in the LICENSE?- Returns:
- true when source URLs should be included, false otherwise
-