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

org.milyn.edi.unedifact.d02a.CUSDEC.SegmentGroup10 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.CUSDEC;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d02a.common.DocumentMessageSummary;    
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;    
import java.util.List;    
import org.milyn.edi.unedifact.d02a.common.Measurements;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup10 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private DocumentMessageSummary documentMessageSummary;
    private DateTimePeriod dateTimePeriod;
    private List measurements;
    private List segmentGroup11;
    private SegmentGroup13 segmentGroup13;
    private List segmentGroup14;
    private List segmentGroup16;
    private List segmentGroup18;
    private List segmentGroup19;
    private List segmentGroup21;

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

        if(documentMessageSummary != null) {
            nodeWriter.write("DMS");
            nodeWriter.write(delimiters.getField());
            documentMessageSummary.write(nodeWriter, delimiters);
        }
        if(dateTimePeriod != null) {
            nodeWriter.write("DTM");
            nodeWriter.write(delimiters.getField());
            dateTimePeriod.write(nodeWriter, delimiters);
        }
        if(measurements != null && !measurements.isEmpty()) {
            for(Measurements measurementsInst : measurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                measurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
            for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
                segmentGroup11Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup13 != null) {
            segmentGroup13.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);
            }
        }
        if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
            for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
                segmentGroup19Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup21 != null && !segmentGroup21.isEmpty()) {
            for(SegmentGroup21 segmentGroup21Inst : segmentGroup21) {
                segmentGroup21Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public DocumentMessageSummary getDocumentMessageSummary() {
        return documentMessageSummary;
    }

    public SegmentGroup10 setDocumentMessageSummary(DocumentMessageSummary documentMessageSummary) {
        this.documentMessageSummary = documentMessageSummary;  return this;
    }

    public DateTimePeriod getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup10 setDateTimePeriod(DateTimePeriod dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getMeasurements() {
        return measurements;
    }

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

    public List getSegmentGroup11() {
        return segmentGroup11;
    }

    public SegmentGroup10 setSegmentGroup11(List segmentGroup11) {
        this.segmentGroup11 = segmentGroup11;  return this;
    }

    public SegmentGroup13 getSegmentGroup13() {
        return segmentGroup13;
    }

    public SegmentGroup10 setSegmentGroup13(SegmentGroup13 segmentGroup13) {
        this.segmentGroup13 = segmentGroup13;  return this;
    }

    public List getSegmentGroup14() {
        return segmentGroup14;
    }

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

    public List getSegmentGroup16() {
        return segmentGroup16;
    }

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

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

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

    public List getSegmentGroup19() {
        return segmentGroup19;
    }

    public SegmentGroup10 setSegmentGroup19(List segmentGroup19) {
        this.segmentGroup19 = segmentGroup19;  return this;
    }

    public List getSegmentGroup21() {
        return segmentGroup21;
    }

    public SegmentGroup10 setSegmentGroup21(List segmentGroup21) {
        this.segmentGroup21 = segmentGroup21;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy