org.milyn.edi.unedifact.d01a.ORDERS.SegmentGroup9 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d01a.ORDERS;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d01a.common.MOAMonetaryAmount;
import java.util.List;
import org.milyn.edi.unedifact.d01a.common.GIRRelatedIdentificationNumbers;
import org.milyn.edi.unedifact.d01a.common.RJLAccountingJournalIdentification;
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 gIRRelatedIdentificationNumbers;
private List rJLAccountingJournalIdentification;
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(gIRRelatedIdentificationNumbers != null && !gIRRelatedIdentificationNumbers.isEmpty()) {
for(GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbersInst : gIRRelatedIdentificationNumbers) {
nodeWriter.write("GIR");
nodeWriter.write(delimiters.getField());
gIRRelatedIdentificationNumbersInst.write(nodeWriter, delimiters);
}
}
if(rJLAccountingJournalIdentification != null && !rJLAccountingJournalIdentification.isEmpty()) {
for(RJLAccountingJournalIdentification rJLAccountingJournalIdentificationInst : rJLAccountingJournalIdentification) {
nodeWriter.write("RJL");
nodeWriter.write(delimiters.getField());
rJLAccountingJournalIdentificationInst.write(nodeWriter, delimiters);
}
}
}
public MOAMonetaryAmount getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup9 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getGIRRelatedIdentificationNumbers() {
return gIRRelatedIdentificationNumbers;
}
public SegmentGroup9 setGIRRelatedIdentificationNumbers(List gIRRelatedIdentificationNumbers) {
this.gIRRelatedIdentificationNumbers = gIRRelatedIdentificationNumbers; return this;
}
public List getRJLAccountingJournalIdentification() {
return rJLAccountingJournalIdentification;
}
public SegmentGroup9 setRJLAccountingJournalIdentification(List rJLAccountingJournalIdentification) {
this.rJLAccountingJournalIdentification = rJLAccountingJournalIdentification; return this;
}
}