All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.prowidesoftware.swift.model.mx.dic.OptionOrSwaption4 Maven / Gradle / Ivy

The newest version!

package com.prowidesoftware.swift.model.mx.dic;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateAdapter;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlSchemaType;
import jakarta.xml.bind.annotation.XmlType;
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * Option or swaption related attributes.
 * 
 * 
 * 
 */
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "OptionOrSwaption4", propOrder = {
    "optnTp",
    "strkPric",
    "optnExrcStyle",
    "mtrtyDtOfUndrlyg"
})
public class OptionOrSwaption4 {

    @XmlElement(name = "OptnTp")
    @XmlSchemaType(name = "string")
    protected OptionType2Code optnTp;
    @XmlElement(name = "StrkPric")
    protected SecuritiesTransactionPrice3Choice strkPric;
    @XmlElement(name = "OptnExrcStyle")
    @XmlSchemaType(name = "string")
    protected List optnExrcStyle;
    @XmlElement(name = "MtrtyDtOfUndrlyg", type = String.class)
    @XmlJavaTypeAdapter(IsoDateAdapter.class)
    @XmlSchemaType(name = "date")
    protected LocalDate mtrtyDtOfUndrlyg;

    /**
     * Gets the value of the optnTp property.
     * 
     * @return
     *     possible object is
     *     {@link OptionType2Code }
     *     
     */
    public OptionType2Code getOptnTp() {
        return optnTp;
    }

    /**
     * Sets the value of the optnTp property.
     * 
     * @param value
     *     allowed object is
     *     {@link OptionType2Code }
     *     
     */
    public OptionOrSwaption4 setOptnTp(OptionType2Code value) {
        this.optnTp = value;
        return this;
    }

    /**
     * Gets the value of the strkPric property.
     * 
     * @return
     *     possible object is
     *     {@link SecuritiesTransactionPrice3Choice }
     *     
     */
    public SecuritiesTransactionPrice3Choice getStrkPric() {
        return strkPric;
    }

    /**
     * Sets the value of the strkPric property.
     * 
     * @param value
     *     allowed object is
     *     {@link SecuritiesTransactionPrice3Choice }
     *     
     */
    public OptionOrSwaption4 setStrkPric(SecuritiesTransactionPrice3Choice value) {
        this.strkPric = value;
        return this;
    }

    /**
     * Gets the value of the optnExrcStyle property.
     * 
     * 

* This accessor method returns a reference to the live list, * not a snapshot. Therefore any modification you make to the * returned list will be present inside the Jakarta XML Binding object. * This is why there is not a {@code set} method for the optnExrcStyle property. * *

* For example, to add a new item, do as follows: *

     *    getOptnExrcStyle().add(newItem);
     * 
* * *

* Objects of the following type(s) are allowed in the list * {@link OptionStyle6Code } * * * @return * The value of the optnExrcStyle property. */ public List getOptnExrcStyle() { if (optnExrcStyle == null) { optnExrcStyle = new ArrayList<>(); } return this.optnExrcStyle; } /** * Gets the value of the mtrtyDtOfUndrlyg property. * * @return * possible object is * {@link String } * */ public LocalDate getMtrtyDtOfUndrlyg() { return mtrtyDtOfUndrlyg; } /** * Sets the value of the mtrtyDtOfUndrlyg property. * * @param value * allowed object is * {@link String } * */ public OptionOrSwaption4 setMtrtyDtOfUndrlyg(LocalDate value) { this.mtrtyDtOfUndrlyg = value; return this; } @Override public String toString() { return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE); } @Override public boolean equals(Object that) { return EqualsBuilder.reflectionEquals(this, that); } @Override public int hashCode() { return HashCodeBuilder.reflectionHashCode(this); } /** * Adds a new item to the optnExrcStyle list. * @see #getOptnExrcStyle() * */ public OptionOrSwaption4 addOptnExrcStyle(OptionStyle6Code optnExrcStyle) { getOptnExrcStyle().add(optnExrcStyle); return this; } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy