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

org.milyn.edi.unedifact.d09b.MEDRPT.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.d09b.MEDRPT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d09b.common.RSLResult;    
import java.util.List;    
import org.milyn.edi.unedifact.d09b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d09b.common.CCICharacteristicClassId;    
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 RSLResult rSLResult;
    private List fTXFreeText;
    private List cCICharacteristicClassId;

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

        if(rSLResult != null) {
            nodeWriter.write("RSL");
            nodeWriter.write(delimiters.getField());
            rSLResult.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(cCICharacteristicClassId != null && !cCICharacteristicClassId.isEmpty()) {
            for(CCICharacteristicClassId cCICharacteristicClassIdInst : cCICharacteristicClassId) {
                nodeWriter.write("CCI");
                nodeWriter.write(delimiters.getField());
                cCICharacteristicClassIdInst.write(nodeWriter, delimiters);
            }
        }
    }

    public RSLResult getRSLResult() {
        return rSLResult;
    }

    public SegmentGroup10 setRSLResult(RSLResult rSLResult) {
        this.rSLResult = rSLResult;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup10 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getCCICharacteristicClassId() {
        return cCICharacteristicClassId;
    }

    public SegmentGroup10 setCCICharacteristicClassId(List cCICharacteristicClassId) {
        this.cCICharacteristicClassId = cCICharacteristicClassId;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy