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

org.milyn.edi.unedifact.d13b.COPRAR.Coprar 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.d13b.COPRAR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.smooks.edi.EDIMessage;    
import org.milyn.edi.unedifact.d13b.common.BGMBeginningOfMessage;    
import java.util.List;    
import org.milyn.edi.unedifact.d13b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d13b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d13b.common.CNTControlTotal;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

@EDIMessage    
public class Coprar implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private BGMBeginningOfMessage bGMBeginningOfMessage;
    private List dTMDateTimePeriod;
    private List fTXFreeText;
    private List segmentGroup1;
    private SegmentGroup2 segmentGroup2;
    private List segmentGroup4;
    private List segmentGroup6;
    private CNTControlTotal cNTControlTotal;

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

        if(bGMBeginningOfMessage != null) {
            nodeWriter.write("BGM");
            nodeWriter.write(delimiters.getField());
            bGMBeginningOfMessage.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
            for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
                segmentGroup1Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup2 != null) {
            segmentGroup2.write(nodeWriter, delimiters);
        }
        if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
            for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
                segmentGroup4Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
        if(cNTControlTotal != null) {
            nodeWriter.write("CNT");
            nodeWriter.write(delimiters.getField());
            cNTControlTotal.write(nodeWriter, delimiters);
        }
    }

    public BGMBeginningOfMessage getBGMBeginningOfMessage() {
        return bGMBeginningOfMessage;
    }

    public Coprar setBGMBeginningOfMessage(BGMBeginningOfMessage bGMBeginningOfMessage) {
        this.bGMBeginningOfMessage = bGMBeginningOfMessage;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public Coprar setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getSegmentGroup1() {
        return segmentGroup1;
    }

    public Coprar setSegmentGroup1(List segmentGroup1) {
        this.segmentGroup1 = segmentGroup1;  return this;
    }

    public SegmentGroup2 getSegmentGroup2() {
        return segmentGroup2;
    }

    public Coprar setSegmentGroup2(SegmentGroup2 segmentGroup2) {
        this.segmentGroup2 = segmentGroup2;  return this;
    }

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

    public Coprar setSegmentGroup4(List segmentGroup4) {
        this.segmentGroup4 = segmentGroup4;  return this;
    }

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

    public Coprar setSegmentGroup6(List segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }

    public CNTControlTotal getCNTControlTotal() {
        return cNTControlTotal;
    }

    public Coprar setCNTControlTotal(CNTControlTotal cNTControlTotal) {
        this.cNTControlTotal = cNTControlTotal;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy