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