org.milyn.edi.unedifact.d09b.common.RSLResult Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.field.C8311ResultDetails;
import org.milyn.edi.unedifact.d09b.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 e6087ResultValueTypeCodeQualifier;
private String e6077ResultRepresentationCode;
private C8311ResultDetails c8311ResultDetails;
private C8311ResultDetails c8312ResultDetails;
private C848MeasurementUnitDetails c848MeasurementUnitDetails;
private String e6079ResultNormalcyCode;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e6087ResultValueTypeCodeQualifier != null) {
nodeWriter.write(delimiters.escape(e6087ResultValueTypeCodeQualifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e6077ResultRepresentationCode != null) {
nodeWriter.write(delimiters.escape(e6077ResultRepresentationCode.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(e6079ResultNormalcyCode != null) {
nodeWriter.write(delimiters.escape(e6079ResultNormalcyCode.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 getE6087ResultValueTypeCodeQualifier() {
return e6087ResultValueTypeCodeQualifier;
}
public RSLResult setE6087ResultValueTypeCodeQualifier(String e6087ResultValueTypeCodeQualifier) {
this.e6087ResultValueTypeCodeQualifier = e6087ResultValueTypeCodeQualifier; return this;
}
public String getE6077ResultRepresentationCode() {
return e6077ResultRepresentationCode;
}
public RSLResult setE6077ResultRepresentationCode(String e6077ResultRepresentationCode) {
this.e6077ResultRepresentationCode = e6077ResultRepresentationCode; 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 getE6079ResultNormalcyCode() {
return e6079ResultNormalcyCode;
}
public RSLResult setE6079ResultNormalcyCode(String e6079ResultNormalcyCode) {
this.e6079ResultNormalcyCode = e6079ResultNormalcyCode; return this;
}
}