All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.edi.unedifact.d06b.JUPREQ.SegmentGroup9 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.JUPREQ;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.FORFormula;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.GEIProcessingInformation;    
import org.milyn.edi.unedifact.d06b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d06b.common.RTERateDetails;    
import org.milyn.edi.unedifact.d06b.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d06b.common.TAXDutyTaxFeeDetails;    
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 FORFormula fORFormula;
    private List gEIProcessingInformation;
    private List dTMDateTimePeriod;
    private List rTERateDetails;
    private List mOAMonetaryAmount;
    private List tAXDutyTaxFeeDetails;
    private List segmentGroup10;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(fORFormula != null) {
            nodeWriter.write("FOR");
            nodeWriter.write(delimiters.getField());
            fORFormula.write(nodeWriter, delimiters);
        }
        if(gEIProcessingInformation != null && !gEIProcessingInformation.isEmpty()) {
            for(GEIProcessingInformation gEIProcessingInformationInst : gEIProcessingInformation) {
                nodeWriter.write("GEI");
                nodeWriter.write(delimiters.getField());
                gEIProcessingInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(rTERateDetails != null && !rTERateDetails.isEmpty()) {
            for(RTERateDetails rTERateDetailsInst : rTERateDetails) {
                nodeWriter.write("RTE");
                nodeWriter.write(delimiters.getField());
                rTERateDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(tAXDutyTaxFeeDetails != null && !tAXDutyTaxFeeDetails.isEmpty()) {
            for(TAXDutyTaxFeeDetails tAXDutyTaxFeeDetailsInst : tAXDutyTaxFeeDetails) {
                nodeWriter.write("TAX");
                nodeWriter.write(delimiters.getField());
                tAXDutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
            for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
                segmentGroup10Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public FORFormula getFORFormula() {
        return fORFormula;
    }

    public SegmentGroup9 setFORFormula(FORFormula fORFormula) {
        this.fORFormula = fORFormula;  return this;
    }

    public List getGEIProcessingInformation() {
        return gEIProcessingInformation;
    }

    public SegmentGroup9 setGEIProcessingInformation(List gEIProcessingInformation) {
        this.gEIProcessingInformation = gEIProcessingInformation;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup9 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getRTERateDetails() {
        return rTERateDetails;
    }

    public SegmentGroup9 setRTERateDetails(List rTERateDetails) {
        this.rTERateDetails = rTERateDetails;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

    public SegmentGroup9 setMOAMonetaryAmount(List mOAMonetaryAmount) {
        this.mOAMonetaryAmount = mOAMonetaryAmount;  return this;
    }

    public List getTAXDutyTaxFeeDetails() {
        return tAXDutyTaxFeeDetails;
    }

    public SegmentGroup9 setTAXDutyTaxFeeDetails(List tAXDutyTaxFeeDetails) {
        this.tAXDutyTaxFeeDetails = tAXDutyTaxFeeDetails;  return this;
    }

    public List getSegmentGroup10() {
        return segmentGroup10;
    }

    public SegmentGroup9 setSegmentGroup10(List segmentGroup10) {
        this.segmentGroup10 = segmentGroup10;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy