org.milyn.edi.unedifact.d05a.DESTIM.SegmentGroup12 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.DESTIM;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d05a.common.DutyTaxFeeDetails;
import org.milyn.edi.unedifact.d05a.common.Measurements;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup12 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private MonetaryAmount monetaryAmount;
private DutyTaxFeeDetails dutyTaxFeeDetails;
private Measurements measurements;
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) {
nodeWriter.write("TAX");
nodeWriter.write(delimiters.getField());
dutyTaxFeeDetails.write(nodeWriter, delimiters);
}
if(measurements != null) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
measurements.write(nodeWriter, delimiters);
}
}
public MonetaryAmount getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup12 setMonetaryAmount(MonetaryAmount monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public DutyTaxFeeDetails getDutyTaxFeeDetails() {
return dutyTaxFeeDetails;
}
public SegmentGroup12 setDutyTaxFeeDetails(DutyTaxFeeDetails dutyTaxFeeDetails) {
this.dutyTaxFeeDetails = dutyTaxFeeDetails; return this;
}
public Measurements getMeasurements() {
return measurements;
}
public SegmentGroup12 setMeasurements(Measurements measurements) {
this.measurements = measurements; return this;
}
}