com.prowidesoftware.swift.model.mx.dic.TradeProduct1 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.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;
/**
* Tangible output or service produced by human or mechanical effort, or by a natural process for purposes of specifying a product.
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "TradeProduct1", propOrder = {
"id",
"nm",
"desc",
"ctryOfOrgn",
"pdctChrtcs",
"pdctCtgy",
"gblSrlIdr"
})
public class TradeProduct1 {
@XmlElement(name = "Id")
protected List id;
@XmlElement(name = "Nm")
protected String nm;
@XmlElement(name = "Desc")
protected String desc;
@XmlElement(name = "CtryOfOrgn")
protected List ctryOfOrgn;
@XmlElement(name = "PdctChrtcs")
protected List pdctChrtcs;
@XmlElement(name = "PdctCtgy")
protected List pdctCtgy;
@XmlElement(name = "GblSrlIdr")
protected List gblSrlIdr;
/**
* Gets the value of the id 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 id property.
*
*
* For example, to add a new item, do as follows:
*
* getId().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ProductIdentifier2Choice }
*
*
*/
public List getId() {
if (id == null) {
id = new ArrayList();
}
return this.id;
}
/**
* Gets the value of the nm property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getNm() {
return nm;
}
/**
* Sets the value of the nm property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TradeProduct1 setNm(String value) {
this.nm = value;
return this;
}
/**
* Gets the value of the desc property.
*
* @return
* possible object is
* {@link String }
*
*/
public String getDesc() {
return desc;
}
/**
* Sets the value of the desc property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public TradeProduct1 setDesc(String value) {
this.desc = value;
return this;
}
/**
* Gets the value of the ctryOfOrgn 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 ctryOfOrgn property.
*
*
* For example, to add a new item, do as follows:
*
* getCtryOfOrgn().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link CountryCodeAndName1 }
*
*
*/
public List getCtryOfOrgn() {
if (ctryOfOrgn == null) {
ctryOfOrgn = new ArrayList();
}
return this.ctryOfOrgn;
}
/**
* Gets the value of the pdctChrtcs 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 pdctChrtcs property.
*
*
* For example, to add a new item, do as follows:
*
* getPdctChrtcs().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ProductCharacteristics2 }
*
*
*/
public List getPdctChrtcs() {
if (pdctChrtcs == null) {
pdctChrtcs = new ArrayList();
}
return this.pdctChrtcs;
}
/**
* Gets the value of the pdctCtgy 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 pdctCtgy property.
*
*
* For example, to add a new item, do as follows:
*
* getPdctCtgy().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link ProductCategory1Choice }
*
*
*/
public List getPdctCtgy() {
if (pdctCtgy == null) {
pdctCtgy = new ArrayList();
}
return this.pdctCtgy;
}
/**
* Gets the value of the gblSrlIdr 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 gblSrlIdr property.
*
*
* For example, to add a new item, do as follows:
*
* getGblSrlIdr().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link String }
*
*
*/
public List getGblSrlIdr() {
if (gblSrlIdr == null) {
gblSrlIdr = new ArrayList();
}
return this.gblSrlIdr;
}
@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 id list.
* @see #getId()
*
*/
public TradeProduct1 addId(ProductIdentifier2Choice id) {
getId().add(id);
return this;
}
/**
* Adds a new item to the ctryOfOrgn list.
* @see #getCtryOfOrgn()
*
*/
public TradeProduct1 addCtryOfOrgn(CountryCodeAndName1 ctryOfOrgn) {
getCtryOfOrgn().add(ctryOfOrgn);
return this;
}
/**
* Adds a new item to the pdctChrtcs list.
* @see #getPdctChrtcs()
*
*/
public TradeProduct1 addPdctChrtcs(ProductCharacteristics2 pdctChrtcs) {
getPdctChrtcs().add(pdctChrtcs);
return this;
}
/**
* Adds a new item to the pdctCtgy list.
* @see #getPdctCtgy()
*
*/
public TradeProduct1 addPdctCtgy(ProductCategory1Choice pdctCtgy) {
getPdctCtgy().add(pdctCtgy);
return this;
}
/**
* Adds a new item to the gblSrlIdr list.
* @see #getGblSrlIdr()
*
*/
public TradeProduct1 addGblSrlIdr(String gblSrlIdr) {
getGblSrlIdr().add(gblSrlIdr);
return this;
}
}