org.milyn.edi.unedifact.d13a.BUSCRD.SegmentGroup13 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d13a.BUSCRD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d13a.common.MOAMonetaryAmount;
import java.util.List;
import org.milyn.edi.unedifact.d13a.common.ARDMonetaryAmountFunction;
import org.milyn.edi.unedifact.d13a.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup13 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 SegmentGroup13 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getARDMonetaryAmountFunction() {
return aRDMonetaryAmountFunction;
}
public SegmentGroup13 setARDMonetaryAmountFunction(List aRDMonetaryAmountFunction) {
this.aRDMonetaryAmountFunction = aRDMonetaryAmountFunction; return this;
}
public FTXFreeText getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup13 setFTXFreeText(FTXFreeText fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}