com.prowidesoftware.swift.model.mx.dic.DateAndPeriod2Choice Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pw-iso20022 Show documentation
Show all versions of pw-iso20022 Show documentation
Prowide Library for ISO 20022 messages
The newest version!
package com.prowidesoftware.swift.model.mx.dic;
import java.time.LocalDate;
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;
/**
* Choice between a date and period.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DateAndPeriod2Choice", propOrder = {
"dt",
"prd",
"frDt",
"toDt"
})
public class DateAndPeriod2Choice {
@XmlElement(name = "Dt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate dt;
@XmlElement(name = "Prd")
protected Period2 prd;
@XmlElement(name = "FrDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate frDt;
@XmlElement(name = "ToDt", type = String.class)
@XmlJavaTypeAdapter(IsoDateAdapter.class)
@XmlSchemaType(name = "date")
protected LocalDate toDt;
/**
* Gets the value of the dt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getDt() {
return dt;
}
/**
* Sets the value of the dt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public DateAndPeriod2Choice setDt(LocalDate value) {
this.dt = value;
return this;
}
/**
* Gets the value of the prd property.
*
* @return
* possible object is
* {@link Period2 }
*
*/
public Period2 getPrd() {
return prd;
}
/**
* Sets the value of the prd property.
*
* @param value
* allowed object is
* {@link Period2 }
*
*/
public DateAndPeriod2Choice setPrd(Period2 value) {
this.prd = value;
return this;
}
/**
* Gets the value of the frDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getFrDt() {
return frDt;
}
/**
* Sets the value of the frDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public DateAndPeriod2Choice setFrDt(LocalDate value) {
this.frDt = value;
return this;
}
/**
* Gets the value of the toDt property.
*
* @return
* possible object is
* {@link String }
*
*/
public LocalDate getToDt() {
return toDt;
}
/**
* Sets the value of the toDt property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public DateAndPeriod2Choice setToDt(LocalDate value) {
this.toDt = 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);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy