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

org.milyn.edi.unedifact.d96a.IFCSUM.SegmentGroup15 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.d96a.IFCSUM;

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

public class SegmentGroup15 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private ConsignmentInformation consignmentInformation;
    private List segmentGroup16;
    private List segmentGroup18;
    private ContactInformation contactInformation;
    private List communicationContact;
    private List dateTimePeriod;
    private List controlTotal;
    private List transportServiceRequirements;
    private List currencies;
    private List monetaryAmount;
    private List freeText;
    private List segmentGroup20;
    private List segmentGroup21;
    private List segmentGroup22;
    private List segmentGroup23;
    private List segmentGroup25;
    private List segmentGroup26;
    private List segmentGroup27;
    private List segmentGroup30;
    private List segmentGroup37;
    private List segmentGroup56;

    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(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
            for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
                segmentGroup16Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
            for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
                segmentGroup18Inst.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(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(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
            for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
                segmentGroup20Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
            for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
                segmentGroup21Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
            for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
                segmentGroup22Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
            for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
                segmentGroup23Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
            for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
                segmentGroup25Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup26 != null && !segmentGroup26.isEmpty()) {
            for(SegmentGroup26 segmentGroup26Inst : segmentGroup26) {
                segmentGroup26Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup27 != null && !segmentGroup27.isEmpty()) {
            for(SegmentGroup27 segmentGroup27Inst : segmentGroup27) {
                segmentGroup27Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
            for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
                segmentGroup30Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup37 != null && !segmentGroup37.isEmpty()) {
            for(SegmentGroup37 segmentGroup37Inst : segmentGroup37) {
                segmentGroup37Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup56 != null && !segmentGroup56.isEmpty()) {
            for(SegmentGroup56 segmentGroup56Inst : segmentGroup56) {
                segmentGroup56Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public ConsignmentInformation getConsignmentInformation() {
        return consignmentInformation;
    }

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

    public List getSegmentGroup16() {
        return segmentGroup16;
    }

    public SegmentGroup15 setSegmentGroup16(List segmentGroup16) {
        this.segmentGroup16 = segmentGroup16;  return this;
    }

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

    public SegmentGroup15 setSegmentGroup18(List segmentGroup18) {
        this.segmentGroup18 = segmentGroup18;  return this;
    }

    public ContactInformation getContactInformation() {
        return contactInformation;
    }

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

    public List getCommunicationContact() {
        return communicationContact;
    }

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

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getControlTotal() {
        return controlTotal;
    }

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

    public List getTransportServiceRequirements() {
        return transportServiceRequirements;
    }

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

    public List getCurrencies() {
        return currencies;
    }

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

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public List getSegmentGroup20() {
        return segmentGroup20;
    }

    public SegmentGroup15 setSegmentGroup20(List segmentGroup20) {
        this.segmentGroup20 = segmentGroup20;  return this;
    }

    public List getSegmentGroup21() {
        return segmentGroup21;
    }

    public SegmentGroup15 setSegmentGroup21(List segmentGroup21) {
        this.segmentGroup21 = segmentGroup21;  return this;
    }

    public List getSegmentGroup22() {
        return segmentGroup22;
    }

    public SegmentGroup15 setSegmentGroup22(List segmentGroup22) {
        this.segmentGroup22 = segmentGroup22;  return this;
    }

    public List getSegmentGroup23() {
        return segmentGroup23;
    }

    public SegmentGroup15 setSegmentGroup23(List segmentGroup23) {
        this.segmentGroup23 = segmentGroup23;  return this;
    }

    public List getSegmentGroup25() {
        return segmentGroup25;
    }

    public SegmentGroup15 setSegmentGroup25(List segmentGroup25) {
        this.segmentGroup25 = segmentGroup25;  return this;
    }

    public List getSegmentGroup26() {
        return segmentGroup26;
    }

    public SegmentGroup15 setSegmentGroup26(List segmentGroup26) {
        this.segmentGroup26 = segmentGroup26;  return this;
    }

    public List getSegmentGroup27() {
        return segmentGroup27;
    }

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

    public List getSegmentGroup30() {
        return segmentGroup30;
    }

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

    public List getSegmentGroup37() {
        return segmentGroup37;
    }

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

    public List getSegmentGroup56() {
        return segmentGroup56;
    }

    public SegmentGroup15 setSegmentGroup56(List segmentGroup56) {
        this.segmentGroup56 = segmentGroup56;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy