org.milyn.edi.unedifact.d05a.BUSCRD.SegmentGroup9 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.BUSCRD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.MOAMonetaryAmount;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.ARDMonetaryAmountFunction;
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup9 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private MOAMonetaryAmount mOAMonetaryAmount;
private List aRDMonetaryAmountFunction;
private FTXFreeText fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(mOAMonetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmount.write(nodeWriter, delimiters);
}
if(aRDMonetaryAmountFunction != null && !aRDMonetaryAmountFunction.isEmpty()) {
for(ARDMonetaryAmountFunction aRDMonetaryAmountFunctionInst : aRDMonetaryAmountFunction) {
nodeWriter.write("ARD");
nodeWriter.write(delimiters.getField());
aRDMonetaryAmountFunctionInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeText.write(nodeWriter, delimiters);
}
}
public MOAMonetaryAmount getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup9 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getARDMonetaryAmountFunction() {
return aRDMonetaryAmountFunction;
}
public SegmentGroup9 setARDMonetaryAmountFunction(List aRDMonetaryAmountFunction) {
this.aRDMonetaryAmountFunction = aRDMonetaryAmountFunction; return this;
}
public FTXFreeText getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup9 setFTXFreeText(FTXFreeText fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}