com.prowidesoftware.swift.model.mx.dic.DigestedData2 Maven / Gradle / Ivy
Show all versions of pw-iso20022 Show documentation
package com.prowidesoftware.swift.model.mx.dic;
import java.math.BigDecimal;
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.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;
/**
* Digest computed on the identified data.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "DigestedData2", propOrder = {
"vrsn",
"dgstAlgo",
"ncpsltdCntt",
"dgst"
})
public class DigestedData2 {
@XmlElement(name = "Vrsn")
protected BigDecimal vrsn;
@XmlElement(name = "DgstAlgo", required = true)
protected List dgstAlgo;
@XmlElement(name = "NcpsltdCntt", required = true)
protected EncapsulatedContent1 ncpsltdCntt;
@XmlElement(name = "Dgst", required = true)
protected String dgst;
/**
* Gets the value of the vrsn property.
*
* @return
* possible object is
* {@link BigDecimal }
*
*/
public BigDecimal getVrsn() {
return vrsn;
}
/**
* Sets the value of the vrsn property.
*
* @param value
* allowed object is
* {@link BigDecimal }
*
*/
public DigestedData2 setVrsn(BigDecimal value) {
this.vrsn = value;
return this;
}
/**
* Gets the value of the dgstAlgo 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 dgstAlgo property.
*
*
* For example, to add a new item, do as follows:
*
* getDgstAlgo().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AlgorithmIdentification5 }
*
*
*/
public List getDgstAlgo() {
if (dgstAlgo == null) {
dgstAlgo = new ArrayList();
}
return this.dgstAlgo;
}
/**
* Gets the value of the ncpsltdCntt property.
*
* @return
* possible object is
* {@link EncapsulatedContent1 }
*
*/
public EncapsulatedContent1 getNcpsltdCntt() {
return ncpsltdCntt;
}
/**
* Sets the value of the ncpsltdCntt property.
*
* @param value
* allowed object is
* {@link EncapsulatedContent1 }
*
*/
public DigestedData2 setNcpsltdCntt(EncapsulatedContent1 value) {
this.ncpsltdCntt = value;
return this;
}
/**
* Gets the value of the dgst property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDgst() {
return dgst;
}
/**
* Sets the value of the dgst property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public DigestedData2 setDgst(String value) {
this.dgst = 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);
}
/**
* Adds a new item to the dgstAlgo list.
* @see #getDgstAlgo()
*
*/
public DigestedData2 addDgstAlgo(AlgorithmIdentification5 dgstAlgo) {
getDgstAlgo().add(dgstAlgo);
return this;
}
}