/**
* =============================================================================
*
* ORCID (R) Open Source
* http://orcid.org
*
* Copyright (c) 2012-2014 ORCID, Inc.
* Licensed under an MIT-Style License (MIT)
* http://orcid.org/open-source-license
*
* This copyright and license information (including a link to the full license)
* shall be included in its entirety in all copies or substantial portion of
* the software.
*
* =============================================================================
*/
package org.orcid.jaxb.model.record_v2;
import java.io.Serializable;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
@XmlType(name = "role")
@XmlEnum
public enum Role implements Serializable {
@XmlEnumValue("reviewer")
REVIEWER("reviewer"),
@XmlEnumValue("editor")
EDITOR("editor"),
@XmlEnumValue("member")
MEMBER("member"),
@XmlEnumValue("chair")
CHAIR("chair"),
@XmlEnumValue("organizer")
ORGANIZER("organizer");
private final String value;
Role(String v) {
value = v;
}
public String value() {
return value;
}
public static Role fromValue(String v) {
for (Role c : Role.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}