org.milyn.edi.unedifact.d02a.BUSCRD.SegmentGroup18 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.BUSCRD;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.EVEEvent;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d02a.common.IFDInformationDetail;
import org.milyn.edi.unedifact.d02a.common.FTXFreeText;
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 EVEEvent eVEEvent;
private List dTMDateTimePeriod;
private List iFDInformationDetail;
private List fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(eVEEvent != null) {
nodeWriter.write("EVE");
nodeWriter.write(delimiters.getField());
eVEEvent.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(iFDInformationDetail != null && !iFDInformationDetail.isEmpty()) {
for(IFDInformationDetail iFDInformationDetailInst : iFDInformationDetail) {
nodeWriter.write("IFD");
nodeWriter.write(delimiters.getField());
iFDInformationDetailInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
}
public EVEEvent getEVEEvent() {
return eVEEvent;
}
public SegmentGroup18 setEVEEvent(EVEEvent eVEEvent) {
this.eVEEvent = eVEEvent; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup18 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getIFDInformationDetail() {
return iFDInformationDetail;
}
public SegmentGroup18 setIFDInformationDetail(List iFDInformationDetail) {
this.iFDInformationDetail = iFDInformationDetail; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup18 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}