net.finmath.smartcontract.product.xml.RepoDurationEnum 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 RepoDurationEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="RepoDurationEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="Overnight"/>
* <enumeration value="Term"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "RepoDurationEnum")
@XmlEnum
public enum RepoDurationEnum {
/**
* Indicates that a contract is classified as overnight, meaning that
* there is one business day difference between the start and end date of the contract. Business
* rule: When the repo is overnight, the number of business days between the spot and forward value
* dates must be one. Forward leg must be specified.
*
*
*/
@XmlEnumValue("Overnight")
OVERNIGHT("Overnight"),
/**
* Indicates that a contract is a regular term contract, with a start
* date and an end date. Business rule: When the repo is 'Term', both spot and forward legs must be
* specified.
*
*
*/
@XmlEnumValue("Term")
TERM("Term");
private final String value;
RepoDurationEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static RepoDurationEnum fromValue(String v) {
for (RepoDurationEnum c: RepoDurationEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy