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

org.milyn.edi.unedifact.d06b.IFCSUM.SegmentGroup26 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.IFCSUM;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.ConsignmentInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.ContactInformation;    
import org.milyn.edi.unedifact.d06b.common.CommunicationContact;    
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d06b.common.ControlTotal;    
import org.milyn.edi.unedifact.d06b.common.TransportServiceRequirements;    
import org.milyn.edi.unedifact.d06b.common.Currencies;    
import org.milyn.edi.unedifact.d06b.common.PercentageDetails;    
import org.milyn.edi.unedifact.d06b.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d06b.common.FreeText;    
import org.milyn.edi.unedifact.d06b.common.NatureOfCargo;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup26 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private ConsignmentInformation consignmentInformation;
    private List segmentGroup27;
    private List segmentGroup29;
    private ContactInformation contactInformation;
    private List communicationContact;
    private List dateTimePeriod;
    private List controlTotal;
    private List transportServiceRequirements;
    private List currencies;
    private List percentageDetails;
    private List monetaryAmount;
    private List freeText;
    private List natureOfCargo;
    private List segmentGroup31;
    private List segmentGroup32;
    private List segmentGroup33;
    private List segmentGroup34;
    private List segmentGroup36;
    private List segmentGroup37;
    private List segmentGroup38;
    private List segmentGroup39;
    private List segmentGroup44;
    private List segmentGroup51;
    private List segmentGroup71;

    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(segmentGroup27 != null && !segmentGroup27.isEmpty()) {
            for(SegmentGroup27 segmentGroup27Inst : segmentGroup27) {
                segmentGroup27Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup29 != null && !segmentGroup29.isEmpty()) {
            for(SegmentGroup29 segmentGroup29Inst : segmentGroup29) {
                segmentGroup29Inst.write(nodeWriter, delimiters);
            }
        }
        if(contactInformation != null) {
            nodeWriter.write("CTA");
            nodeWriter.write(delimiters.getField());
            contactInformation.write(nodeWriter, delimiters);
        }
        if(communicationContact != null && !communicationContact.isEmpty()) {
            for(CommunicationContact communicationContactInst : communicationContact) {
                nodeWriter.write("COM");
                nodeWriter.write(delimiters.getField());
                communicationContactInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(controlTotal != null && !controlTotal.isEmpty()) {
            for(ControlTotal controlTotalInst : controlTotal) {
                nodeWriter.write("CNT");
                nodeWriter.write(delimiters.getField());
                controlTotalInst.write(nodeWriter, delimiters);
            }
        }
        if(transportServiceRequirements != null && !transportServiceRequirements.isEmpty()) {
            for(TransportServiceRequirements transportServiceRequirementsInst : transportServiceRequirements) {
                nodeWriter.write("TSR");
                nodeWriter.write(delimiters.getField());
                transportServiceRequirementsInst.write(nodeWriter, delimiters);
            }
        }
        if(currencies != null && !currencies.isEmpty()) {
            for(Currencies currenciesInst : currencies) {
                nodeWriter.write("CUX");
                nodeWriter.write(delimiters.getField());
                currenciesInst.write(nodeWriter, delimiters);
            }
        }
        if(percentageDetails != null && !percentageDetails.isEmpty()) {
            for(PercentageDetails percentageDetailsInst : percentageDetails) {
                nodeWriter.write("PCD");
                nodeWriter.write(delimiters.getField());
                percentageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(natureOfCargo != null && !natureOfCargo.isEmpty()) {
            for(NatureOfCargo natureOfCargoInst : natureOfCargo) {
                nodeWriter.write("GDS");
                nodeWriter.write(delimiters.getField());
                natureOfCargoInst.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(segmentGroup36 != null && !segmentGroup36.isEmpty()) {
            for(SegmentGroup36 segmentGroup36Inst : segmentGroup36) {
                segmentGroup36Inst.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(segmentGroup44 != null && !segmentGroup44.isEmpty()) {
            for(SegmentGroup44 segmentGroup44Inst : segmentGroup44) {
                segmentGroup44Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup51 != null && !segmentGroup51.isEmpty()) {
            for(SegmentGroup51 segmentGroup51Inst : segmentGroup51) {
                segmentGroup51Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup71 != null && !segmentGroup71.isEmpty()) {
            for(SegmentGroup71 segmentGroup71Inst : segmentGroup71) {
                segmentGroup71Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public ConsignmentInformation getConsignmentInformation() {
        return consignmentInformation;
    }

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

    public List getSegmentGroup27() {
        return segmentGroup27;
    }

    public SegmentGroup26 setSegmentGroup27(List segmentGroup27) {
        this.segmentGroup27 = segmentGroup27;  return this;
    }

    public List getSegmentGroup29() {
        return segmentGroup29;
    }

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

    public ContactInformation getContactInformation() {
        return contactInformation;
    }

    public SegmentGroup26 setContactInformation(ContactInformation contactInformation) {
        this.contactInformation = contactInformation;  return this;
    }

    public List getCommunicationContact() {
        return communicationContact;
    }

    public SegmentGroup26 setCommunicationContact(List communicationContact) {
        this.communicationContact = communicationContact;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getControlTotal() {
        return controlTotal;
    }

    public SegmentGroup26 setControlTotal(List controlTotal) {
        this.controlTotal = controlTotal;  return this;
    }

    public List getTransportServiceRequirements() {
        return transportServiceRequirements;
    }

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

    public List getCurrencies() {
        return currencies;
    }

    public SegmentGroup26 setCurrencies(List currencies) {
        this.currencies = currencies;  return this;
    }

    public List getPercentageDetails() {
        return percentageDetails;
    }

    public SegmentGroup26 setPercentageDetails(List percentageDetails) {
        this.percentageDetails = percentageDetails;  return this;
    }

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public List getNatureOfCargo() {
        return natureOfCargo;
    }

    public SegmentGroup26 setNatureOfCargo(List natureOfCargo) {
        this.natureOfCargo = natureOfCargo;  return this;
    }

    public List getSegmentGroup31() {
        return segmentGroup31;
    }

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

    public List getSegmentGroup32() {
        return segmentGroup32;
    }

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

    public List getSegmentGroup33() {
        return segmentGroup33;
    }

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

    public List getSegmentGroup34() {
        return segmentGroup34;
    }

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

    public List getSegmentGroup36() {
        return segmentGroup36;
    }

    public SegmentGroup26 setSegmentGroup36(List segmentGroup36) {
        this.segmentGroup36 = segmentGroup36;  return this;
    }

    public List getSegmentGroup37() {
        return segmentGroup37;
    }

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

    public List getSegmentGroup38() {
        return segmentGroup38;
    }

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

    public List getSegmentGroup39() {
        return segmentGroup39;
    }

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

    public List getSegmentGroup44() {
        return segmentGroup44;
    }

    public SegmentGroup26 setSegmentGroup44(List segmentGroup44) {
        this.segmentGroup44 = segmentGroup44;  return this;
    }

    public List getSegmentGroup51() {
        return segmentGroup51;
    }

    public SegmentGroup26 setSegmentGroup51(List segmentGroup51) {
        this.segmentGroup51 = segmentGroup51;  return this;
    }

    public List getSegmentGroup71() {
        return segmentGroup71;
    }

    public SegmentGroup26 setSegmentGroup71(List segmentGroup71) {
        this.segmentGroup71 = segmentGroup71;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy