net.finmath.smartcontract.product.xml.PutCallEnum 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 PutCallEnum.
*
*
The following schema fragment specifies the expected content contained within this class.
*
* <simpleType name="PutCallEnum">
* <restriction base="{http://www.w3.org/2001/XMLSchema}token">
* <enumeration value="Put"/>
* <enumeration value="Call"/>
* </restriction>
* </simpleType>
*
*
*/
@XmlType(name = "PutCallEnum")
@XmlEnum
public enum PutCallEnum {
/**
* A put option gives the holder the
* right to sell the underlying asset by a certain date for a certain price.
*
*
*/
@XmlEnumValue("Put")
PUT("Put"),
/**
* A call option gives the holder the
* right to buy the underlying asset by a certain date for a certain price.
*
*
*/
@XmlEnumValue("Call")
CALL("Call");
private final String value;
PutCallEnum(String v) {
value = v;
}
public String value() {
return value;
}
public static PutCallEnum fromValue(String v) {
for (PutCallEnum c: PutCallEnum.values()) {
if (c.value.equals(v)) {
return c;
}
}
throw new IllegalArgumentException(v);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy