public enum RightsOption extends Enum<RightsOption>
| Enum Constant and Description |
|---|
CC_BY
http://creativecommons.org/licenses/by/
|
CC_BY_NC
http://creativecommons.org/licenses/by-nc/
|
CC_BY_NC_ND
http://creativecommons.org/licenses/by-nc-nd/
|
CC_BY_NC_SA
http://creativecommons.org/licenses/by-nc-sa/
|
CC_BY_ND
http://creativecommons.org/licenses/by-nd/
|
CC_BY_SA
http://creativecommons.org/licenses/by-sa/
|
CC_ZERO
http://creativecommons.org/publicdomain/zero
|
EU_ORPHAN
http://www.europeana.eu/rights/test-orphan-work-test/
|
EU_RR_F
http://www.europeana.eu/rights/rr-f/
|
EU_RR_P
http://www.europeana.eu/rights/rr-p/
|
EU_RR_R
http://www.europeana.eu/rights/rr-r/
|
EU_U
http://www.europeana.eu/rights/unknown/
|
NOC
http://creativecommons.org/publicdomain/mark/
|
OOC_NC
http://www.europeana.eu/rights/out-of-copyright-non-commercial/
|
| Modifier and Type | Method and Description |
|---|---|
String |
getRelativeUrl(String portalUrl) |
String |
getRightsIcon()
Returns the url of the icon associated with the results
|
String |
getRightsText()
Return text associated with the rights
|
boolean |
getShowExternalIcon()
Returns the url of the icon associated with the results
|
String |
getUrl()
Returns the full Url associated with the rights
|
boolean |
isRelativeUrl() |
static RightsOption |
safeValueByUrl(String url) |
static RightsOption |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RightsOption[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RightsOption CC_ZERO
public static final RightsOption CC_BY
public static final RightsOption CC_BY_SA
public static final RightsOption CC_BY_NC_SA
public static final RightsOption CC_BY_ND
public static final RightsOption CC_BY_NC
public static final RightsOption CC_BY_NC_ND
public static final RightsOption NOC
public static final RightsOption EU_RR_F
public static final RightsOption EU_RR_P
public static final RightsOption EU_RR_R
public static final RightsOption EU_ORPHAN
public static final RightsOption EU_U
public static final RightsOption OOC_NC
public static RightsOption[] values()
for (RightsOption c : RightsOption.values()) System.out.println(c);
public static RightsOption 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 getUrl()
public String getRightsText()
public String getRightsIcon()
public boolean getShowExternalIcon()
public static RightsOption safeValueByUrl(String url)
public boolean isRelativeUrl()
Copyright © 2015 Europeana Foundation. All rights reserved.