org.milyn.edi.unedifact.d01a.common.MTDMaintenanceOperationDetails Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d01a.common;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
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 MTDMaintenanceOperationDetails implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e7495ObjectTypeCodeQualifier;
private String e4513MaintenanceOperationCode;
private String e3005MaintenanceOperationOperatorCode;
private String e3009MaintenanceOperationPayerCode;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e7495ObjectTypeCodeQualifier != null) {
nodeWriter.write(delimiters.escape(e7495ObjectTypeCodeQualifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e4513MaintenanceOperationCode != null) {
nodeWriter.write(delimiters.escape(e4513MaintenanceOperationCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3005MaintenanceOperationOperatorCode != null) {
nodeWriter.write(delimiters.escape(e3005MaintenanceOperationOperatorCode.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3009MaintenanceOperationPayerCode != null) {
nodeWriter.write(delimiters.escape(e3009MaintenanceOperationPayerCode.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 getE7495ObjectTypeCodeQualifier() {
return e7495ObjectTypeCodeQualifier;
}
public MTDMaintenanceOperationDetails setE7495ObjectTypeCodeQualifier(String e7495ObjectTypeCodeQualifier) {
this.e7495ObjectTypeCodeQualifier = e7495ObjectTypeCodeQualifier; return this;
}
public String getE4513MaintenanceOperationCode() {
return e4513MaintenanceOperationCode;
}
public MTDMaintenanceOperationDetails setE4513MaintenanceOperationCode(String e4513MaintenanceOperationCode) {
this.e4513MaintenanceOperationCode = e4513MaintenanceOperationCode; return this;
}
public String getE3005MaintenanceOperationOperatorCode() {
return e3005MaintenanceOperationOperatorCode;
}
public MTDMaintenanceOperationDetails setE3005MaintenanceOperationOperatorCode(String e3005MaintenanceOperationOperatorCode) {
this.e3005MaintenanceOperationOperatorCode = e3005MaintenanceOperationOperatorCode; return this;
}
public String getE3009MaintenanceOperationPayerCode() {
return e3009MaintenanceOperationPayerCode;
}
public MTDMaintenanceOperationDetails setE3009MaintenanceOperationPayerCode(String e3009MaintenanceOperationPayerCode) {
this.e3009MaintenanceOperationPayerCode = e3009MaintenanceOperationPayerCode; return this;
}
}