org.milyn.edi.unedifact.d05a.CONITT.SegmentGroup29 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.CONITT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.ARDMonetaryAmountFunction;
import org.milyn.edi.unedifact.d05a.common.MOAMonetaryAmount;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup29 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ARDMonetaryAmountFunction aRDMonetaryAmountFunction;
private MOAMonetaryAmount mOAMonetaryAmount;
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) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmount.write(nodeWriter, delimiters);
}
}
public ARDMonetaryAmountFunction getARDMonetaryAmountFunction() {
return aRDMonetaryAmountFunction;
}
public SegmentGroup29 setARDMonetaryAmountFunction(ARDMonetaryAmountFunction aRDMonetaryAmountFunction) {
this.aRDMonetaryAmountFunction = aRDMonetaryAmountFunction; return this;
}
public MOAMonetaryAmount getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup29 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
}