org.virtuslab.edi.unedifact.d96a.SSRECH.SegmentGroup8 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.virtuslab.edi.unedifact.d96a.SSRECH;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.virtuslab.edi.unedifact.d96a.common.COTContributionDetails;
import java.util.List;
import org.virtuslab.edi.unedifact.d96a.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;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy