org.milyn.edi.unedifact.d05a.PAYDUC.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.PAYDUC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.GEIProcessingInformation;
import org.milyn.edi.unedifact.d05a.common.RFFReference;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.MOAMonetaryAmount;
import org.milyn.edi.unedifact.d05a.common.BUSBusinessFunction;
import org.milyn.edi.unedifact.d05a.common.CUXCurrencies;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup4 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GEIProcessingInformation gEIProcessingInformation;
private RFFReference rFFReference;
private List mOAMonetaryAmount;
private BUSBusinessFunction bUSBusinessFunction;
private CUXCurrencies cUXCurrencies;
private List segmentGroup5;
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(rFFReference != null) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReference.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(bUSBusinessFunction != null) {
nodeWriter.write("BUS");
nodeWriter.write(delimiters.getField());
bUSBusinessFunction.write(nodeWriter, delimiters);
}
if(cUXCurrencies != null) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
cUXCurrencies.write(nodeWriter, delimiters);
}
if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
segmentGroup5Inst.write(nodeWriter, delimiters);
}
}
}
public GEIProcessingInformation getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup4 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public RFFReference getRFFReference() {
return rFFReference;
}
public SegmentGroup4 setRFFReference(RFFReference rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup4 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public BUSBusinessFunction getBUSBusinessFunction() {
return bUSBusinessFunction;
}
public SegmentGroup4 setBUSBusinessFunction(BUSBusinessFunction bUSBusinessFunction) {
this.bUSBusinessFunction = bUSBusinessFunction; return this;
}
public CUXCurrencies getCUXCurrencies() {
return cUXCurrencies;
}
public SegmentGroup4 setCUXCurrencies(CUXCurrencies cUXCurrencies) {
this.cUXCurrencies = cUXCurrencies; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public SegmentGroup4 setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
}