org.milyn.edi.unedifact.d02a.common.TEMTestMethod Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d02a.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d02a.common.field.C244TestMethod;
import org.milyn.edi.unedifact.d02a.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 e4419TestAdministrationMethodCode;
private String e3077TestMediumCode;
private String e6311MeasurementPurposeCodeQualifier;
private String e7188TestMethodRevisionIdentifier;
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(e4419TestAdministrationMethodCode != null) {
nodeWriter.write(delimiters.escape(e4419TestAdministrationMethodCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3077TestMediumCode != null) {
nodeWriter.write(delimiters.escape(e3077TestMediumCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e6311MeasurementPurposeCodeQualifier != null) {
nodeWriter.write(delimiters.escape(e6311MeasurementPurposeCodeQualifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e7188TestMethodRevisionIdentifier != null) {
nodeWriter.write(delimiters.escape(e7188TestMethodRevisionIdentifier.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 getE4419TestAdministrationMethodCode() {
return e4419TestAdministrationMethodCode;
}
public TEMTestMethod setE4419TestAdministrationMethodCode(String e4419TestAdministrationMethodCode) {
this.e4419TestAdministrationMethodCode = e4419TestAdministrationMethodCode; return this;
}
public String getE3077TestMediumCode() {
return e3077TestMediumCode;
}
public TEMTestMethod setE3077TestMediumCode(String e3077TestMediumCode) {
this.e3077TestMediumCode = e3077TestMediumCode; return this;
}
public String getE6311MeasurementPurposeCodeQualifier() {
return e6311MeasurementPurposeCodeQualifier;
}
public TEMTestMethod setE6311MeasurementPurposeCodeQualifier(String e6311MeasurementPurposeCodeQualifier) {
this.e6311MeasurementPurposeCodeQualifier = e6311MeasurementPurposeCodeQualifier; return this;
}
public String getE7188TestMethodRevisionIdentifier() {
return e7188TestMethodRevisionIdentifier;
}
public TEMTestMethod setE7188TestMethodRevisionIdentifier(String e7188TestMethodRevisionIdentifier) {
this.e7188TestMethodRevisionIdentifier = e7188TestMethodRevisionIdentifier; return this;
}
public C515TestReason getC515TestReason() {
return c515TestReason;
}
public TEMTestMethod setC515TestReason(C515TestReason c515TestReason) {
this.c515TestReason = c515TestReason; return this;
}
}