org.milyn.edi.unedifact.d05a.GESMES.SegmentGroup23 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.GESMES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d05a.common.Identity;
import java.util.List;
import org.milyn.edi.unedifact.d05a.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 Identity identity;
private List freeText;
private List segmentGroup24;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(identity != null) {
nodeWriter.write("IDE");
nodeWriter.write(delimiters.getField());
identity.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);
}
}
}
public Identity getIdentity() {
return identity;
}
public SegmentGroup23 setIdentity(Identity identity) {
this.identity = identity; 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;
}
}