org.milyn.edi.unedifact.d98a.common.RSLResult Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d98a.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d98a.common.field.C8311ResultDetails;
import org.milyn.edi.unedifact.d98a.common.field.C848MeasurementUnitDetails;
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 RSLResult implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e6087ResultQualifier;
private String e6077ResultTypeCoded;
private C8311ResultDetails c8311ResultDetails;
private C8311ResultDetails c8312ResultDetails;
private C848MeasurementUnitDetails c848MeasurementUnitDetails;
private String e6079ResultNormalcyIndicatorCoded;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e6087ResultQualifier != null) {
nodeWriter.write(delimiters.escape(e6087ResultQualifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e6077ResultTypeCoded != null) {
nodeWriter.write(delimiters.escape(e6077ResultTypeCoded.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c8311ResultDetails != null) {
c8311ResultDetails.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c8312ResultDetails != null) {
c8312ResultDetails.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(c848MeasurementUnitDetails != null) {
c848MeasurementUnitDetails.write(nodeWriter, delimiters);
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e6079ResultNormalcyIndicatorCoded != null) {
nodeWriter.write(delimiters.escape(e6079ResultNormalcyIndicatorCoded.toString()));
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 String getE6087ResultQualifier() {
return e6087ResultQualifier;
}
public RSLResult setE6087ResultQualifier(String e6087ResultQualifier) {
this.e6087ResultQualifier = e6087ResultQualifier; return this;
}
public String getE6077ResultTypeCoded() {
return e6077ResultTypeCoded;
}
public RSLResult setE6077ResultTypeCoded(String e6077ResultTypeCoded) {
this.e6077ResultTypeCoded = e6077ResultTypeCoded; return this;
}
public C8311ResultDetails getC8311ResultDetails() {
return c8311ResultDetails;
}
public RSLResult setC8311ResultDetails(C8311ResultDetails c8311ResultDetails) {
this.c8311ResultDetails = c8311ResultDetails; return this;
}
public C8311ResultDetails getC8312ResultDetails() {
return c8312ResultDetails;
}
public RSLResult setC8312ResultDetails(C8311ResultDetails c8312ResultDetails) {
this.c8312ResultDetails = c8312ResultDetails; return this;
}
public C848MeasurementUnitDetails getC848MeasurementUnitDetails() {
return c848MeasurementUnitDetails;
}
public RSLResult setC848MeasurementUnitDetails(C848MeasurementUnitDetails c848MeasurementUnitDetails) {
this.c848MeasurementUnitDetails = c848MeasurementUnitDetails; return this;
}
public String getE6079ResultNormalcyIndicatorCoded() {
return e6079ResultNormalcyIndicatorCoded;
}
public RSLResult setE6079ResultNormalcyIndicatorCoded(String e6079ResultNormalcyIndicatorCoded) {
this.e6079ResultNormalcyIndicatorCoded = e6079ResultNormalcyIndicatorCoded; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy