org.apache.creadur.whisker.app
public enum LicenseConfiguration extends Enum<LicenseConfiguration>
Enum Constant and Description |
---|
INCLUDE_SOURCE_URLS
Include source URLs in the LICENSE (as well as the NOTICE)
|
MINIMAL
The essentials only.
|
Modifier and Type | Field and Description |
---|---|
static LicenseConfiguration |
DEFAULT_LICENSE_CONFIGURATION
Default to include source URLs.
|
Modifier and Type | Method and Description |
---|---|
boolean |
includeSourceUrlsInLicense()
Should source URLs be included in the LICENSE?
|
static LicenseConfiguration |
notNull(LicenseConfiguration configuration)
Replaces null with DEFAULT_LICENSE_CONFIGURATION.
|
static LicenseConfiguration |
valueOf(String name)
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.
|
public static final LicenseConfiguration INCLUDE_SOURCE_URLS
public static final LicenseConfiguration MINIMAL
public static LicenseConfiguration DEFAULT_LICENSE_CONFIGURATION
public static LicenseConfiguration[] values()
for (LicenseConfiguration c : LicenseConfiguration.values()) System.out.println(c);
public static LicenseConfiguration 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 nullpublic static LicenseConfiguration notNull(LicenseConfiguration configuration)
configuration
- possibly nullpublic boolean includeSourceUrlsInLicense()
Copyright © 2011-2013 Apache Software Foundation. All Rights Reserved.