com.prowidesoftware.swift.model.mx.dic.Header8 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 javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.datatype.XMLGregorianCalendar;
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 = "Header8", propOrder = {
"msgFctn",
"prtcolVrsn",
"xchgId",
"reTrnsmssnCntr",
"creDtTm",
"initgPty",
"rcptPty",
"tracblt"
})
public class Header8 {
@XmlElement(name = "MsgFctn", required = true)
@XmlSchemaType(name = "string")
protected MessageFunction4Code msgFctn;
@XmlElement(name = "PrtcolVrsn", required = true)
protected String prtcolVrsn;
@XmlElement(name = "XchgId", required = true)
protected String xchgId;
@XmlElement(name = "ReTrnsmssnCntr")
protected String reTrnsmssnCntr;
@XmlElement(name = "CreDtTm", required = true)
@XmlSchemaType(name = "dateTime")
protected XMLGregorianCalendar creDtTm;
@XmlElement(name = "InitgPty", required = true)
protected GenericIdentification32 initgPty;
@XmlElement(name = "RcptPty")
protected GenericIdentification32 rcptPty;
@XmlElement(name = "Tracblt")
protected List tracblt;
/**
* Gets the value of the msgFctn property.
*
* @return
* possible object is
* {@link MessageFunction4Code }
*
*/
public MessageFunction4Code getMsgFctn() {
return msgFctn;
}
/**
* Sets the value of the msgFctn property.
*
* @param value
* allowed object is
* {@link MessageFunction4Code }
*
*/
public Header8 setMsgFctn(MessageFunction4Code 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 Header8 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 Header8 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 Header8 setReTrnsmssnCntr(String value) {
this.reTrnsmssnCntr = value;
return this;
}
/**
* Gets the value of the creDtTm property.
*
* @return
* possible object is
* {@link XMLGregorianCalendar }
*
*/
public XMLGregorianCalendar getCreDtTm() {
return creDtTm;
}
/**
* Sets the value of the creDtTm property.
*
* @param value
* allowed object is
* {@link XMLGregorianCalendar }
*
*/
public Header8 setCreDtTm(XMLGregorianCalendar value) {
this.creDtTm = value;
return this;
}
/**
* Gets the value of the initgPty property.
*
* @return
* possible object is
* {@link GenericIdentification32 }
*
*/
public GenericIdentification32 getInitgPty() {
return initgPty;
}
/**
* Sets the value of the initgPty property.
*
* @param value
* allowed object is
* {@link GenericIdentification32 }
*
*/
public Header8 setInitgPty(GenericIdentification32 value) {
this.initgPty = value;
return this;
}
/**
* Gets the value of the rcptPty property.
*
* @return
* possible object is
* {@link GenericIdentification32 }
*
*/
public GenericIdentification32 getRcptPty() {
return rcptPty;
}
/**
* Sets the value of the rcptPty property.
*
* @param value
* allowed object is
* {@link GenericIdentification32 }
*
*/
public Header8 setRcptPty(GenericIdentification32 value) {
this.rcptPty = value;
return this;
}
/**
* 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 JAXB object.
* This is why there is not a 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 Traceability1 }
*
*
*/
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 tracblt list.
* @see #getTracblt()
*
*/
public Header8 addTracblt(Traceability1 tracblt) {
getTracblt().add(tracblt);
return this;
}
}