All Downloads are FREE. Search and download functionalities are using the official Maven repository.

jdplus.x13.base.xml.RegressionTestEnum Maven / Gradle / Ivy

There is a newer version: 3.3.0
Show newest version
/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package jdplus.x13.base.xml;

import jdplus.x13.base.api.regarima.RegressionTestSpec;
import javax.xml.bind.annotation.XmlEnum;
import javax.xml.bind.annotation.XmlEnumValue;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlAdapter;

/**
 * 

* Java class for TradingDaysTestEnum. * *

* The following schema fragment specifies the expected content contained within * this class. *

* < * pre> * <simpleType name="TradingDaysTestEnum"> <restriction * base="{http://www.w3.org/2001/XMLSchema}NMTOKEN"> <enumeration * value="JointF"/> <enumeration value="T"/> </restriction> * </simpleType> *

* */ @XmlType(name = "RegressionTestEnum") @XmlEnum public enum RegressionTestEnum { @XmlEnumValue("None") NONE("None"), ADD("Add"), REMOVE("Remove"); private final String value; RegressionTestEnum(String v) { value = v; } public String value() { return value; } public static RegressionTestEnum fromValue(String v) { for (RegressionTestEnum c : RegressionTestEnum.values()) { if (c.value.equals(v)) { return c; } } throw new IllegalArgumentException(v); } public static class Adapter extends XmlAdapter { @Override public RegressionTestSpec unmarshal(RegressionTestEnum v) throws Exception { if (v == null) { return RegressionTestSpec.None; } switch (v) { case ADD: return RegressionTestSpec.Add; case REMOVE: return RegressionTestSpec.Remove; default: return RegressionTestSpec.None; } } @Override public RegressionTestEnum marshal(RegressionTestSpec v) throws Exception { switch (v) { case Add: return RegressionTestEnum.ADD; case Remove: return RegressionTestEnum.REMOVE; default: return null; } } } }



© 2015 - 2025 Weber Informatics LLC | Privacy Policy