net.finmath.smartcontract.product.xml.FxTenorPeriodEnum Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-smart-derivative-contract Show documentation
Show all versions of finmath-smart-derivative-contract Show documentation
Project to support the implementation a of smart derivative contract.
//
// 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.12.05 at 10:53:57 AM CET
//
package net.finmath.smartcontract.product.xml;
import jakarta.xml.bind.annotation.XmlEnum;
import jakarta.xml.bind.annotation.XmlEnumValue;
import jakarta.xml.bind.annotation.XmlType;
/**
* Java class for FxTenorPeriodEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="FxTenorPeriodEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="Broken"/>
* <enumeration value="Today"/>
* <enumeration value="Tomorrow"/>
* <enumeration value="TomorrowNext"/>
* <enumeration value="Spot"/>
* <enumeration value="SpotNext"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "FxTenorPeriodEnum")
@XmlEnum
public enum FxTenorPeriodEnum {
/**
* Broken/non conventional Tenor
* Period.
*
*
*/
@XmlEnumValue("Broken")
BROKEN("Broken"),
/**
* Today Tenor Period.
*
*
*/
@XmlEnumValue("Today")
TODAY("Today"),
/**
* Tomorrow Tenor Period.
*
*
*/
@XmlEnumValue("Tomorrow")
TOMORROW("Tomorrow"),
/**
* Day after Tomorrow Tenor Period.
*
*
*/
@XmlEnumValue("TomorrowNext")
TOMORROW_NEXT("TomorrowNext"),
/**
* Spot Tenor Period.
*
*/
@XmlEnumValue("Spot")
SPOT("Spot"),
/**
* Day after Spot Tenor period.
*
*
*/
@XmlEnumValue("SpotNext")
SPOT_NEXT("SpotNext");
private final String value;
FxTenorPeriodEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static FxTenorPeriodEnum fromValue(String v) {
for (FxTenorPeriodEnum c: FxTenorPeriodEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy