org.milyn.edi.unedifact.d13b.MEDPRE.Medpre Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d13b.MEDPRE;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d13b.common.BGMBeginningOfMessage;
import java.util.List;
import org.milyn.edi.unedifact.d13b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d13b.common.FTXFreeText;
import org.milyn.edi.unedifact.d13b.common.CNTControlTotal;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Medpre implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BGMBeginningOfMessage bGMBeginningOfMessage;
private List dTMDateTimePeriod;
private List fTXFreeText;
private List segmentGroup1;
private SegmentGroup3 segmentGroup3;
private SegmentGroup9 segmentGroup9;
private CNTControlTotal cNTControlTotal;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(bGMBeginningOfMessage != null) {
nodeWriter.write("BGM");
nodeWriter.write(delimiters.getField());
bGMBeginningOfMessage.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
segmentGroup1Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup3 != null) {
segmentGroup3.write(nodeWriter, delimiters);
}
if(segmentGroup9 != null) {
segmentGroup9.write(nodeWriter, delimiters);
}
if(cNTControlTotal != null) {
nodeWriter.write("CNT");
nodeWriter.write(delimiters.getField());
cNTControlTotal.write(nodeWriter, delimiters);
}
}
public BGMBeginningOfMessage getBGMBeginningOfMessage() {
return bGMBeginningOfMessage;
}
public Medpre setBGMBeginningOfMessage(BGMBeginningOfMessage bGMBeginningOfMessage) {
this.bGMBeginningOfMessage = bGMBeginningOfMessage; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public Medpre setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public Medpre setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Medpre setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public SegmentGroup3 getSegmentGroup3() {
return segmentGroup3;
}
public Medpre setSegmentGroup3(SegmentGroup3 segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public SegmentGroup9 getSegmentGroup9() {
return segmentGroup9;
}
public Medpre setSegmentGroup9(SegmentGroup9 segmentGroup9) {
this.segmentGroup9 = segmentGroup9; return this;
}
public CNTControlTotal getCNTControlTotal() {
return cNTControlTotal;
}
public Medpre setCNTControlTotal(CNTControlTotal cNTControlTotal) {
this.cNTControlTotal = cNTControlTotal; return this;
}
}