public enum LicenseType extends Enum<LicenseType>
| Enum Constant and Description |
|---|
CC0 |
CCBYSA3 |
CCBYSA4 |
COPYRIGHTED |
MIXED |
PUBLIC_DOMAIN |
| Modifier and Type | Method and Description |
|---|---|
static LicenseType |
fromString(String license) |
String |
getUri() |
void |
setUri(String uri) |
static LicenseType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LicenseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LicenseType COPYRIGHTED
public static final LicenseType PUBLIC_DOMAIN
public static final LicenseType CCBYSA3
public static final LicenseType CCBYSA4
public static final LicenseType CC0
public static final LicenseType MIXED
public static LicenseType[] values()
for (LicenseType c : LicenseType.values()) System.out.println(c);
public static LicenseType 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 String getUri()
public void setUri(String uri)
public static LicenseType fromString(String license)
Copyright © 2019. All rights reserved.