net.finmath.smartcontract.product.xml.InterpolationPeriodEnum 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 InterpolationPeriodEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="InterpolationPeriodEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="Initial"/>
* <enumeration value="InitialAndFinal"/>
* <enumeration value="Final"/>
* <enumeration value="AnyPeriod"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "InterpolationPeriodEnum")
@XmlEnum
public enum InterpolationPeriodEnum {
/**
* Interpolation is applicable to the initial period only.
*
*
*/
@XmlEnumValue("Initial")
INITIAL("Initial"),
/**
* Interpolation is applicable to the initial and final periods
* only.
*
*
*/
@XmlEnumValue("InitialAndFinal")
INITIAL_AND_FINAL("InitialAndFinal"),
/**
* Interpolation is applicable to the final period only.
*
*
*/
@XmlEnumValue("Final")
FINAL("Final"),
/**
* Interpolation is applicable to any non-standard period.
*
*
*/
@XmlEnumValue("AnyPeriod")
ANY_PERIOD("AnyPeriod");
private final String value;
InterpolationPeriodEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static InterpolationPeriodEnum fromValue(String v) {
for (InterpolationPeriodEnum c: InterpolationPeriodEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy