org.milyn.edi.unedifact.d98a.CUSCAR.SegmentGroup7 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.CUSCAR;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.ConsignmentInformation;
import java.util.List;
import org.milyn.edi.unedifact.d98a.common.ControlTotal;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup7 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private ConsignmentInformation consignmentInformation;
private List controlTotal;
private List segmentGroup8;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(consignmentInformation != null) {
nodeWriter.write("CNI");
nodeWriter.write(delimiters.getField());
consignmentInformation.write(nodeWriter, delimiters);
}
if(controlTotal != null && !controlTotal.isEmpty()) {
for(ControlTotal controlTotalInst : controlTotal) {
nodeWriter.write("CNT");
nodeWriter.write(delimiters.getField());
controlTotalInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
segmentGroup8Inst.write(nodeWriter, delimiters);
}
}
}
public ConsignmentInformation getConsignmentInformation() {
return consignmentInformation;
}
public SegmentGroup7 setConsignmentInformation(ConsignmentInformation consignmentInformation) {
this.consignmentInformation = consignmentInformation; return this;
}
public List getControlTotal() {
return controlTotal;
}
public SegmentGroup7 setControlTotal(List controlTotal) {
this.controlTotal = controlTotal; return this;
}
public List getSegmentGroup8() {
return segmentGroup8;
}
public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
this.segmentGroup8 = segmentGroup8; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy