org.re3data.schema._2_2.DataLicenseNames Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of base Show documentation
Show all versions of base Show documentation
A tool for machine actionable DMPs.
//
// This file was generated by the Eclipse Implementation of JAXB, v3.0.0
// See https://eclipse-ee4j.github.io/jaxb-ri
// Any modifications to this file will be lost upon recompilation of the source schema.
// Generated on: 2024.09.19 at 09:03:51 AM UTC
//
package org.re3data.schema._2_2;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* Java class for dataLicenseNames.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="dataLicenseNames">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="Apache License 2.0"/>
* <enumeration value="BSD"/>
* <enumeration value="CC"/>
* <enumeration value="CC0"/>
* <enumeration value="Copyrights"/>
* <enumeration value="ODC"/>
* <enumeration value="OGL"/>
* <enumeration value="OGLC"/>
* <enumeration value="Public Domain"/>
* <enumeration value="RL"/>
* <enumeration value="other"/>
* <enumeration value="none"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "dataLicenseNames")
@XmlEnum
public enum DataLicenseNames {
@XmlEnumValue("Apache License 2.0")
APACHE_LICENSE_2_0("Apache License 2.0"),
BSD("BSD"),
CC("CC"),
@XmlEnumValue("CC0")
CC_0("CC0"),
@XmlEnumValue("Copyrights")
COPYRIGHTS("Copyrights"),
ODC("ODC"),
OGL("OGL"),
OGLC("OGLC"),
@XmlEnumValue("Public Domain")
PUBLIC_DOMAIN("Public Domain"),
RL("RL"),
@XmlEnumValue("other")
OTHER("other"),
@XmlEnumValue("none")
NONE("none");
private final String value;
DataLicenseNames(String v) {
value = v;
}
public String value() {
return value;
}
public static DataLicenseNames fromValue(String v) {
for (DataLicenseNames c: DataLicenseNames.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}