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

org.milyn.edi.unedifact.d05a.RECADV.SegmentGroup16 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.d05a.RECADV;

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

public class SegmentGroup16 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private CPSConsignmentPackingSequence cPSConsignmentPackingSequence;
    private List segmentGroup17;
    private List segmentGroup18;
    private List segmentGroup19;
    private List segmentGroup20;
    private List segmentGroup25;

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

        if(cPSConsignmentPackingSequence != null) {
            nodeWriter.write("CPS");
            nodeWriter.write(delimiters.getField());
            cPSConsignmentPackingSequence.write(nodeWriter, delimiters);
        }
        if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
            for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
                segmentGroup17Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
            for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
                segmentGroup18Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
            for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
                segmentGroup19Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
            for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
                segmentGroup20Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
            for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
                segmentGroup25Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public CPSConsignmentPackingSequence getCPSConsignmentPackingSequence() {
        return cPSConsignmentPackingSequence;
    }

    public SegmentGroup16 setCPSConsignmentPackingSequence(CPSConsignmentPackingSequence cPSConsignmentPackingSequence) {
        this.cPSConsignmentPackingSequence = cPSConsignmentPackingSequence;  return this;
    }

    public List getSegmentGroup17() {
        return segmentGroup17;
    }

    public SegmentGroup16 setSegmentGroup17(List segmentGroup17) {
        this.segmentGroup17 = segmentGroup17;  return this;
    }

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

    public SegmentGroup16 setSegmentGroup18(List segmentGroup18) {
        this.segmentGroup18 = segmentGroup18;  return this;
    }

    public List getSegmentGroup19() {
        return segmentGroup19;
    }

    public SegmentGroup16 setSegmentGroup19(List segmentGroup19) {
        this.segmentGroup19 = segmentGroup19;  return this;
    }

    public List getSegmentGroup20() {
        return segmentGroup20;
    }

    public SegmentGroup16 setSegmentGroup20(List segmentGroup20) {
        this.segmentGroup20 = segmentGroup20;  return this;
    }

    public List getSegmentGroup25() {
        return segmentGroup25;
    }

    public SegmentGroup16 setSegmentGroup25(List segmentGroup25) {
        this.segmentGroup25 = segmentGroup25;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy