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

org.milyn.edi.unedifact.d05a.INSREQ.SegmentGroup8 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.d05a.INSREQ;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.NADNameAndAddress;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.GEIProcessingInformation;    
import org.milyn.edi.unedifact.d05a.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d05a.common.QTYQuantity;    
import org.milyn.edi.unedifact.d05a.common.QVRQuantityVariances;    
import org.milyn.edi.unedifact.d05a.common.RFFReference;    
import org.milyn.edi.unedifact.d05a.common.FTXFreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup8 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private NADNameAndAddress nADNameAndAddress;
    private List gEIProcessingInformation;
    private List lOCPlaceLocationIdentification;
    private List qTYQuantity;
    private List qVRQuantityVariances;
    private List rFFReference;
    private List fTXFreeText;
    private List segmentGroup9;

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

        if(nADNameAndAddress != null) {
            nodeWriter.write("NAD");
            nodeWriter.write(delimiters.getField());
            nADNameAndAddress.write(nodeWriter, delimiters);
        }
        if(gEIProcessingInformation != null && !gEIProcessingInformation.isEmpty()) {
            for(GEIProcessingInformation gEIProcessingInformationInst : gEIProcessingInformation) {
                nodeWriter.write("GEI");
                nodeWriter.write(delimiters.getField());
                gEIProcessingInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(qVRQuantityVariances != null && !qVRQuantityVariances.isEmpty()) {
            for(QVRQuantityVariances qVRQuantityVariancesInst : qVRQuantityVariances) {
                nodeWriter.write("QVR");
                nodeWriter.write(delimiters.getField());
                qVRQuantityVariancesInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
            for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
                segmentGroup9Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public NADNameAndAddress getNADNameAndAddress() {
        return nADNameAndAddress;
    }

    public SegmentGroup8 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
        this.nADNameAndAddress = nADNameAndAddress;  return this;
    }

    public List getGEIProcessingInformation() {
        return gEIProcessingInformation;
    }

    public SegmentGroup8 setGEIProcessingInformation(List gEIProcessingInformation) {
        this.gEIProcessingInformation = gEIProcessingInformation;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

    public SegmentGroup8 setQTYQuantity(List qTYQuantity) {
        this.qTYQuantity = qTYQuantity;  return this;
    }

    public List getQVRQuantityVariances() {
        return qVRQuantityVariances;
    }

    public SegmentGroup8 setQVRQuantityVariances(List qVRQuantityVariances) {
        this.qVRQuantityVariances = qVRQuantityVariances;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getSegmentGroup9() {
        return segmentGroup9;
    }

    public SegmentGroup8 setSegmentGroup9(List segmentGroup9) {
        this.segmentGroup9 = segmentGroup9;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy