org.milyn.edi.unedifact.d98a.PRODAT.SegmentGroup21 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.PRODAT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.HYNHierarchyInformation;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.PIAAdditionalProductId;
import org.milyn.edi.unedifact.d98a.common.QTYQuantity;
import org.milyn.edi.unedifact.d98a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup21 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private HYNHierarchyInformation hYNHierarchyInformation;
private List pIAAdditionalProductId;
private List qTYQuantity;
private List fTXFreeText;
private List segmentGroup22;
private List segmentGroup23;
private List segmentGroup24;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(hYNHierarchyInformation != null) {
nodeWriter.write("HYN");
nodeWriter.write(delimiters.getField());
hYNHierarchyInformation.write(nodeWriter, delimiters);
}
if(pIAAdditionalProductId != null && !pIAAdditionalProductId.isEmpty()) {
for(PIAAdditionalProductId pIAAdditionalProductIdInst : pIAAdditionalProductId) {
nodeWriter.write("PIA");
nodeWriter.write(delimiters.getField());
pIAAdditionalProductIdInst.write(nodeWriter, delimiters);
}
}
if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
for(QTYQuantity qTYQuantityInst : qTYQuantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantityInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
segmentGroup22Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
segmentGroup23Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
segmentGroup24Inst.write(nodeWriter, delimiters);
}
}
}
public HYNHierarchyInformation getHYNHierarchyInformation() {
return hYNHierarchyInformation;
}
public SegmentGroup21 setHYNHierarchyInformation(HYNHierarchyInformation hYNHierarchyInformation) {
this.hYNHierarchyInformation = hYNHierarchyInformation; return this;
}
public List getPIAAdditionalProductId() {
return pIAAdditionalProductId;
}
public SegmentGroup21 setPIAAdditionalProductId(List pIAAdditionalProductId) {
this.pIAAdditionalProductId = pIAAdditionalProductId; return this;
}
public List getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup21 setQTYQuantity(List qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup21 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup22() {
return segmentGroup22;
}
public SegmentGroup21 setSegmentGroup22(List segmentGroup22) {
this.segmentGroup22 = segmentGroup22; return this;
}
public List getSegmentGroup23() {
return segmentGroup23;
}
public SegmentGroup21 setSegmentGroup23(List segmentGroup23) {
this.segmentGroup23 = segmentGroup23; return this;
}
public List getSegmentGroup24() {
return segmentGroup24;
}
public SegmentGroup21 setSegmentGroup24(List segmentGroup24) {
this.segmentGroup24 = segmentGroup24; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy