com.bytekast.netsuite.client.RecurrenceFrequency Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netsuite-suitetalk Show documentation
Show all versions of netsuite-suitetalk Show documentation
Client API for NetSuite Suitetalk Web Services
The newest version!
package com.bytekast.netsuite.client;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
/**
* Java class for RecurrenceFrequency.
*
*
The following schema fragment specifies the expected content contained within this class.
*
*
* <simpleType name="RecurrenceFrequency">
* <restriction base="{http://www.w3.org/2001/XMLSchema}string">
* <enumeration value="_none"/>
* <enumeration value="_day"/>
* <enumeration value="_week"/>
* <enumeration value="_month"/>
* <enumeration value="_year"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "RecurrenceFrequency", namespace = "urn:types.common_2017_1.platform.webservices.netsuite.com")
@XmlEnum
public enum RecurrenceFrequency {
@XmlEnumValue("_none")
NONE("_none"),
@XmlEnumValue("_day")
DAY("_day"),
@XmlEnumValue("_week")
WEEK("_week"),
@XmlEnumValue("_month")
MONTH("_month"),
@XmlEnumValue("_year")
YEAR("_year");
private final String value;
RecurrenceFrequency(String v) {
value = v;
}
public String value() {
return value;
}
public static RecurrenceFrequency fromValue(String v) {
for (RecurrenceFrequency c: RecurrenceFrequency.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}