org.milyn.edi.unedifact.d06b.IFTICL.SegmentGroup21 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.IFTICL;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.STSStatus;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.RFFReference;
import org.milyn.edi.unedifact.d06b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.ICDInsuranceCoverDescription;
import org.milyn.edi.unedifact.d06b.common.LOCPlaceLocationIdentification;
import org.milyn.edi.unedifact.d06b.common.MEAMeasurements;
import org.milyn.edi.unedifact.d06b.common.QRSQueryAndResponse;
import org.milyn.edi.unedifact.d06b.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup21 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private STSStatus sTSStatus;
private List rFFReference;
private List dTMDateTimePeriod;
private List iCDInsuranceCoverDescription;
private List lOCPlaceLocationIdentification;
private List mEAMeasurements;
private List qRSQueryAndResponse;
private List fTXFreeText;
private List segmentGroup22;
private List segmentGroup23;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sTSStatus != null) {
nodeWriter.write("STS");
nodeWriter.write(delimiters.getField());
sTSStatus.write(nodeWriter, delimiters);
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(iCDInsuranceCoverDescription != null && !iCDInsuranceCoverDescription.isEmpty()) {
for(ICDInsuranceCoverDescription iCDInsuranceCoverDescriptionInst : iCDInsuranceCoverDescription) {
nodeWriter.write("ICD");
nodeWriter.write(delimiters.getField());
iCDInsuranceCoverDescriptionInst.write(nodeWriter, delimiters);
}
}
if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
nodeWriter.write("LOC");
nodeWriter.write(delimiters.getField());
lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
}
}
if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurementsInst.write(nodeWriter, delimiters);
}
}
if(qRSQueryAndResponse != null && !qRSQueryAndResponse.isEmpty()) {
for(QRSQueryAndResponse qRSQueryAndResponseInst : qRSQueryAndResponse) {
nodeWriter.write("QRS");
nodeWriter.write(delimiters.getField());
qRSQueryAndResponseInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup22 != null && !segmentGroup22.isEmpty()) {
for(SegmentGroup22 segmentGroup22Inst : segmentGroup22) {
segmentGroup22Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
segmentGroup23Inst.write(nodeWriter, delimiters);
}
}
}
public STSStatus getSTSStatus() {
return sTSStatus;
}
public SegmentGroup21 setSTSStatus(STSStatus sTSStatus) {
this.sTSStatus = sTSStatus; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup21 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup21 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getICDInsuranceCoverDescription() {
return iCDInsuranceCoverDescription;
}
public SegmentGroup21 setICDInsuranceCoverDescription(List iCDInsuranceCoverDescription) {
this.iCDInsuranceCoverDescription = iCDInsuranceCoverDescription; return this;
}
public List getLOCPlaceLocationIdentification() {
return lOCPlaceLocationIdentification;
}
public SegmentGroup21 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification; return this;
}
public List getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup21 setMEAMeasurements(List mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getQRSQueryAndResponse() {
return qRSQueryAndResponse;
}
public SegmentGroup21 setQRSQueryAndResponse(List qRSQueryAndResponse) {
this.qRSQueryAndResponse = qRSQueryAndResponse; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup21 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup22() {
return segmentGroup22;
}
public SegmentGroup21 setSegmentGroup22(List segmentGroup22) {
this.segmentGroup22 = segmentGroup22; return this;
}
public List getSegmentGroup23() {
return segmentGroup23;
}
public SegmentGroup21 setSegmentGroup23(List segmentGroup23) {
this.segmentGroup23 = segmentGroup23; return this;
}
}