org.milyn.edi.unedifact.d99b.common.TRUTechnicalRules Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.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 TRUTechnicalRules implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private String e7402ObjectIdentifier;
private String e1056Version;
private String e1058Release;
private String e7175RulePartIdentification;
private String e3055CodeListResponsibleAgencyCode;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = new StringWriter();
List nodeTokens = new ArrayList();
if(e7402ObjectIdentifier != null) {
nodeWriter.write(delimiters.escape(e7402ObjectIdentifier.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e1056Version != null) {
nodeWriter.write(delimiters.escape(e1056Version.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e1058Release != null) {
nodeWriter.write(delimiters.escape(e1058Release.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e7175RulePartIdentification != null) {
nodeWriter.write(delimiters.escape(e7175RulePartIdentification.toString()));
nodeTokens.add(nodeWriter.toString());
((StringWriter)nodeWriter).getBuffer().setLength(0);
}
nodeWriter.write(delimiters.getField());
if(e3055CodeListResponsibleAgencyCode != null) {
nodeWriter.write(delimiters.escape(e3055CodeListResponsibleAgencyCode.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 getE7402ObjectIdentifier() {
return e7402ObjectIdentifier;
}
public TRUTechnicalRules setE7402ObjectIdentifier(String e7402ObjectIdentifier) {
this.e7402ObjectIdentifier = e7402ObjectIdentifier; return this;
}
public String getE1056Version() {
return e1056Version;
}
public TRUTechnicalRules setE1056Version(String e1056Version) {
this.e1056Version = e1056Version; return this;
}
public String getE1058Release() {
return e1058Release;
}
public TRUTechnicalRules setE1058Release(String e1058Release) {
this.e1058Release = e1058Release; return this;
}
public String getE7175RulePartIdentification() {
return e7175RulePartIdentification;
}
public TRUTechnicalRules setE7175RulePartIdentification(String e7175RulePartIdentification) {
this.e7175RulePartIdentification = e7175RulePartIdentification; return this;
}
public String getE3055CodeListResponsibleAgencyCode() {
return e3055CodeListResponsibleAgencyCode;
}
public TRUTechnicalRules setE3055CodeListResponsibleAgencyCode(String e3055CodeListResponsibleAgencyCode) {
this.e3055CodeListResponsibleAgencyCode = e3055CodeListResponsibleAgencyCode; return this;
}
}