com.prowidesoftware.swift.model.mx.dic.Standardisation3Choice 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;
/**
* Choice of format for standardisation.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Standardisation3Choice", propOrder = {
"cd",
"prtry"
})
public class Standardisation3Choice {
@XmlElement(name = "Cd")
@XmlSchemaType(name = "string")
protected List cd;
@XmlElement(name = "Prtry")
protected GenericIdentification30 prtry;
/**
* Gets the value of the cd 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 cd property.
*
*
* For example, to add a new item, do as follows:
*
* getCd().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Standardisation1Code }
*
*
* @return
* The value of the cd property.
*/
public List getCd() {
if (cd == null) {
cd = new ArrayList<>();
}
return this.cd;
}
/**
* Gets the value of the prtry property.
*
* @return
* possible object is
* {@link GenericIdentification30 }
*
*/
public GenericIdentification30 getPrtry() {
return prtry;
}
/**
* Sets the value of the prtry property.
*
* @param value
* allowed object is
* {@link GenericIdentification30 }
*
*/
public Standardisation3Choice setPrtry(GenericIdentification30 value) {
this.prtry = 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 cd list.
* @see #getCd()
*
*/
public Standardisation3Choice addCd(Standardisation1Code cd) {
getCd().add(cd);
return this;
}
}