org.milyn.edi.unedifact.d09b.MEDRPT.SegmentGroup18 Maven / Gradle / Ivy
/**
* 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 SegmentGroup18 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 SegmentGroup18 setRSLResult(RSLResult rSLResult) {
this.rSLResult = rSLResult; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup18 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getCCICharacteristicClassId() {
return cCICharacteristicClassId;
}
public SegmentGroup18 setCCICharacteristicClassId(List cCICharacteristicClassId) {
this.cCICharacteristicClassId = cCICharacteristicClassId; return this;
}
}