org.milyn.edi.unedifact.d02a.ORDCHG.SegmentGroup10 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.ORDCHG;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.MonetaryAmount;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.RelatedIdentificationNumbers;
import org.milyn.edi.unedifact.d02a.common.AccountingJournalIdentification;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup10 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private MonetaryAmount monetaryAmount;
private List relatedIdentificationNumbers;
private List accountingJournalIdentification;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(monetaryAmount != null) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmount.write(nodeWriter, delimiters);
}
if(relatedIdentificationNumbers != null && !relatedIdentificationNumbers.isEmpty()) {
for(RelatedIdentificationNumbers relatedIdentificationNumbersInst : relatedIdentificationNumbers) {
nodeWriter.write("GIR");
nodeWriter.write(delimiters.getField());
relatedIdentificationNumbersInst.write(nodeWriter, delimiters);
}
}
if(accountingJournalIdentification != null && !accountingJournalIdentification.isEmpty()) {
for(AccountingJournalIdentification accountingJournalIdentificationInst : accountingJournalIdentification) {
nodeWriter.write("RJL");
nodeWriter.write(delimiters.getField());
accountingJournalIdentificationInst.write(nodeWriter, delimiters);
}
}
}
public MonetaryAmount getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup10 setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getRelatedIdentificationNumbers() {
return relatedIdentificationNumbers;
}
public SegmentGroup10 setRelatedIdentificationNumbers(List relatedIdentificationNumbers) {
this.relatedIdentificationNumbers = relatedIdentificationNumbers; return this;
}
public List getAccountingJournalIdentification() {
return accountingJournalIdentification;
}
public SegmentGroup10 setAccountingJournalIdentification(List accountingJournalIdentification) {
this.accountingJournalIdentification = accountingJournalIdentification; return this;
}
}