com.prowidesoftware.swift.model.mx.dic.CurrentAndDefaultReservation1 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.util.ArrayList;
import java.util.List;
import jakarta.xml.bind.annotation.XmlAccessType;
import jakarta.xml.bind.annotation.XmlAccessorType;
import jakarta.xml.bind.annotation.XmlElement;
import jakarta.xml.bind.annotation.XmlType;
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;
/**
* Reports on reservations.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CurrentAndDefaultReservation1", propOrder = {
"curRsvatn",
"dfltRsvatn"
})
public class CurrentAndDefaultReservation1 {
@XmlElement(name = "CurRsvatn")
protected List curRsvatn;
@XmlElement(name = "DfltRsvatn")
protected List dfltRsvatn;
/**
* Gets the value of the curRsvatn 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 curRsvatn property.
*
*
* For example, to add a new item, do as follows:
*
* getCurRsvatn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ReservationReport3 }
*
*
* @return
* The value of the curRsvatn property.
*/
public List getCurRsvatn() {
if (curRsvatn == null) {
curRsvatn = new ArrayList<>();
}
return this.curRsvatn;
}
/**
* Gets the value of the dfltRsvatn 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 dfltRsvatn property.
*
*
* For example, to add a new item, do as follows:
*
* getDfltRsvatn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ReservationReport3 }
*
*
* @return
* The value of the dfltRsvatn property.
*/
public List getDfltRsvatn() {
if (dfltRsvatn == null) {
dfltRsvatn = new ArrayList<>();
}
return this.dfltRsvatn;
}
@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 curRsvatn list.
* @see #getCurRsvatn()
*
*/
public CurrentAndDefaultReservation1 addCurRsvatn(ReservationReport3 curRsvatn) {
getCurRsvatn().add(curRsvatn);
return this;
}
/**
* Adds a new item to the dfltRsvatn list.
* @see #getDfltRsvatn()
*
*/
public CurrentAndDefaultReservation1 addDfltRsvatn(ReservationReport3 dfltRsvatn) {
getDfltRsvatn().add(dfltRsvatn);
return this;
}
}