All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.edi.unedifact.d98a.common.TRUTechnicalRules Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * 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 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 e7402IdentityNumber;
    private String e1056Version;
    private String e1058Release;
    private String e7175RulePartIdentification;
    private String e3055CodeListResponsibleAgencyCoded;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = new StringWriter();

        List nodeTokens = new ArrayList();

        if(e7402IdentityNumber != null) {
            nodeWriter.write(delimiters.escape(e7402IdentityNumber.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(e3055CodeListResponsibleAgencyCoded != null) {
            nodeWriter.write(delimiters.escape(e3055CodeListResponsibleAgencyCoded.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 getE7402IdentityNumber() {
        return e7402IdentityNumber;
    }

    public TRUTechnicalRules setE7402IdentityNumber(String e7402IdentityNumber) {
        this.e7402IdentityNumber = e7402IdentityNumber;  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 getE3055CodeListResponsibleAgencyCoded() {
        return e3055CodeListResponsibleAgencyCoded;
    }

    public TRUTechnicalRules setE3055CodeListResponsibleAgencyCoded(String e3055CodeListResponsibleAgencyCoded) {
        this.e3055CodeListResponsibleAgencyCoded = e3055CodeListResponsibleAgencyCoded;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy