org.milyn.edi.unedifact.d99b.JUPREQ.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.JUPREQ;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.Formula;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.GeneralIndicator;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.RateDetails;
import org.milyn.edi.unedifact.d99b.common.MonetaryAmount;
import org.milyn.edi.unedifact.d99b.common.DutyTaxFeeDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private Formula formula;
private List generalIndicator;
private List dateTimePeriod;
private List rateDetails;
private List monetaryAmount;
private List dutyTaxFeeDetails;
private List segmentGroup8;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(formula != null) {
nodeWriter.write("FOR");
nodeWriter.write(delimiters.getField());
formula.write(nodeWriter, delimiters);
}
if(generalIndicator != null && !generalIndicator.isEmpty()) {
for(GeneralIndicator generalIndicatorInst : generalIndicator) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicatorInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(rateDetails != null && !rateDetails.isEmpty()) {
for(RateDetails rateDetailsInst : rateDetails) {
nodeWriter.write("RTE");
nodeWriter.write(delimiters.getField());
rateDetailsInst.write(nodeWriter, delimiters);
}
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(dutyTaxFeeDetails != null && !dutyTaxFeeDetails.isEmpty()) {
for(DutyTaxFeeDetails dutyTaxFeeDetailsInst : dutyTaxFeeDetails) {
nodeWriter.write("TAX");
nodeWriter.write(delimiters.getField());
dutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
}
public Formula getFormula() {
return formula;
}
public SegmentGroup7 setFormula(Formula formula) {
this.formula = formula; return this;
}
public List getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup7 setGeneralIndicator(List generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup7 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getRateDetails() {
return rateDetails;
}
public SegmentGroup7 setRateDetails(List rateDetails) {
this.rateDetails = rateDetails; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public SegmentGroup7 setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getDutyTaxFeeDetails() {
return dutyTaxFeeDetails;
}
public SegmentGroup7 setDutyTaxFeeDetails(List dutyTaxFeeDetails) {
this.dutyTaxFeeDetails = dutyTaxFeeDetails; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
}