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

org.milyn.edi.unedifact.d96a.QALITY.SegmentGroup5 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.d96a.QALITY;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d96a.common.LineItem;    
import java.util.List;    
import org.milyn.edi.unedifact.d96a.common.AdditionalProductId;    
import org.milyn.edi.unedifact.d96a.common.ItemDescription;    
import org.milyn.edi.unedifact.d96a.common.Measurements;    
import org.milyn.edi.unedifact.d96a.common.PhysicalSampleDescription;    
import org.milyn.edi.unedifact.d96a.common.SamplingParametersForSummaryStatistics;    
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d96a.common.Quantity;    
import org.milyn.edi.unedifact.d96a.common.FreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup5 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LineItem lineItem;
    private List additionalProductId;
    private List itemDescription;
    private List measurements;
    private PhysicalSampleDescription physicalSampleDescription;
    private SamplingParametersForSummaryStatistics samplingParametersForSummaryStatistic;
    private List dateTimePeriod;
    private List quantity;
    private List freeText;
    private List segmentGroup6;
    private List segmentGroup7;
    private List segmentGroup10;
    private List segmentGroup12;
    private List segmentGroup20;
    private List segmentGroup30;

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

        if(lineItem != null) {
            nodeWriter.write("LIN");
            nodeWriter.write(delimiters.getField());
            lineItem.write(nodeWriter, delimiters);
        }
        if(additionalProductId != null && !additionalProductId.isEmpty()) {
            for(AdditionalProductId additionalProductIdInst : additionalProductId) {
                nodeWriter.write("PIA");
                nodeWriter.write(delimiters.getField());
                additionalProductIdInst.write(nodeWriter, delimiters);
            }
        }
        if(itemDescription != null && !itemDescription.isEmpty()) {
            for(ItemDescription itemDescriptionInst : itemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                itemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(measurements != null && !measurements.isEmpty()) {
            for(Measurements measurementsInst : measurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                measurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(physicalSampleDescription != null) {
            nodeWriter.write("PSD");
            nodeWriter.write(delimiters.getField());
            physicalSampleDescription.write(nodeWriter, delimiters);
        }
        if(samplingParametersForSummaryStatistic != null) {
            nodeWriter.write("SPS");
            nodeWriter.write(delimiters.getField());
            samplingParametersForSummaryStatistic.write(nodeWriter, delimiters);
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(quantity != null && !quantity.isEmpty()) {
            for(Quantity quantityInst : quantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                quantityInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
            for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
                segmentGroup10Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
            for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
                segmentGroup12Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
            for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
                segmentGroup20Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup30 != null && !segmentGroup30.isEmpty()) {
            for(SegmentGroup30 segmentGroup30Inst : segmentGroup30) {
                segmentGroup30Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public LineItem getLineItem() {
        return lineItem;
    }

    public SegmentGroup5 setLineItem(LineItem lineItem) {
        this.lineItem = lineItem;  return this;
    }

    public List getAdditionalProductId() {
        return additionalProductId;
    }

    public SegmentGroup5 setAdditionalProductId(List additionalProductId) {
        this.additionalProductId = additionalProductId;  return this;
    }

    public List getItemDescription() {
        return itemDescription;
    }

    public SegmentGroup5 setItemDescription(List itemDescription) {
        this.itemDescription = itemDescription;  return this;
    }

    public List getMeasurements() {
        return measurements;
    }

    public SegmentGroup5 setMeasurements(List measurements) {
        this.measurements = measurements;  return this;
    }

    public PhysicalSampleDescription getPhysicalSampleDescription() {
        return physicalSampleDescription;
    }

    public SegmentGroup5 setPhysicalSampleDescription(PhysicalSampleDescription physicalSampleDescription) {
        this.physicalSampleDescription = physicalSampleDescription;  return this;
    }

    public SamplingParametersForSummaryStatistics getSamplingParametersForSummaryStatistic() {
        return samplingParametersForSummaryStatistic;
    }

    public SegmentGroup5 setSamplingParametersForSummaryStatistic(SamplingParametersForSummaryStatistics samplingParametersForSummaryStatistic) {
        this.samplingParametersForSummaryStatistic = samplingParametersForSummaryStatistic;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup5 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getQuantity() {
        return quantity;
    }

    public SegmentGroup5 setQuantity(List quantity) {
        this.quantity = quantity;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public SegmentGroup5 setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

    public SegmentGroup5 setSegmentGroup6(List segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

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

    public List getSegmentGroup10() {
        return segmentGroup10;
    }

    public SegmentGroup5 setSegmentGroup10(List segmentGroup10) {
        this.segmentGroup10 = segmentGroup10;  return this;
    }

    public List getSegmentGroup12() {
        return segmentGroup12;
    }

    public SegmentGroup5 setSegmentGroup12(List segmentGroup12) {
        this.segmentGroup12 = segmentGroup12;  return this;
    }

    public List getSegmentGroup20() {
        return segmentGroup20;
    }

    public SegmentGroup5 setSegmentGroup20(List segmentGroup20) {
        this.segmentGroup20 = segmentGroup20;  return this;
    }

    public List getSegmentGroup30() {
        return segmentGroup30;
    }

    public SegmentGroup5 setSegmentGroup30(List segmentGroup30) {
        this.segmentGroup30 = segmentGroup30;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy