org.milyn.edi.unedifact.d99b.SAFHAZ.SegmentGroup15 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.SAFHAZ;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d99b.common.MEAMeasurements;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.TEMTestMethod;
import org.milyn.edi.unedifact.d99b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.RFFReference;
import org.milyn.edi.unedifact.d99b.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup15 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private MEAMeasurements mEAMeasurements;
private List tEMTestMethod;
private List dTMDateTimePeriod;
private List rFFReference;
private List fTXFreeText;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(mEAMeasurements != null) {
nodeWriter.write("MEA");
nodeWriter.write(delimiters.getField());
mEAMeasurements.write(nodeWriter, delimiters);
}
if(tEMTestMethod != null && !tEMTestMethod.isEmpty()) {
for(TEMTestMethod tEMTestMethodInst : tEMTestMethod) {
nodeWriter.write("TEM");
nodeWriter.write(delimiters.getField());
tEMTestMethodInst.write(nodeWriter, delimiters);
}
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
}
public MEAMeasurements getMEAMeasurements() {
return mEAMeasurements;
}
public SegmentGroup15 setMEAMeasurements(MEAMeasurements mEAMeasurements) {
this.mEAMeasurements = mEAMeasurements; return this;
}
public List getTEMTestMethod() {
return tEMTestMethod;
}
public SegmentGroup15 setTEMTestMethod(List tEMTestMethod) {
this.tEMTestMethod = tEMTestMethod; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup15 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup15 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup15 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
}