org.milyn.edi.unedifact.d95b.SSRECH.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d95b.SSRECH;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d95b.common.COTContributionDetails;
import java.util.List;
import org.milyn.edi.unedifact.d95b.common.CNTControlTotal;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup8 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private COTContributionDetails cOTContributionDetails;
private List cNTControlTotal;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(cOTContributionDetails != null) {
nodeWriter.write("COT");
nodeWriter.write(delimiters.getField());
cOTContributionDetails.write(nodeWriter, delimiters);
}
if(cNTControlTotal != null && !cNTControlTotal.isEmpty()) {
for(CNTControlTotal cNTControlTotalInst : cNTControlTotal) {
nodeWriter.write("CNT");
nodeWriter.write(delimiters.getField());
cNTControlTotalInst.write(nodeWriter, delimiters);
}
}
}
public COTContributionDetails getCOTContributionDetails() {
return cOTContributionDetails;
}
public SegmentGroup8 setCOTContributionDetails(COTContributionDetails cOTContributionDetails) {
this.cOTContributionDetails = cOTContributionDetails; return this;
}
public List getCNTControlTotal() {
return cNTControlTotal;
}
public SegmentGroup8 setCNTControlTotal(List cNTControlTotal) {
this.cNTControlTotal = cNTControlTotal; return this;
}
}