org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup2 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.GEIProcessingInformation;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d09b.common.PYTPaymentTerms;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup2 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GEIProcessingInformation gEIProcessingInformation;
private List mOAMonetaryAmount;
private List pYTPaymentTerms;
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);
}
}
}
public GEIProcessingInformation getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup2 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup2 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getPYTPaymentTerms() {
return pYTPaymentTerms;
}
public SegmentGroup2 setPYTPaymentTerms(List pYTPaymentTerms) {
this.pYTPaymentTerms = pYTPaymentTerms; return this;
}
}