com.prowidesoftware.swift.model.mx.dic.ATMCassette2 Maven / Gradle / Ivy
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.XmlSchemaType;
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;
/**
* Information on the cassette of an ATM.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ATMCassette2", propOrder = {
"physId",
"logclId",
"srlNb",
"tp",
"subTp",
"mdiaTp",
"mdiaCntrs"
})
public class ATMCassette2 {
@XmlElement(name = "PhysId")
protected String physId;
@XmlElement(name = "LogclId", required = true)
protected String logclId;
@XmlElement(name = "SrlNb")
protected String srlNb;
@XmlElement(name = "Tp", required = true)
@XmlSchemaType(name = "string")
protected ATMCassetteType1Code tp;
@XmlElement(name = "SubTp")
@XmlSchemaType(name = "string")
protected List subTp;
@XmlElement(name = "MdiaTp")
@XmlSchemaType(name = "string")
protected ATMMediaType1Code mdiaTp;
@XmlElement(name = "MdiaCntrs")
protected List mdiaCntrs;
/**
* Gets the value of the physId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPhysId() {
return physId;
}
/**
* Sets the value of the physId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public ATMCassette2 setPhysId(String value) {
this.physId = value;
return this;
}
/**
* Gets the value of the logclId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getLogclId() {
return logclId;
}
/**
* Sets the value of the logclId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public ATMCassette2 setLogclId(String value) {
this.logclId = value;
return this;
}
/**
* Gets the value of the srlNb property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getSrlNb() {
return srlNb;
}
/**
* Sets the value of the srlNb property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public ATMCassette2 setSrlNb(String value) {
this.srlNb = value;
return this;
}
/**
* Gets the value of the tp property.
*
* @return
* possible object is
* {@link ATMCassetteType1Code }
*
*/
public ATMCassetteType1Code getTp() {
return tp;
}
/**
* Sets the value of the tp property.
*
* @param value
* allowed object is
* {@link ATMCassetteType1Code }
*
*/
public ATMCassette2 setTp(ATMCassetteType1Code value) {
this.tp = value;
return this;
}
/**
* Gets the value of the subTp 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 subTp property.
*
*
* For example, to add a new item, do as follows:
*
* getSubTp().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ATMNoteType1Code }
*
*
* @return
* The value of the subTp property.
*/
public List getSubTp() {
if (subTp == null) {
subTp = new ArrayList<>();
}
return this.subTp;
}
/**
* Gets the value of the mdiaTp property.
*
* @return
* possible object is
* {@link ATMMediaType1Code }
*
*/
public ATMMediaType1Code getMdiaTp() {
return mdiaTp;
}
/**
* Sets the value of the mdiaTp property.
*
* @param value
* allowed object is
* {@link ATMMediaType1Code }
*
*/
public ATMCassette2 setMdiaTp(ATMMediaType1Code value) {
this.mdiaTp = value;
return this;
}
/**
* Gets the value of the mdiaCntrs 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 mdiaCntrs property.
*
*
* For example, to add a new item, do as follows:
*
* getMdiaCntrs().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ATMCassetteCounters3 }
*
*
* @return
* The value of the mdiaCntrs property.
*/
public List getMdiaCntrs() {
if (mdiaCntrs == null) {
mdiaCntrs = new ArrayList<>();
}
return this.mdiaCntrs;
}
@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 subTp list.
* @see #getSubTp()
*
*/
public ATMCassette2 addSubTp(ATMNoteType1Code subTp) {
getSubTp().add(subTp);
return this;
}
/**
* Adds a new item to the mdiaCntrs list.
* @see #getMdiaCntrs()
*
*/
public ATMCassette2 addMdiaCntrs(ATMCassetteCounters3 mdiaCntrs) {
getMdiaCntrs().add(mdiaCntrs);
return this;
}
}