org.milyn.edi.unedifact.d99b.GESMES.SegmentGroup22 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.GESMES;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.ARRArrayInformation;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.FTXFreeText;
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 ARRArrayInformation aRRArrayInformation;
private List fTXFreeText;
private List segmentGroup23;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(aRRArrayInformation != null) {
nodeWriter.write("ARR");
nodeWriter.write(delimiters.getField());
aRRArrayInformation.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
segmentGroup23Inst.write(nodeWriter, delimiters);
}
}
}
public ARRArrayInformation getARRArrayInformation() {
return aRRArrayInformation;
}
public SegmentGroup22 setARRArrayInformation(ARRArrayInformation aRRArrayInformation) {
this.aRRArrayInformation = aRRArrayInformation; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup22 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup23() {
return segmentGroup23;
}
public SegmentGroup22 setSegmentGroup23(List segmentGroup23) {
this.segmentGroup23 = segmentGroup23; return this;
}
}