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

org.milyn.edi.unedifact.d09b.PROINQ.SegmentGroup6 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.d09b.PROINQ;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d09b.common.IRQInformationRequired;    
import java.util.List;    
import org.milyn.edi.unedifact.d09b.common.PIAAdditionalProductId;    
import org.milyn.edi.unedifact.d09b.common.IMDItemDescription;    
import org.milyn.edi.unedifact.d09b.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d09b.common.NADNameAndAddress;    
import org.milyn.edi.unedifact.d09b.common.PGIProductGroupInformation;    
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup6 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private IRQInformationRequired iRQInformationRequired;
    private List pIAAdditionalProductId;
    private List iMDItemDescription;
    private List mEAMeasurements;
    private List nADNameAndAddress;
    private List pGIProductGroupInformation;
    private List dTMDateTimePeriod;
    private List segmentGroup7;

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

        if(iRQInformationRequired != null) {
            nodeWriter.write("IRQ");
            nodeWriter.write(delimiters.getField());
            iRQInformationRequired.write(nodeWriter, delimiters);
        }
        if(pIAAdditionalProductId != null && !pIAAdditionalProductId.isEmpty()) {
            for(PIAAdditionalProductId pIAAdditionalProductIdInst : pIAAdditionalProductId) {
                nodeWriter.write("PIA");
                nodeWriter.write(delimiters.getField());
                pIAAdditionalProductIdInst.write(nodeWriter, delimiters);
            }
        }
        if(iMDItemDescription != null && !iMDItemDescription.isEmpty()) {
            for(IMDItemDescription iMDItemDescriptionInst : iMDItemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                iMDItemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(nADNameAndAddress != null && !nADNameAndAddress.isEmpty()) {
            for(NADNameAndAddress nADNameAndAddressInst : nADNameAndAddress) {
                nodeWriter.write("NAD");
                nodeWriter.write(delimiters.getField());
                nADNameAndAddressInst.write(nodeWriter, delimiters);
            }
        }
        if(pGIProductGroupInformation != null && !pGIProductGroupInformation.isEmpty()) {
            for(PGIProductGroupInformation pGIProductGroupInformationInst : pGIProductGroupInformation) {
                nodeWriter.write("PGI");
                nodeWriter.write(delimiters.getField());
                pGIProductGroupInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public IRQInformationRequired getIRQInformationRequired() {
        return iRQInformationRequired;
    }

    public SegmentGroup6 setIRQInformationRequired(IRQInformationRequired iRQInformationRequired) {
        this.iRQInformationRequired = iRQInformationRequired;  return this;
    }

    public List getPIAAdditionalProductId() {
        return pIAAdditionalProductId;
    }

    public SegmentGroup6 setPIAAdditionalProductId(List pIAAdditionalProductId) {
        this.pIAAdditionalProductId = pIAAdditionalProductId;  return this;
    }

    public List getIMDItemDescription() {
        return iMDItemDescription;
    }

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

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getNADNameAndAddress() {
        return nADNameAndAddress;
    }

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

    public List getPGIProductGroupInformation() {
        return pGIProductGroupInformation;
    }

    public SegmentGroup6 setPGIProductGroupInformation(List pGIProductGroupInformation) {
        this.pGIProductGroupInformation = pGIProductGroupInformation;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

    public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy