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

org.milyn.edi.unedifact.d16a.MEDRPT.SegmentGroup14 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d16a.MEDRPT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d16a.common.SEQSequenceDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d16a.common.IMDItemDescription;    
import org.milyn.edi.unedifact.d16a.common.PRCProcessIdentification;    
import org.milyn.edi.unedifact.d16a.common.RFFReference;    
import org.milyn.edi.unedifact.d16a.common.QTYQuantity;    
import org.milyn.edi.unedifact.d16a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d16a.common.PACPackage;    
import org.milyn.edi.unedifact.d16a.common.FTXFreeText;    
import org.milyn.edi.unedifact.d16a.common.TDTTransportInformation;    
import org.milyn.edi.unedifact.d16a.common.HANHandlingInstructions;    
import org.milyn.edi.unedifact.d16a.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d16a.common.ADRAddress;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup14 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private SEQSequenceDetails sEQSequenceDetails;
    private List iMDItemDescription;
    private List pRCProcessIdentification;
    private List rFFReference;
    private QTYQuantity qTYQuantity;
    private List dTMDateTimePeriod;
    private PACPackage pACPackage;
    private List fTXFreeText;
    private List tDTTransportInformation;
    private List hANHandlingInstructions;
    private List lOCPlaceLocationIdentification;
    private List aDRAddress;
    private List segmentGroup15;

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

        if(sEQSequenceDetails != null) {
            nodeWriter.write("SEQ");
            nodeWriter.write(delimiters.getField());
            sEQSequenceDetails.write(nodeWriter, delimiters);
        }
        if(iMDItemDescription != null && !iMDItemDescription.isEmpty()) {
            for(IMDItemDescription iMDItemDescriptionInst : iMDItemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                iMDItemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(pRCProcessIdentification != null && !pRCProcessIdentification.isEmpty()) {
            for(PRCProcessIdentification pRCProcessIdentificationInst : pRCProcessIdentification) {
                nodeWriter.write("PRC");
                nodeWriter.write(delimiters.getField());
                pRCProcessIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(qTYQuantity != null) {
            nodeWriter.write("QTY");
            nodeWriter.write(delimiters.getField());
            qTYQuantity.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(pACPackage != null) {
            nodeWriter.write("PAC");
            nodeWriter.write(delimiters.getField());
            pACPackage.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(tDTTransportInformation != null && !tDTTransportInformation.isEmpty()) {
            for(TDTTransportInformation tDTTransportInformationInst : tDTTransportInformation) {
                nodeWriter.write("TDT");
                nodeWriter.write(delimiters.getField());
                tDTTransportInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(hANHandlingInstructions != null && !hANHandlingInstructions.isEmpty()) {
            for(HANHandlingInstructions hANHandlingInstructionsInst : hANHandlingInstructions) {
                nodeWriter.write("HAN");
                nodeWriter.write(delimiters.getField());
                hANHandlingInstructionsInst.write(nodeWriter, delimiters);
            }
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(aDRAddress != null && !aDRAddress.isEmpty()) {
            for(ADRAddress aDRAddressInst : aDRAddress) {
                nodeWriter.write("ADR");
                nodeWriter.write(delimiters.getField());
                aDRAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
            for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
                segmentGroup15Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public SEQSequenceDetails getSEQSequenceDetails() {
        return sEQSequenceDetails;
    }

    public SegmentGroup14 setSEQSequenceDetails(SEQSequenceDetails sEQSequenceDetails) {
        this.sEQSequenceDetails = sEQSequenceDetails;  return this;
    }

    public List getIMDItemDescription() {
        return iMDItemDescription;
    }

    public SegmentGroup14 setIMDItemDescription(List iMDItemDescription) {
        this.iMDItemDescription = iMDItemDescription;  return this;
    }

    public List getPRCProcessIdentification() {
        return pRCProcessIdentification;
    }

    public SegmentGroup14 setPRCProcessIdentification(List pRCProcessIdentification) {
        this.pRCProcessIdentification = pRCProcessIdentification;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup14 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public QTYQuantity getQTYQuantity() {
        return qTYQuantity;
    }

    public SegmentGroup14 setQTYQuantity(QTYQuantity qTYQuantity) {
        this.qTYQuantity = qTYQuantity;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public PACPackage getPACPackage() {
        return pACPackage;
    }

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

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getTDTTransportInformation() {
        return tDTTransportInformation;
    }

    public SegmentGroup14 setTDTTransportInformation(List tDTTransportInformation) {
        this.tDTTransportInformation = tDTTransportInformation;  return this;
    }

    public List getHANHandlingInstructions() {
        return hANHandlingInstructions;
    }

    public SegmentGroup14 setHANHandlingInstructions(List hANHandlingInstructions) {
        this.hANHandlingInstructions = hANHandlingInstructions;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup14 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public List getADRAddress() {
        return aDRAddress;
    }

    public SegmentGroup14 setADRAddress(List aDRAddress) {
        this.aDRAddress = aDRAddress;  return this;
    }

    public List getSegmentGroup15() {
        return segmentGroup15;
    }

    public SegmentGroup14 setSegmentGroup15(List segmentGroup15) {
        this.segmentGroup15 = segmentGroup15;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy