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

org.milyn.edi.unedifact.d06b.QALITY.SegmentGroup12 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.QALITY;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.CharacteristicClassId;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.PhysicalSampleDescription;    
import org.milyn.edi.unedifact.d06b.common.SamplingParametersForSummaryStatistics;    
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d06b.common.FreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup12 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private CharacteristicClassId characteristicClassId;
    private List physicalSampleDescription;
    private List samplingParametersForSummaryStatistics;
    private List dateTimePeriod;
    private List freeText;
    private List segmentGroup13;
    private List segmentGroup14;
    private List segmentGroup16;
    private List segmentGroup18;

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

        if(characteristicClassId != null) {
            nodeWriter.write("CCI");
            nodeWriter.write(delimiters.getField());
            characteristicClassId.write(nodeWriter, delimiters);
        }
        if(physicalSampleDescription != null && !physicalSampleDescription.isEmpty()) {
            for(PhysicalSampleDescription physicalSampleDescriptionInst : physicalSampleDescription) {
                nodeWriter.write("PSD");
                nodeWriter.write(delimiters.getField());
                physicalSampleDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(samplingParametersForSummaryStatistics != null && !samplingParametersForSummaryStatistics.isEmpty()) {
            for(SamplingParametersForSummaryStatistics samplingParametersForSummaryStatisticsInst : samplingParametersForSummaryStatistics) {
                nodeWriter.write("SPS");
                nodeWriter.write(delimiters.getField());
                samplingParametersForSummaryStatisticsInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
            for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
                segmentGroup13Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
            for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
                segmentGroup14Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
            for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
                segmentGroup16Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
            for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
                segmentGroup18Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public CharacteristicClassId getCharacteristicClassId() {
        return characteristicClassId;
    }

    public SegmentGroup12 setCharacteristicClassId(CharacteristicClassId characteristicClassId) {
        this.characteristicClassId = characteristicClassId;  return this;
    }

    public List getPhysicalSampleDescription() {
        return physicalSampleDescription;
    }

    public SegmentGroup12 setPhysicalSampleDescription(List physicalSampleDescription) {
        this.physicalSampleDescription = physicalSampleDescription;  return this;
    }

    public List getSamplingParametersForSummaryStatistics() {
        return samplingParametersForSummaryStatistics;
    }

    public SegmentGroup12 setSamplingParametersForSummaryStatistics(List samplingParametersForSummaryStatistics) {
        this.samplingParametersForSummaryStatistics = samplingParametersForSummaryStatistics;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public List getSegmentGroup13() {
        return segmentGroup13;
    }

    public SegmentGroup12 setSegmentGroup13(List segmentGroup13) {
        this.segmentGroup13 = segmentGroup13;  return this;
    }

    public List getSegmentGroup14() {
        return segmentGroup14;
    }

    public SegmentGroup12 setSegmentGroup14(List segmentGroup14) {
        this.segmentGroup14 = segmentGroup14;  return this;
    }

    public List getSegmentGroup16() {
        return segmentGroup16;
    }

    public SegmentGroup12 setSegmentGroup16(List segmentGroup16) {
        this.segmentGroup16 = segmentGroup16;  return this;
    }

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

    public SegmentGroup12 setSegmentGroup18(List segmentGroup18) {
        this.segmentGroup18 = segmentGroup18;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy