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

org.milyn.edi.unedifact.d06b.GESMES.SegmentGroup22 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.ArrayInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.FreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup22 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private ArrayInformation arrayInformation;
    private List freeText;
    private List segmentGroup23;

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

        if(arrayInformation != null) {
            nodeWriter.write("ARR");
            nodeWriter.write(delimiters.getField());
            arrayInformation.write(nodeWriter, delimiters);
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
            for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
                segmentGroup23Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public ArrayInformation getArrayInformation() {
        return arrayInformation;
    }

    public SegmentGroup22 setArrayInformation(ArrayInformation arrayInformation) {
        this.arrayInformation = arrayInformation;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public SegmentGroup22 setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public List getSegmentGroup23() {
        return segmentGroup23;
    }

    public SegmentGroup22 setSegmentGroup23(List segmentGroup23) {
        this.segmentGroup23 = segmentGroup23;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy