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

org.milyn.edi.unedifact.d05a.CUSREP.SegmentGroup9 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.CUSREP;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.LOCPlaceLocationIdentification;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.QTYQuantity;    
import org.milyn.edi.unedifact.d05a.common.NADNameAndAddress;    
import org.milyn.edi.unedifact.d05a.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d05a.common.POCPurposeOfConveyanceCall;    
import org.milyn.edi.unedifact.d05a.common.STSStatus;    
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 SegmentGroup9 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LOCPlaceLocationIdentification lOCPlaceLocationIdentification;
    private List dTMDateTimePeriod;
    private List qTYQuantity;
    private List nADNameAndAddress;
    private List mEAMeasurements;
    private List pOCPurposeOfConveyanceCall;
    private List sTSStatus;
    private List fTXFreeText;

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

        if(lOCPlaceLocationIdentification != null) {
            nodeWriter.write("LOC");
            nodeWriter.write(delimiters.getField());
            lOCPlaceLocationIdentification.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(nADNameAndAddress != null && !nADNameAndAddress.isEmpty()) {
            for(NADNameAndAddress nADNameAndAddressInst : nADNameAndAddress) {
                nodeWriter.write("NAD");
                nodeWriter.write(delimiters.getField());
                nADNameAndAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(pOCPurposeOfConveyanceCall != null && !pOCPurposeOfConveyanceCall.isEmpty()) {
            for(POCPurposeOfConveyanceCall pOCPurposeOfConveyanceCallInst : pOCPurposeOfConveyanceCall) {
                nodeWriter.write("POC");
                nodeWriter.write(delimiters.getField());
                pOCPurposeOfConveyanceCallInst.write(nodeWriter, delimiters);
            }
        }
        if(sTSStatus != null && !sTSStatus.isEmpty()) {
            for(STSStatus sTSStatusInst : sTSStatus) {
                nodeWriter.write("STS");
                nodeWriter.write(delimiters.getField());
                sTSStatusInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
    }

    public LOCPlaceLocationIdentification getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup9 setLOCPlaceLocationIdentification(LOCPlaceLocationIdentification lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public List getNADNameAndAddress() {
        return nADNameAndAddress;
    }

    public SegmentGroup9 setNADNameAndAddress(List nADNameAndAddress) {
        this.nADNameAndAddress = nADNameAndAddress;  return this;
    }

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

    public SegmentGroup9 setMEAMeasurements(List mEAMeasurements) {
        this.mEAMeasurements = mEAMeasurements;  return this;
    }

    public List getPOCPurposeOfConveyanceCall() {
        return pOCPurposeOfConveyanceCall;
    }

    public SegmentGroup9 setPOCPurposeOfConveyanceCall(List pOCPurposeOfConveyanceCall) {
        this.pOCPurposeOfConveyanceCall = pOCPurposeOfConveyanceCall;  return this;
    }

    public List getSTSStatus() {
        return sTSStatus;
    }

    public SegmentGroup9 setSTSStatus(List sTSStatus) {
        this.sTSStatus = sTSStatus;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy