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

org.milyn.edi.unedifact.d02a.IPPOMO.SegmentGroup33 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.IPPOMO;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;    
import java.util.List;    
import org.milyn.edi.unedifact.d02a.common.Reference;    
import org.milyn.edi.unedifact.d02a.common.QueryAndResponse;    
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 SegmentGroup33 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private DateTimePeriod dateTimePeriod;
    private List reference;
    private List queryAndResponse;
    private List freeText;
    private List segmentGroup34;
    private List segmentGroup35;
    private List segmentGroup37;

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

        if(dateTimePeriod != null) {
            nodeWriter.write("DTM");
            nodeWriter.write(delimiters.getField());
            dateTimePeriod.write(nodeWriter, delimiters);
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(queryAndResponse != null && !queryAndResponse.isEmpty()) {
            for(QueryAndResponse queryAndResponseInst : queryAndResponse) {
                nodeWriter.write("QRS");
                nodeWriter.write(delimiters.getField());
                queryAndResponseInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup34 != null && !segmentGroup34.isEmpty()) {
            for(SegmentGroup34 segmentGroup34Inst : segmentGroup34) {
                segmentGroup34Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup35 != null && !segmentGroup35.isEmpty()) {
            for(SegmentGroup35 segmentGroup35Inst : segmentGroup35) {
                segmentGroup35Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup37 != null && !segmentGroup37.isEmpty()) {
            for(SegmentGroup37 segmentGroup37Inst : segmentGroup37) {
                segmentGroup37Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public DateTimePeriod getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getReference() {
        return reference;
    }

    public SegmentGroup33 setReference(List reference) {
        this.reference = reference;  return this;
    }

    public List getQueryAndResponse() {
        return queryAndResponse;
    }

    public SegmentGroup33 setQueryAndResponse(List queryAndResponse) {
        this.queryAndResponse = queryAndResponse;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

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

    public List getSegmentGroup34() {
        return segmentGroup34;
    }

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

    public List getSegmentGroup35() {
        return segmentGroup35;
    }

    public SegmentGroup33 setSegmentGroup35(List segmentGroup35) {
        this.segmentGroup35 = segmentGroup35;  return this;
    }

    public List getSegmentGroup37() {
        return segmentGroup37;
    }

    public SegmentGroup33 setSegmentGroup37(List segmentGroup37) {
        this.segmentGroup37 = segmentGroup37;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy