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

org.milyn.edi.unedifact.d02a.QALITY.SegmentGroup32 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.d02a.QALITY;

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

public class SegmentGroup32 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 segmentGroup33;
    private List segmentGroup34;
    private List segmentGroup36;
    private List segmentGroup38;

    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(segmentGroup33 != null && !segmentGroup33.isEmpty()) {
            for(SegmentGroup33 segmentGroup33Inst : segmentGroup33) {
                segmentGroup33Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup34 != null && !segmentGroup34.isEmpty()) {
            for(SegmentGroup34 segmentGroup34Inst : segmentGroup34) {
                segmentGroup34Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup36 != null && !segmentGroup36.isEmpty()) {
            for(SegmentGroup36 segmentGroup36Inst : segmentGroup36) {
                segmentGroup36Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup38 != null && !segmentGroup38.isEmpty()) {
            for(SegmentGroup38 segmentGroup38Inst : segmentGroup38) {
                segmentGroup38Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public CharacteristicClassId getCharacteristicClassId() {
        return characteristicClassId;
    }

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

    public List getPhysicalSampleDescription() {
        return physicalSampleDescription;
    }

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

    public List getSamplingParametersForSummaryStatistics() {
        return samplingParametersForSummaryStatistics;
    }

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

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getFreeText() {
        return freeText;
    }

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

    public List getSegmentGroup33() {
        return segmentGroup33;
    }

    public SegmentGroup32 setSegmentGroup33(List segmentGroup33) {
        this.segmentGroup33 = segmentGroup33;  return this;
    }

    public List getSegmentGroup34() {
        return segmentGroup34;
    }

    public SegmentGroup32 setSegmentGroup34(List segmentGroup34) {
        this.segmentGroup34 = segmentGroup34;  return this;
    }

    public List getSegmentGroup36() {
        return segmentGroup36;
    }

    public SegmentGroup32 setSegmentGroup36(List segmentGroup36) {
        this.segmentGroup36 = segmentGroup36;  return this;
    }

    public List getSegmentGroup38() {
        return segmentGroup38;
    }

    public SegmentGroup32 setSegmentGroup38(List segmentGroup38) {
        this.segmentGroup38 = segmentGroup38;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy