org.milyn.edi.unedifact.d11b.GOVCBR.SegmentGroup112 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.ARDMonetaryAmountFunction;
import java.util.List;
import org.milyn.edi.unedifact.d11b.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d11b.common.GEIProcessingInformation;
import org.milyn.edi.unedifact.d11b.common.PCDPercentageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup112 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ARDMonetaryAmountFunction aRDMonetaryAmountFunction;
private List mOAMonetaryAmount;
private List gEIProcessingInformation;
private List pCDPercentageDetails;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(aRDMonetaryAmountFunction != null) {
nodeWriter.write("ARD");
nodeWriter.write(delimiters.getField());
aRDMonetaryAmountFunction.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(gEIProcessingInformation != null && !gEIProcessingInformation.isEmpty()) {
for(GEIProcessingInformation gEIProcessingInformationInst : gEIProcessingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformationInst.write(nodeWriter, delimiters);
}
}
if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
nodeWriter.write("PCD");
nodeWriter.write(delimiters.getField());
pCDPercentageDetailsInst.write(nodeWriter, delimiters);
}
}
}
public ARDMonetaryAmountFunction getARDMonetaryAmountFunction() {
return aRDMonetaryAmountFunction;
}
public SegmentGroup112 setARDMonetaryAmountFunction(ARDMonetaryAmountFunction aRDMonetaryAmountFunction) {
this.aRDMonetaryAmountFunction = aRDMonetaryAmountFunction; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup112 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup112 setGEIProcessingInformation(List gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public List getPCDPercentageDetails() {
return pCDPercentageDetails;
}
public SegmentGroup112 setPCDPercentageDetails(List pCDPercentageDetails) {
this.pCDPercentageDetails = pCDPercentageDetails; return this;
}
}