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

org.milyn.edi.unedifact.d98a.IFTFCC.SegmentGroup28 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.d98a.IFTFCC;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d98a.common.ConsignmentInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d98a.common.TransportChargeRateCalculations;    
import org.milyn.edi.unedifact.d98a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d98a.common.TransportServiceRequirements;    
import org.milyn.edi.unedifact.d98a.common.FreeText;    
import org.milyn.edi.unedifact.d98a.common.MonetaryAmount;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup28 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private ConsignmentInformation consignmentInformation;
    private List transportChargeRateCalculations;
    private List dateTimePeriod;
    private List transportServiceRequirements;
    private List freeText;
    private List monetaryAmount;
    private List segmentGroup29;
    private List segmentGroup30;
    private List segmentGroup31;
    private List segmentGroup32;
    private List segmentGroup33;
    private List segmentGroup34;
    private List segmentGroup35;
    private List segmentGroup37;
    private List segmentGroup42;

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

        if(consignmentInformation != null) {
            nodeWriter.write("CNI");
            nodeWriter.write(delimiters.getField());
            consignmentInformation.write(nodeWriter, delimiters);
        }
        if(transportChargeRateCalculations != null && !transportChargeRateCalculations.isEmpty()) {
            for(TransportChargeRateCalculations transportChargeRateCalculationsInst : transportChargeRateCalculations) {
                nodeWriter.write("TCC");
                nodeWriter.write(delimiters.getField());
                transportChargeRateCalculationsInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(transportServiceRequirements != null && !transportServiceRequirements.isEmpty()) {
            for(TransportServiceRequirements transportServiceRequirementsInst : transportServiceRequirements) {
                nodeWriter.write("TSR");
                nodeWriter.write(delimiters.getField());
                transportServiceRequirementsInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup29 != null && !segmentGroup29.isEmpty()) {
            for(SegmentGroup29 segmentGroup29Inst : segmentGroup29) {
                segmentGroup29Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
            for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
                segmentGroup30Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup31 != null && !segmentGroup31.isEmpty()) {
            for(SegmentGroup31 segmentGroup31Inst : segmentGroup31) {
                segmentGroup31Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup32 != null && !segmentGroup32.isEmpty()) {
            for(SegmentGroup32 segmentGroup32Inst : segmentGroup32) {
                segmentGroup32Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup33 != null && !segmentGroup33.isEmpty()) {
            for(SegmentGroup33 segmentGroup33Inst : segmentGroup33) {
                segmentGroup33Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup34 != null && !segmentGroup34.isEmpty()) {
            for(SegmentGroup34 segmentGroup34Inst : segmentGroup34) {
                segmentGroup34Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup35 != null && !segmentGroup35.isEmpty()) {
            for(SegmentGroup35 segmentGroup35Inst : segmentGroup35) {
                segmentGroup35Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup37 != null && !segmentGroup37.isEmpty()) {
            for(SegmentGroup37 segmentGroup37Inst : segmentGroup37) {
                segmentGroup37Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup42 != null && !segmentGroup42.isEmpty()) {
            for(SegmentGroup42 segmentGroup42Inst : segmentGroup42) {
                segmentGroup42Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public ConsignmentInformation getConsignmentInformation() {
        return consignmentInformation;
    }

    public SegmentGroup28 setConsignmentInformation(ConsignmentInformation consignmentInformation) {
        this.consignmentInformation = consignmentInformation;  return this;
    }

    public List getTransportChargeRateCalculations() {
        return transportChargeRateCalculations;
    }

    public SegmentGroup28 setTransportChargeRateCalculations(List transportChargeRateCalculations) {
        this.transportChargeRateCalculations = transportChargeRateCalculations;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup28 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getTransportServiceRequirements() {
        return transportServiceRequirements;
    }

    public SegmentGroup28 setTransportServiceRequirements(List transportServiceRequirements) {
        this.transportServiceRequirements = transportServiceRequirements;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public SegmentGroup28 setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

    public SegmentGroup28 setMonetaryAmount(List monetaryAmount) {
        this.monetaryAmount = monetaryAmount;  return this;
    }

    public List getSegmentGroup29() {
        return segmentGroup29;
    }

    public SegmentGroup28 setSegmentGroup29(List segmentGroup29) {
        this.segmentGroup29 = segmentGroup29;  return this;
    }

    public List getSegmentGroup30() {
        return segmentGroup30;
    }

    public SegmentGroup28 setSegmentGroup30(List segmentGroup30) {
        this.segmentGroup30 = segmentGroup30;  return this;
    }

    public List getSegmentGroup31() {
        return segmentGroup31;
    }

    public SegmentGroup28 setSegmentGroup31(List segmentGroup31) {
        this.segmentGroup31 = segmentGroup31;  return this;
    }

    public List getSegmentGroup32() {
        return segmentGroup32;
    }

    public SegmentGroup28 setSegmentGroup32(List segmentGroup32) {
        this.segmentGroup32 = segmentGroup32;  return this;
    }

    public List getSegmentGroup33() {
        return segmentGroup33;
    }

    public SegmentGroup28 setSegmentGroup33(List segmentGroup33) {
        this.segmentGroup33 = segmentGroup33;  return this;
    }

    public List getSegmentGroup34() {
        return segmentGroup34;
    }

    public SegmentGroup28 setSegmentGroup34(List segmentGroup34) {
        this.segmentGroup34 = segmentGroup34;  return this;
    }

    public List getSegmentGroup35() {
        return segmentGroup35;
    }

    public SegmentGroup28 setSegmentGroup35(List segmentGroup35) {
        this.segmentGroup35 = segmentGroup35;  return this;
    }

    public List getSegmentGroup37() {
        return segmentGroup37;
    }

    public SegmentGroup28 setSegmentGroup37(List segmentGroup37) {
        this.segmentGroup37 = segmentGroup37;  return this;
    }

    public List getSegmentGroup42() {
        return segmentGroup42;
    }

    public SegmentGroup28 setSegmentGroup42(List segmentGroup42) {
        this.segmentGroup42 = segmentGroup42;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy