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

org.milyn.edi.unedifact.d11b.IFCSUM.SegmentGroup27 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.d11b.IFCSUM;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d11b.common.CNIConsignmentInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d11b.common.CTAContactInformation;    
import org.milyn.edi.unedifact.d11b.common.COMCommunicationContact;    
import org.milyn.edi.unedifact.d11b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d11b.common.CNTControlTotal;    
import org.milyn.edi.unedifact.d11b.common.TSRTransportServiceRequirements;    
import org.milyn.edi.unedifact.d11b.common.CUXCurrencies;    
import org.milyn.edi.unedifact.d11b.common.PCDPercentageDetails;    
import org.milyn.edi.unedifact.d11b.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d11b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d11b.common.GDSNatureOfCargo;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup27 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private CNIConsignmentInformation cNIConsignmentInformation;
    private List segmentGroup28;
    private List segmentGroup30;
    private CTAContactInformation cTAContactInformation;
    private List cOMCommunicationContact;
    private List dTMDateTimePeriod;
    private List cNTControlTotal;
    private List tSRTransportServiceRequirements;
    private List cUXCurrencies;
    private List pCDPercentageDetails;
    private List mOAMonetaryAmount;
    private List fTXFreeText;
    private List gDSNatureOfCargo;
    private List segmentGroup32;
    private List segmentGroup33;
    private List segmentGroup34;
    private List segmentGroup35;
    private List segmentGroup37;
    private List segmentGroup38;
    private List segmentGroup39;
    private List segmentGroup40;
    private List segmentGroup46;
    private List segmentGroup53;
    private List segmentGroup73;

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

        if(cNIConsignmentInformation != null) {
            nodeWriter.write("CNI");
            nodeWriter.write(delimiters.getField());
            cNIConsignmentInformation.write(nodeWriter, delimiters);
        }
        if(segmentGroup28 != null && !segmentGroup28.isEmpty()) {
            for(SegmentGroup28 segmentGroup28Inst : segmentGroup28) {
                segmentGroup28Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
            for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
                segmentGroup30Inst.write(nodeWriter, delimiters);
            }
        }
        if(cTAContactInformation != null) {
            nodeWriter.write("CTA");
            nodeWriter.write(delimiters.getField());
            cTAContactInformation.write(nodeWriter, delimiters);
        }
        if(cOMCommunicationContact != null && !cOMCommunicationContact.isEmpty()) {
            for(COMCommunicationContact cOMCommunicationContactInst : cOMCommunicationContact) {
                nodeWriter.write("COM");
                nodeWriter.write(delimiters.getField());
                cOMCommunicationContactInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(cNTControlTotal != null && !cNTControlTotal.isEmpty()) {
            for(CNTControlTotal cNTControlTotalInst : cNTControlTotal) {
                nodeWriter.write("CNT");
                nodeWriter.write(delimiters.getField());
                cNTControlTotalInst.write(nodeWriter, delimiters);
            }
        }
        if(tSRTransportServiceRequirements != null && !tSRTransportServiceRequirements.isEmpty()) {
            for(TSRTransportServiceRequirements tSRTransportServiceRequirementsInst : tSRTransportServiceRequirements) {
                nodeWriter.write("TSR");
                nodeWriter.write(delimiters.getField());
                tSRTransportServiceRequirementsInst.write(nodeWriter, delimiters);
            }
        }
        if(cUXCurrencies != null && !cUXCurrencies.isEmpty()) {
            for(CUXCurrencies cUXCurrenciesInst : cUXCurrencies) {
                nodeWriter.write("CUX");
                nodeWriter.write(delimiters.getField());
                cUXCurrenciesInst.write(nodeWriter, delimiters);
            }
        }
        if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
            for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
                nodeWriter.write("PCD");
                nodeWriter.write(delimiters.getField());
                pCDPercentageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(gDSNatureOfCargo != null && !gDSNatureOfCargo.isEmpty()) {
            for(GDSNatureOfCargo gDSNatureOfCargoInst : gDSNatureOfCargo) {
                nodeWriter.write("GDS");
                nodeWriter.write(delimiters.getField());
                gDSNatureOfCargoInst.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(segmentGroup38 != null && !segmentGroup38.isEmpty()) {
            for(SegmentGroup38 segmentGroup38Inst : segmentGroup38) {
                segmentGroup38Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup39 != null && !segmentGroup39.isEmpty()) {
            for(SegmentGroup39 segmentGroup39Inst : segmentGroup39) {
                segmentGroup39Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup40 != null && !segmentGroup40.isEmpty()) {
            for(SegmentGroup40 segmentGroup40Inst : segmentGroup40) {
                segmentGroup40Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup46 != null && !segmentGroup46.isEmpty()) {
            for(SegmentGroup46 segmentGroup46Inst : segmentGroup46) {
                segmentGroup46Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup53 != null && !segmentGroup53.isEmpty()) {
            for(SegmentGroup53 segmentGroup53Inst : segmentGroup53) {
                segmentGroup53Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup73 != null && !segmentGroup73.isEmpty()) {
            for(SegmentGroup73 segmentGroup73Inst : segmentGroup73) {
                segmentGroup73Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public CNIConsignmentInformation getCNIConsignmentInformation() {
        return cNIConsignmentInformation;
    }

    public SegmentGroup27 setCNIConsignmentInformation(CNIConsignmentInformation cNIConsignmentInformation) {
        this.cNIConsignmentInformation = cNIConsignmentInformation;  return this;
    }

    public List getSegmentGroup28() {
        return segmentGroup28;
    }

    public SegmentGroup27 setSegmentGroup28(List segmentGroup28) {
        this.segmentGroup28 = segmentGroup28;  return this;
    }

    public List getSegmentGroup30() {
        return segmentGroup30;
    }

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

    public CTAContactInformation getCTAContactInformation() {
        return cTAContactInformation;
    }

    public SegmentGroup27 setCTAContactInformation(CTAContactInformation cTAContactInformation) {
        this.cTAContactInformation = cTAContactInformation;  return this;
    }

    public List getCOMCommunicationContact() {
        return cOMCommunicationContact;
    }

    public SegmentGroup27 setCOMCommunicationContact(List cOMCommunicationContact) {
        this.cOMCommunicationContact = cOMCommunicationContact;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getCNTControlTotal() {
        return cNTControlTotal;
    }

    public SegmentGroup27 setCNTControlTotal(List cNTControlTotal) {
        this.cNTControlTotal = cNTControlTotal;  return this;
    }

    public List getTSRTransportServiceRequirements() {
        return tSRTransportServiceRequirements;
    }

    public SegmentGroup27 setTSRTransportServiceRequirements(List tSRTransportServiceRequirements) {
        this.tSRTransportServiceRequirements = tSRTransportServiceRequirements;  return this;
    }

    public List getCUXCurrencies() {
        return cUXCurrencies;
    }

    public SegmentGroup27 setCUXCurrencies(List cUXCurrencies) {
        this.cUXCurrencies = cUXCurrencies;  return this;
    }

    public List getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup27 setPCDPercentageDetails(List pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup27 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getGDSNatureOfCargo() {
        return gDSNatureOfCargo;
    }

    public SegmentGroup27 setGDSNatureOfCargo(List gDSNatureOfCargo) {
        this.gDSNatureOfCargo = gDSNatureOfCargo;  return this;
    }

    public List getSegmentGroup32() {
        return segmentGroup32;
    }

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

    public List getSegmentGroup33() {
        return segmentGroup33;
    }

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

    public List getSegmentGroup34() {
        return segmentGroup34;
    }

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

    public List getSegmentGroup35() {
        return segmentGroup35;
    }

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

    public List getSegmentGroup37() {
        return segmentGroup37;
    }

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

    public List getSegmentGroup38() {
        return segmentGroup38;
    }

    public SegmentGroup27 setSegmentGroup38(List segmentGroup38) {
        this.segmentGroup38 = segmentGroup38;  return this;
    }

    public List getSegmentGroup39() {
        return segmentGroup39;
    }

    public SegmentGroup27 setSegmentGroup39(List segmentGroup39) {
        this.segmentGroup39 = segmentGroup39;  return this;
    }

    public List getSegmentGroup40() {
        return segmentGroup40;
    }

    public SegmentGroup27 setSegmentGroup40(List segmentGroup40) {
        this.segmentGroup40 = segmentGroup40;  return this;
    }

    public List getSegmentGroup46() {
        return segmentGroup46;
    }

    public SegmentGroup27 setSegmentGroup46(List segmentGroup46) {
        this.segmentGroup46 = segmentGroup46;  return this;
    }

    public List getSegmentGroup53() {
        return segmentGroup53;
    }

    public SegmentGroup27 setSegmentGroup53(List segmentGroup53) {
        this.segmentGroup53 = segmentGroup53;  return this;
    }

    public List getSegmentGroup73() {
        return segmentGroup73;
    }

    public SegmentGroup27 setSegmentGroup73(List segmentGroup73) {
        this.segmentGroup73 = segmentGroup73;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy