net.finmath.smartcontract.product.xml.BusinessDayConventionEnum Maven / Gradle / Ivy
//
// 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 BusinessDayConventionEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="BusinessDayConventionEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="FOLLOWING"/>
* <enumeration value="FRN"/>
* <enumeration value="MODFOLLOWING"/>
* <enumeration value="PRECEDING"/>
* <enumeration value="MODPRECEDING"/>
* <enumeration value="NEAREST"/>
* <enumeration value="NONE"/>
* <enumeration value="NotApplicable"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "BusinessDayConventionEnum")
@XmlEnum
public enum BusinessDayConventionEnum {
/**
* The non-business date will be adjusted
* to the first following day that is a business day
*
*
*/
FOLLOWING("FOLLOWING"),
/**
* Per 2000 ISDA Definitions, Section
* 4.11. FRN Convention; Eurodollar Convention.
*
*
*/
FRN("FRN"),
/**
* The non-business date will be adjusted
* to the first following day that is a business day unless that day falls in the next calendar
* month, in which case that date will be the first preceding day that is a business day.
*
*
*/
MODFOLLOWING("MODFOLLOWING"),
/**
* The non-business day will be adjusted
* to the first preceding day that is a business day.
*
*
*/
PRECEDING("PRECEDING"),
/**
* The non-business date will be adjusted
* to the first preceding day that is a business day unless that day falls in the previous calendar
* month, in which case that date will be the first following day that us a business day.
*
*
*/
MODPRECEDING("MODPRECEDING"),
/**
* The non-business date will be adjusted
* to the nearest day that is a business day - i.e. if the non-business day falls on any day other
* than a Sunday or a Monday, it will be the first preceding day that is a business day, and will
* be the first following business day if it falls on a Sunday or a Monday.
*
*
*/
NEAREST("NEAREST"),
/**
* The date will not be adjusted if it
* falls on a day that is not a business day.
*
*
*/
NONE("NONE"),
/**
* The date adjustments conventions are
* defined elsewhere, so it is not required to specify them here.
*
*
*/
@XmlEnumValue("NotApplicable")
NOT_APPLICABLE("NotApplicable");
private final String value;
BusinessDayConventionEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static BusinessDayConventionEnum fromValue(String v) {
for (BusinessDayConventionEnum c: BusinessDayConventionEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy