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

org.milyn.edi.unedifact.d95b.common.GORGovernmentalRequirements 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.d95b.common;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d95b.common.field.C2321GovernmentAction;    
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 GORGovernmentalRequirements implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private String e8323TransportMovementCoded;
    private C2321GovernmentAction c2321GovernmentAction;
    private C2321GovernmentAction c2322GovernmentAction;
    private C2321GovernmentAction c2323GovernmentAction;
    private C2321GovernmentAction c2324GovernmentAction;

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

        List nodeTokens = new ArrayList();

        if(e8323TransportMovementCoded != null) {
            nodeWriter.write(delimiters.escape(e8323TransportMovementCoded.toString()));
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c2321GovernmentAction != null) {
            c2321GovernmentAction.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c2322GovernmentAction != null) {
            c2322GovernmentAction.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c2323GovernmentAction != null) {
            c2323GovernmentAction.write(nodeWriter, delimiters);
            nodeTokens.add(nodeWriter.toString());
            ((StringWriter)nodeWriter).getBuffer().setLength(0);
        }
        nodeWriter.write(delimiters.getField());
        if(c2324GovernmentAction != null) {
            c2324GovernmentAction.write(nodeWriter, delimiters);
            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 getE8323TransportMovementCoded() {
        return e8323TransportMovementCoded;
    }

    public GORGovernmentalRequirements setE8323TransportMovementCoded(String e8323TransportMovementCoded) {
        this.e8323TransportMovementCoded = e8323TransportMovementCoded;  return this;
    }

    public C2321GovernmentAction getC2321GovernmentAction() {
        return c2321GovernmentAction;
    }

    public GORGovernmentalRequirements setC2321GovernmentAction(C2321GovernmentAction c2321GovernmentAction) {
        this.c2321GovernmentAction = c2321GovernmentAction;  return this;
    }

    public C2321GovernmentAction getC2322GovernmentAction() {
        return c2322GovernmentAction;
    }

    public GORGovernmentalRequirements setC2322GovernmentAction(C2321GovernmentAction c2322GovernmentAction) {
        this.c2322GovernmentAction = c2322GovernmentAction;  return this;
    }

    public C2321GovernmentAction getC2323GovernmentAction() {
        return c2323GovernmentAction;
    }

    public GORGovernmentalRequirements setC2323GovernmentAction(C2321GovernmentAction c2323GovernmentAction) {
        this.c2323GovernmentAction = c2323GovernmentAction;  return this;
    }

    public C2321GovernmentAction getC2324GovernmentAction() {
        return c2324GovernmentAction;
    }

    public GORGovernmentalRequirements setC2324GovernmentAction(C2321GovernmentAction c2324GovernmentAction) {
        this.c2324GovernmentAction = c2324GovernmentAction;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy