org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup203 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.GOVCBR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.CODComponentDetails;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.QTYQuantity;
import org.milyn.edi.unedifact.d09b.common.PCDPercentageDetails;
import org.milyn.edi.unedifact.d09b.common.GEIProcessingInformation;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup203 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private CODComponentDetails cODComponentDetails;
private List qTYQuantity;
private List pCDPercentageDetails;
private List gEIProcessingInformation;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(cODComponentDetails != null) {
nodeWriter.write("COD");
nodeWriter.write(delimiters.getField());
cODComponentDetails.write(nodeWriter, delimiters);
}
if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
for(QTYQuantity qTYQuantityInst : qTYQuantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantityInst.write(nodeWriter, delimiters);
}
}
if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetailsInst.write(nodeWriter, delimiters);
}
}
if(gEIProcessingInformation != null && !gEIProcessingInformation.isEmpty()) {
for(GEIProcessingInformation gEIProcessingInformationInst : gEIProcessingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformationInst.write(nodeWriter, delimiters);
}
}
}
public CODComponentDetails getCODComponentDetails() {
return cODComponentDetails;
}
public SegmentGroup203 setCODComponentDetails(CODComponentDetails cODComponentDetails) {
this.cODComponentDetails = cODComponentDetails; return this;
}
public List getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup203 setQTYQuantity(List qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public List getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup203 setPCDPercentageDetails(List pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
public List getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup203 setGEIProcessingInformation(List gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
}