org.milyn.edi.unedifact.d03b.COACSU.SegmentGroup10 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d03b.COACSU;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d03b.common.MonetaryAmount;
import java.util.List;
import org.milyn.edi.unedifact.d03b.common.DutyTaxFeeDetails;
import org.milyn.edi.unedifact.d03b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d03b.common.PaymentInstructions;
import org.milyn.edi.unedifact.d03b.common.PaymentTerms;
import org.milyn.edi.unedifact.d03b.common.Status;
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 dutyTaxFeeDetails;
private List dateTimePeriod;
private PaymentInstructions paymentInstructions;
private PaymentTerms paymentTerms;
private List status;
private List segmentGroup11;
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(dutyTaxFeeDetails != null && !dutyTaxFeeDetails.isEmpty()) {
for(DutyTaxFeeDetails dutyTaxFeeDetailsInst : dutyTaxFeeDetails) {
nodeWriter.write("TAX");
nodeWriter.write(delimiters.getField());
dutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(paymentInstructions != null) {
nodeWriter.write("PAI");
nodeWriter.write(delimiters.getField());
paymentInstructions.write(nodeWriter, delimiters);
}
if(paymentTerms != null) {
nodeWriter.write("PYT");
nodeWriter.write(delimiters.getField());
paymentTerms.write(nodeWriter, delimiters);
}
if(status != null && !status.isEmpty()) {
for(Status statusInst : status) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
statusInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
}
public MonetaryAmount getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup10 setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getDutyTaxFeeDetails() {
return dutyTaxFeeDetails;
}
public SegmentGroup10 setDutyTaxFeeDetails(List dutyTaxFeeDetails) {
this.dutyTaxFeeDetails = dutyTaxFeeDetails; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup10 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public PaymentInstructions getPaymentInstructions() {
return paymentInstructions;
}
public SegmentGroup10 setPaymentInstructions(PaymentInstructions paymentInstructions) {
this.paymentInstructions = paymentInstructions; return this;
}
public PaymentTerms getPaymentTerms() {
return paymentTerms;
}
public SegmentGroup10 setPaymentTerms(PaymentTerms paymentTerms) {
this.paymentTerms = paymentTerms; return this;
}
public List getStatus() {
return status;
}
public SegmentGroup10 setStatus(List status) {
this.status = status; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public SegmentGroup10 setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
}