org.milyn.edi.unedifact.d11b.GOVCBR.SegmentGroup51 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d11b.GOVCBR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d11b.common.GEIProcessingInformation;
import java.util.List;
import org.milyn.edi.unedifact.d11b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d11b.common.PYTPaymentTerms;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup51 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GEIProcessingInformation gEIProcessingInformation;
private List mOAMonetaryAmount;
private List pYTPaymentTerms;
private SegmentGroup52 segmentGroup52;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(gEIProcessingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformation.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(pYTPaymentTerms != null && !pYTPaymentTerms.isEmpty()) {
for(PYTPaymentTerms pYTPaymentTermsInst : pYTPaymentTerms) {
nodeWriter.write("PYT");
nodeWriter.write(delimiters.getField());
pYTPaymentTermsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup52 != null) {
segmentGroup52.write(nodeWriter, delimiters);
}
}
public GEIProcessingInformation getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup51 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup51 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getPYTPaymentTerms() {
return pYTPaymentTerms;
}
public SegmentGroup51 setPYTPaymentTerms(List pYTPaymentTerms) {
this.pYTPaymentTerms = pYTPaymentTerms; return this;
}
public SegmentGroup52 getSegmentGroup52() {
return segmentGroup52;
}
public SegmentGroup51 setSegmentGroup52(SegmentGroup52 segmentGroup52) {
this.segmentGroup52 = segmentGroup52; return this;
}
}