org.milyn.edi.unedifact.d02a.QALITY.SegmentGroup36 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.QALITY;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.STAStatistics;
import java.util.List;
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup36 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private STAStatistics sTAStatistics;
private List dTMDateTimePeriod;
private List segmentGroup37;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(sTAStatistics != null) {
nodeWriter.write("STA");
nodeWriter.write(delimiters.getField());
sTAStatistics.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup37 != null && !segmentGroup37.isEmpty()) {
for(SegmentGroup37 segmentGroup37Inst : segmentGroup37) {
segmentGroup37Inst.write(nodeWriter, delimiters);
}
}
}
public STAStatistics getSTAStatistics() {
return sTAStatistics;
}
public SegmentGroup36 setSTAStatistics(STAStatistics sTAStatistics) {
this.sTAStatistics = sTAStatistics; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup36 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getSegmentGroup37() {
return segmentGroup37;
}
public SegmentGroup36 setSegmentGroup37(List segmentGroup37) {
this.segmentGroup37 = segmentGroup37; return this;
}
}