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

org.milyn.edi.unedifact.d99a.IFTMBP.SegmentGroup22 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d99a.IFTMBP;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99a.common.SGPSplitGoodsPlacement;    
import java.util.List;    
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 SGPSplitGoodsPlacement sGPSplitGoodsPlacement;
    private List segmentGroup23;

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

        if(sGPSplitGoodsPlacement != null) {
            nodeWriter.write("SGP");
            nodeWriter.write(delimiters.getField());
            sGPSplitGoodsPlacement.write(nodeWriter, delimiters);
        }
        if(segmentGroup23 != null && !segmentGroup23.isEmpty()) {
            for(SegmentGroup23 segmentGroup23Inst : segmentGroup23) {
                segmentGroup23Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public SGPSplitGoodsPlacement getSGPSplitGoodsPlacement() {
        return sGPSplitGoodsPlacement;
    }

    public SegmentGroup22 setSGPSplitGoodsPlacement(SGPSplitGoodsPlacement sGPSplitGoodsPlacement) {
        this.sGPSplitGoodsPlacement = sGPSplitGoodsPlacement;  return this;
    }

    public List getSegmentGroup23() {
        return segmentGroup23;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy