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

org.milyn.edi.unedifact.d11b.MEDPRE.SegmentGroup11 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.MEDPRE;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d11b.common.TODTermsOfDeliveryOrTransport;    
import org.milyn.edi.unedifact.d11b.common.TDTTransportInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d11b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d11b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d11b.common.ADRAddress;    
import org.milyn.edi.unedifact.d11b.common.COMCommunicationContact;    
import org.milyn.edi.unedifact.d11b.common.PNAPartyIdentification;    
import org.milyn.edi.unedifact.d11b.common.PTYPriority;    
import org.milyn.edi.unedifact.d11b.common.PACPackage;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup11 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private TODTermsOfDeliveryOrTransport tODTermsOfDeliveryOrTransport;
    private TDTTransportInformation tDTTransportInformation;
    private List fTXFreeText;
    private List dTMDateTimePeriod;
    private ADRAddress aDRAddress;
    private List cOMCommunicationContact;
    private List pNAPartyIdentification;
    private PTYPriority pTYPriority;
    private PACPackage pACPackage;

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

        if(tODTermsOfDeliveryOrTransport != null) {
            nodeWriter.write("TOD");
            nodeWriter.write(delimiters.getField());
            tODTermsOfDeliveryOrTransport.write(nodeWriter, delimiters);
        }
        if(tDTTransportInformation != null) {
            nodeWriter.write("TDT");
            nodeWriter.write(delimiters.getField());
            tDTTransportInformation.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(aDRAddress != null) {
            nodeWriter.write("ADR");
            nodeWriter.write(delimiters.getField());
            aDRAddress.write(nodeWriter, delimiters);
        }
        if(cOMCommunicationContact != null && !cOMCommunicationContact.isEmpty()) {
            for(COMCommunicationContact cOMCommunicationContactInst : cOMCommunicationContact) {
                nodeWriter.write("COM");
                nodeWriter.write(delimiters.getField());
                cOMCommunicationContactInst.write(nodeWriter, delimiters);
            }
        }
        if(pNAPartyIdentification != null && !pNAPartyIdentification.isEmpty()) {
            for(PNAPartyIdentification pNAPartyIdentificationInst : pNAPartyIdentification) {
                nodeWriter.write("PNA");
                nodeWriter.write(delimiters.getField());
                pNAPartyIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(pTYPriority != null) {
            nodeWriter.write("PTY");
            nodeWriter.write(delimiters.getField());
            pTYPriority.write(nodeWriter, delimiters);
        }
        if(pACPackage != null) {
            nodeWriter.write("PAC");
            nodeWriter.write(delimiters.getField());
            pACPackage.write(nodeWriter, delimiters);
        }
    }

    public TODTermsOfDeliveryOrTransport getTODTermsOfDeliveryOrTransport() {
        return tODTermsOfDeliveryOrTransport;
    }

    public SegmentGroup11 setTODTermsOfDeliveryOrTransport(TODTermsOfDeliveryOrTransport tODTermsOfDeliveryOrTransport) {
        this.tODTermsOfDeliveryOrTransport = tODTermsOfDeliveryOrTransport;  return this;
    }

    public TDTTransportInformation getTDTTransportInformation() {
        return tDTTransportInformation;
    }

    public SegmentGroup11 setTDTTransportInformation(TDTTransportInformation tDTTransportInformation) {
        this.tDTTransportInformation = tDTTransportInformation;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public ADRAddress getADRAddress() {
        return aDRAddress;
    }

    public SegmentGroup11 setADRAddress(ADRAddress aDRAddress) {
        this.aDRAddress = aDRAddress;  return this;
    }

    public List getCOMCommunicationContact() {
        return cOMCommunicationContact;
    }

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

    public List getPNAPartyIdentification() {
        return pNAPartyIdentification;
    }

    public SegmentGroup11 setPNAPartyIdentification(List pNAPartyIdentification) {
        this.pNAPartyIdentification = pNAPartyIdentification;  return this;
    }

    public PTYPriority getPTYPriority() {
        return pTYPriority;
    }

    public SegmentGroup11 setPTYPriority(PTYPriority pTYPriority) {
        this.pTYPriority = pTYPriority;  return this;
    }

    public PACPackage getPACPackage() {
        return pACPackage;
    }

    public SegmentGroup11 setPACPackage(PACPackage pACPackage) {
        this.pACPackage = pACPackage;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy