org.milyn.edi.unedifact.d06b.FINPAY.SegmentGroup23 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.FINPAY;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.ProcessIdentification;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.FreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup23 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ProcessIdentification processIdentification;
private List freeText;
private List segmentGroup24;
private SegmentGroup30 segmentGroup30;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(processIdentification != null) {
nodeWriter.write("PRC");
nodeWriter.write(delimiters.getField());
processIdentification.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
segmentGroup24Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup30 != null) {
segmentGroup30.write(nodeWriter, delimiters);
}
}
public ProcessIdentification getProcessIdentification() {
return processIdentification;
}
public SegmentGroup23 setProcessIdentification(ProcessIdentification processIdentification) {
this.processIdentification = processIdentification; return this;
}
public List getFreeText() {
return freeText;
}
public SegmentGroup23 setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getSegmentGroup24() {
return segmentGroup24;
}
public SegmentGroup23 setSegmentGroup24(List segmentGroup24) {
this.segmentGroup24 = segmentGroup24; return this;
}
public SegmentGroup30 getSegmentGroup30() {
return segmentGroup30;
}
public SegmentGroup23 setSegmentGroup30(SegmentGroup30 segmentGroup30) {
this.segmentGroup30 = segmentGroup30; return this;
}
}