org.milyn.edi.unedifact.d99b.DEBREC.SegmentGroup22 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.DEBREC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.GeneralIndicator;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup22 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GeneralIndicator generalIndicator;
private List dateTimePeriod;
private List freeText;
private SegmentGroup23 segmentGroup23;
private List segmentGroup24;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(generalIndicator != null) {
nodeWriter.write("GIS");
nodeWriter.write(delimiters.getField());
generalIndicator.write(nodeWriter, delimiters);
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup23 != null) {
segmentGroup23.write(nodeWriter, delimiters);
}
if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
segmentGroup24Inst.write(nodeWriter, delimiters);
}
}
}
public GeneralIndicator getGeneralIndicator() {
return generalIndicator;
}
public SegmentGroup22 setGeneralIndicator(GeneralIndicator generalIndicator) {
this.generalIndicator = generalIndicator; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public SegmentGroup22 setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup22 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public SegmentGroup23 getSegmentGroup23() {
return segmentGroup23;
}
public SegmentGroup22 setSegmentGroup23(SegmentGroup23 segmentGroup23) {
this.segmentGroup23 = segmentGroup23; return this;
}
public List getSegmentGroup24() {
return segmentGroup24;
}
public SegmentGroup22 setSegmentGroup24(List segmentGroup24) {
this.segmentGroup24 = segmentGroup24; return this;
}
}