org.milyn.edi.unedifact.d06b.REGENT.SegmentGroup8 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.REGENT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.ATTAttribute;
import org.milyn.edi.unedifact.d06b.common.GEIProcessingInformation;
import java.util.List;
import org.milyn.edi.unedifact.d06b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d06b.common.MEAMeasurements;
import org.milyn.edi.unedifact.d06b.common.FTXFreeText;
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 ATTAttribute aTTAttribute;
private GEIProcessingInformation gEIProcessingInformation;
private List dTMDateTimePeriod;
private MEAMeasurements mEAMeasurements;
private List fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(aTTAttribute != null) {
nodeWriter.write("ATT");
nodeWriter.write(delimiters.getField());
aTTAttribute.write(nodeWriter, delimiters);
}
if(gEIProcessingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformation.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(mEAMeasurements != null) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurements.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
}
public ATTAttribute getATTAttribute() {
return aTTAttribute;
}
public SegmentGroup8 setATTAttribute(ATTAttribute aTTAttribute) {
this.aTTAttribute = aTTAttribute; return this;
}
public GEIProcessingInformation getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup8 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup8 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public MEAMeasurements getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup8 setMEAMeasurements(MEAMeasurements mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup8 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}