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

org.milyn.edi.unedifact.d98a.IFCSUM.SegmentGroup55 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.IFCSUM;

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

public class SegmentGroup55 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private DangerousGoods dangerousGoods;
    private List freeText;
    private List segmentGroup56;
    private List segmentGroup57;
    private List segmentGroup58;

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

        if(dangerousGoods != null) {
            nodeWriter.write("DGS");
            nodeWriter.write(delimiters.getField());
            dangerousGoods.write(nodeWriter, delimiters);
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup56 != null && !segmentGroup56.isEmpty()) {
            for(SegmentGroup56 segmentGroup56Inst : segmentGroup56) {
                segmentGroup56Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup57 != null && !segmentGroup57.isEmpty()) {
            for(SegmentGroup57 segmentGroup57Inst : segmentGroup57) {
                segmentGroup57Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup58 != null && !segmentGroup58.isEmpty()) {
            for(SegmentGroup58 segmentGroup58Inst : segmentGroup58) {
                segmentGroup58Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public DangerousGoods getDangerousGoods() {
        return dangerousGoods;
    }

    public SegmentGroup55 setDangerousGoods(DangerousGoods dangerousGoods) {
        this.dangerousGoods = dangerousGoods;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

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

    public List getSegmentGroup56() {
        return segmentGroup56;
    }

    public SegmentGroup55 setSegmentGroup56(List segmentGroup56) {
        this.segmentGroup56 = segmentGroup56;  return this;
    }

    public List getSegmentGroup57() {
        return segmentGroup57;
    }

    public SegmentGroup55 setSegmentGroup57(List segmentGroup57) {
        this.segmentGroup57 = segmentGroup57;  return this;
    }

    public List getSegmentGroup58() {
        return segmentGroup58;
    }

    public SegmentGroup55 setSegmentGroup58(List segmentGroup58) {
        this.segmentGroup58 = segmentGroup58;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy