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

org.milyn.edi.unedifact.d05a.IFTICL.SegmentGroup12 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.d05a.IFTICL;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.Status;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.Reference;    
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.InsuranceCoverDescription;    
import org.milyn.edi.unedifact.d05a.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d05a.common.Measurements;    
import org.milyn.edi.unedifact.d05a.common.QueryAndResponse;    
import org.milyn.edi.unedifact.d05a.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 Status status;
    private List reference;
    private List dateTimePeriod;
    private List insuranceCoverDescription;
    private List placeLocationIdentification;
    private List measurements;
    private List queryAndResponse;
    private List freeText;
    private List segmentGroup13;
    private List segmentGroup14;

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

        if(status != null) {
            nodeWriter.write("STS");
            nodeWriter.write(delimiters.getField());
            status.write(nodeWriter, delimiters);
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(insuranceCoverDescription != null && !insuranceCoverDescription.isEmpty()) {
            for(InsuranceCoverDescription insuranceCoverDescriptionInst : insuranceCoverDescription) {
                nodeWriter.write("ICD");
                nodeWriter.write(delimiters.getField());
                insuranceCoverDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(measurements != null && !measurements.isEmpty()) {
            for(Measurements measurementsInst : measurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                measurementsInst.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(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);
            }
        }
    }

    public Status getStatus() {
        return status;
    }

    public SegmentGroup12 setStatus(Status status) {
        this.status = status;  return this;
    }

    public List getReference() {
        return reference;
    }

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

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getInsuranceCoverDescription() {
        return insuranceCoverDescription;
    }

    public SegmentGroup12 setInsuranceCoverDescription(List insuranceCoverDescription) {
        this.insuranceCoverDescription = insuranceCoverDescription;  return this;
    }

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

    public SegmentGroup12 setPlaceLocationIdentification(List placeLocationIdentification) {
        this.placeLocationIdentification = placeLocationIdentification;  return this;
    }

    public List getMeasurements() {
        return measurements;
    }

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

    public List getQueryAndResponse() {
        return queryAndResponse;
    }

    public SegmentGroup12 setQueryAndResponse(List queryAndResponse) {
        this.queryAndResponse = queryAndResponse;  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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy