org.milyn.edi.unedifact.d02a.IMPDEF.SegmentGroup12 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.IMPDEF;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.DRDDataRepresentationDetails;
import java.util.List;
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 SegmentGroup12 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private DRDDataRepresentationDetails dRDDataRepresentationDetails;
private List fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(dRDDataRepresentationDetails != null) {
nodeWriter.write("DRD");
nodeWriter.write(delimiters.getField());
dRDDataRepresentationDetails.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
}
public DRDDataRepresentationDetails getDRDDataRepresentationDetails() {
return dRDDataRepresentationDetails;
}
public SegmentGroup12 setDRDDataRepresentationDetails(DRDDataRepresentationDetails dRDDataRepresentationDetails) {
this.dRDDataRepresentationDetails = dRDDataRepresentationDetails; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup12 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}