org.virtuslab.edi.unedifact.d99a.common.TEMTestMethod Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.virtuslab.edi.unedifact.d99a.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.virtuslab.edi.unedifact.d99a.common.field.C244TestMethod;
import org.virtuslab.edi.unedifact.d99a.common.field.C515TestReason;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
import java.io.StringWriter;
import java.util.List;
import java.util.ArrayList;
import org.milyn.edisax.util.EDIUtils;
import org.milyn.edisax.model.internal.DelimiterType;
public class TEMTestMethod implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private C244TestMethod c244TestMethod;
private String e4419TestRouteOfAdministeringCoded;
private String e3077TestMediumCoded;
private String e6311MeasurementPurposeQualifier;
private String e7188TestRevisionNumber;
private C515TestReason c515TestReason;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(c244TestMethod != null) {
c244TestMethod.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e4419TestRouteOfAdministeringCoded != null) {
nodeWriter.write(delimiters.escape(e4419TestRouteOfAdministeringCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3077TestMediumCoded != null) {
nodeWriter.write(delimiters.escape(e3077TestMediumCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e6311MeasurementPurposeQualifier != null) {
nodeWriter.write(delimiters.escape(e6311MeasurementPurposeQualifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e7188TestRevisionNumber != null) {
nodeWriter.write(delimiters.escape(e7188TestRevisionNumber.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c515TestReason != null) {
c515TestReason.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeTokens.add(nodeWriter.toString());
writer.write(EDIUtils.concatAndTruncate(nodeTokens, DelimiterType.FIELD, delimiters));
writer.write(delimiters.getSegmentDelimiter());
writer.flush();
}
public C244TestMethod getC244TestMethod() {
return c244TestMethod;
}
public TEMTestMethod setC244TestMethod(C244TestMethod c244TestMethod) {
this.c244TestMethod = c244TestMethod; return this;
}
public String getE4419TestRouteOfAdministeringCoded() {
return e4419TestRouteOfAdministeringCoded;
}
public TEMTestMethod setE4419TestRouteOfAdministeringCoded(String e4419TestRouteOfAdministeringCoded) {
this.e4419TestRouteOfAdministeringCoded = e4419TestRouteOfAdministeringCoded; return this;
}
public String getE3077TestMediumCoded() {
return e3077TestMediumCoded;
}
public TEMTestMethod setE3077TestMediumCoded(String e3077TestMediumCoded) {
this.e3077TestMediumCoded = e3077TestMediumCoded; return this;
}
public String getE6311MeasurementPurposeQualifier() {
return e6311MeasurementPurposeQualifier;
}
public TEMTestMethod setE6311MeasurementPurposeQualifier(String e6311MeasurementPurposeQualifier) {
this.e6311MeasurementPurposeQualifier = e6311MeasurementPurposeQualifier; return this;
}
public String getE7188TestRevisionNumber() {
return e7188TestRevisionNumber;
}
public TEMTestMethod setE7188TestRevisionNumber(String e7188TestRevisionNumber) {
this.e7188TestRevisionNumber = e7188TestRevisionNumber; return this;
}
public C515TestReason getC515TestReason() {
return c515TestReason;
}
public TEMTestMethod setC515TestReason(C515TestReason c515TestReason) {
this.c515TestReason = c515TestReason; return this;
}
}