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

org.milyn.edi.unedifact.d11b.IFCSUM.SegmentGroup68 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.d11b.IFCSUM;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d11b.common.DGSDangerousGoods;    
import java.util.List;    
import org.milyn.edi.unedifact.d11b.common.FTXFreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup68 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private DGSDangerousGoods dGSDangerousGoods;
    private List fTXFreeText;
    private List segmentGroup69;
    private List segmentGroup70;
    private List segmentGroup71;

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

        if(dGSDangerousGoods != null) {
            nodeWriter.write("DGS");
            nodeWriter.write(delimiters.getField());
            dGSDangerousGoods.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup69 != null && !segmentGroup69.isEmpty()) {
            for(SegmentGroup69 segmentGroup69Inst : segmentGroup69) {
                segmentGroup69Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup70 != null && !segmentGroup70.isEmpty()) {
            for(SegmentGroup70 segmentGroup70Inst : segmentGroup70) {
                segmentGroup70Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup71 != null && !segmentGroup71.isEmpty()) {
            for(SegmentGroup71 segmentGroup71Inst : segmentGroup71) {
                segmentGroup71Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public DGSDangerousGoods getDGSDangerousGoods() {
        return dGSDangerousGoods;
    }

    public SegmentGroup68 setDGSDangerousGoods(DGSDangerousGoods dGSDangerousGoods) {
        this.dGSDangerousGoods = dGSDangerousGoods;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup68 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getSegmentGroup69() {
        return segmentGroup69;
    }

    public SegmentGroup68 setSegmentGroup69(List segmentGroup69) {
        this.segmentGroup69 = segmentGroup69;  return this;
    }

    public List getSegmentGroup70() {
        return segmentGroup70;
    }

    public SegmentGroup68 setSegmentGroup70(List segmentGroup70) {
        this.segmentGroup70 = segmentGroup70;  return this;
    }

    public List getSegmentGroup71() {
        return segmentGroup71;
    }

    public SegmentGroup68 setSegmentGroup71(List segmentGroup71) {
        this.segmentGroup71 = segmentGroup71;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy