com.prowidesoftware.swift.model.mx.dic.Header42 Maven / Gradle / Ivy
package com.prowidesoftware.swift.model.mx.dic;
import java.time.OffsetDateTime;
import java.util.ArrayList;
import java.util.List;
import com.prowidesoftware.swift.model.mx.adapters.IsoDateTimeAdapter;
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;
/**
* Set of characteristics related to the protocol.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Header42", propOrder = {
"msgFctn",
"prtcolVrsn",
"xchgId",
"reTrnsmssnCntr",
"creDtTm",
"btchMgmtInf",
"initgPty",
"rcptPty",
"tracData",
"tracblt"
})
public class Header42 {
@XmlElement(name = "MsgFctn", required = true)
@XmlSchemaType(name = "string")
protected MessageFunction16Code msgFctn;
@XmlElement(name = "PrtcolVrsn", required = true)
protected String prtcolVrsn;
@XmlElement(name = "XchgId")
protected String xchgId;
@XmlElement(name = "ReTrnsmssnCntr")
protected String reTrnsmssnCntr;
@XmlElement(name = "CreDtTm", required = true, type = String.class)
@XmlJavaTypeAdapter(IsoDateTimeAdapter.class)
@XmlSchemaType(name = "dateTime")
protected OffsetDateTime creDtTm;
@XmlElement(name = "BtchMgmtInf")
protected BatchManagementInformation1 btchMgmtInf;
@XmlElement(name = "InitgPty", required = true)
protected GenericIdentification172 initgPty;
@XmlElement(name = "RcptPty")
protected GenericIdentification172 rcptPty;
@XmlElement(name = "TracData")
protected List tracData;
@XmlElement(name = "Tracblt")
protected List tracblt;
/**
* Gets the value of the msgFctn property.
*
* @return
* possible object is
* {@link MessageFunction16Code }
*
*/
public MessageFunction16Code getMsgFctn() {
return msgFctn;
}
/**
* Sets the value of the msgFctn property.
*
* @param value
* allowed object is
* {@link MessageFunction16Code }
*
*/
public Header42 setMsgFctn(MessageFunction16Code value) {
this.msgFctn = value;
return this;
}
/**
* Gets the value of the prtcolVrsn property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getPrtcolVrsn() {
return prtcolVrsn;
}
/**
* Sets the value of the prtcolVrsn property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Header42 setPrtcolVrsn(String value) {
this.prtcolVrsn = value;
return this;
}
/**
* Gets the value of the xchgId property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getXchgId() {
return xchgId;
}
/**
* Sets the value of the xchgId property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Header42 setXchgId(String value) {
this.xchgId = value;
return this;
}
/**
* Gets the value of the reTrnsmssnCntr property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getReTrnsmssnCntr() {
return reTrnsmssnCntr;
}
/**
* Sets the value of the reTrnsmssnCntr property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Header42 setReTrnsmssnCntr(String value) {
this.reTrnsmssnCntr = value;
return this;
}
/**
* Gets the value of the creDtTm property.
*
* @return
* possible object is
* {@link String }
*
*/
public OffsetDateTime getCreDtTm() {
return creDtTm;
}
/**
* Sets the value of the creDtTm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public Header42 setCreDtTm(OffsetDateTime value) {
this.creDtTm = value;
return this;
}
/**
* Gets the value of the btchMgmtInf property.
*
* @return
* possible object is
* {@link BatchManagementInformation1 }
*
*/
public BatchManagementInformation1 getBtchMgmtInf() {
return btchMgmtInf;
}
/**
* Sets the value of the btchMgmtInf property.
*
* @param value
* allowed object is
* {@link BatchManagementInformation1 }
*
*/
public Header42 setBtchMgmtInf(BatchManagementInformation1 value) {
this.btchMgmtInf = value;
return this;
}
/**
* Gets the value of the initgPty property.
*
* @return
* possible object is
* {@link GenericIdentification172 }
*
*/
public GenericIdentification172 getInitgPty() {
return initgPty;
}
/**
* Sets the value of the initgPty property.
*
* @param value
* allowed object is
* {@link GenericIdentification172 }
*
*/
public Header42 setInitgPty(GenericIdentification172 value) {
this.initgPty = value;
return this;
}
/**
* Gets the value of the rcptPty property.
*
* @return
* possible object is
* {@link GenericIdentification172 }
*
*/
public GenericIdentification172 getRcptPty() {
return rcptPty;
}
/**
* Sets the value of the rcptPty property.
*
* @param value
* allowed object is
* {@link GenericIdentification172 }
*
*/
public Header42 setRcptPty(GenericIdentification172 value) {
this.rcptPty = value;
return this;
}
/**
* Gets the value of the tracData 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 tracData property.
*
*
* For example, to add a new item, do as follows:
*
* getTracData().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AdditionalData1 }
*
*
* @return
* The value of the tracData property.
*/
public List getTracData() {
if (tracData == null) {
tracData = new ArrayList<>();
}
return this.tracData;
}
/**
* Gets the value of the tracblt 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 tracblt property.
*
*
* For example, to add a new item, do as follows:
*
* getTracblt().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Traceability7 }
*
*
* @return
* The value of the tracblt property.
*/
public List getTracblt() {
if (tracblt == null) {
tracblt = new ArrayList<>();
}
return this.tracblt;
}
@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 tracData list.
* @see #getTracData()
*
*/
public Header42 addTracData(AdditionalData1 tracData) {
getTracData().add(tracData);
return this;
}
/**
* Adds a new item to the tracblt list.
* @see #getTracblt()
*
*/
public Header42 addTracblt(Traceability7 tracblt) {
getTracblt().add(tracblt);
return this;
}
}