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

org.milyn.edi.unedifact.d06b.JAPRES.SegmentGroup12 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.JAPRES;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.Language;    
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup12 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private Language language;
    private ProcessingInformation processingInformation;

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

        if(language != null) {
            nodeWriter.write("LAN");
            nodeWriter.write(delimiters.getField());
            language.write(nodeWriter, delimiters);
        }
        if(processingInformation != null) {
            nodeWriter.write("GEI");
            nodeWriter.write(delimiters.getField());
            processingInformation.write(nodeWriter, delimiters);
        }
    }

    public Language getLanguage() {
        return language;
    }

    public SegmentGroup12 setLanguage(Language language) {
        this.language = language;  return this;
    }

    public ProcessingInformation getProcessingInformation() {
        return processingInformation;
    }

    public SegmentGroup12 setProcessingInformation(ProcessingInformation processingInformation) {
        this.processingInformation = processingInformation;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy