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

org.milyn.edi.unedifact.d05a.GESMES.SegmentGroup13 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.GESMES;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.DataSetIdentification;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.Status;    
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.FreeText;    
import org.milyn.edi.unedifact.d05a.common.RelatedIdentificationNumbers;    
import org.milyn.edi.unedifact.d05a.common.ArrayInformation;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup13 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private DataSetIdentification dataSetIdentification;
    private List status;
    private List dateTimePeriod;
    private List freeText;
    private List relatedIdentificationNumbers;
    private List segmentGroup14;
    private List arrayInformation;
    private List segmentGroup18;
    private List segmentGroup20;
    private List segmentGroup25;

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

        if(dataSetIdentification != null) {
            nodeWriter.write("DSI");
            nodeWriter.write(delimiters.getField());
            dataSetIdentification.write(nodeWriter, delimiters);
        }
        if(status != null && !status.isEmpty()) {
            for(Status statusInst : status) {
                nodeWriter.write("STS");
                nodeWriter.write(delimiters.getField());
                statusInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(relatedIdentificationNumbers != null && !relatedIdentificationNumbers.isEmpty()) {
            for(RelatedIdentificationNumbers relatedIdentificationNumbersInst : relatedIdentificationNumbers) {
                nodeWriter.write("GIR");
                nodeWriter.write(delimiters.getField());
                relatedIdentificationNumbersInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
            for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
                segmentGroup14Inst.write(nodeWriter, delimiters);
            }
        }
        if(arrayInformation != null && !arrayInformation.isEmpty()) {
            for(ArrayInformation arrayInformationInst : arrayInformation) {
                nodeWriter.write("ARR");
                nodeWriter.write(delimiters.getField());
                arrayInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
            for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
                segmentGroup18Inst.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 DataSetIdentification getDataSetIdentification() {
        return dataSetIdentification;
    }

    public SegmentGroup13 setDataSetIdentification(DataSetIdentification dataSetIdentification) {
        this.dataSetIdentification = dataSetIdentification;  return this;
    }

    public List getStatus() {
        return status;
    }

    public SegmentGroup13 setStatus(List status) {
        this.status = status;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup13 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

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

    public List getRelatedIdentificationNumbers() {
        return relatedIdentificationNumbers;
    }

    public SegmentGroup13 setRelatedIdentificationNumbers(List relatedIdentificationNumbers) {
        this.relatedIdentificationNumbers = relatedIdentificationNumbers;  return this;
    }

    public List getSegmentGroup14() {
        return segmentGroup14;
    }

    public SegmentGroup13 setSegmentGroup14(List segmentGroup14) {
        this.segmentGroup14 = segmentGroup14;  return this;
    }

    public List getArrayInformation() {
        return arrayInformation;
    }

    public SegmentGroup13 setArrayInformation(List arrayInformation) {
        this.arrayInformation = arrayInformation;  return this;
    }

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

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

    public List getSegmentGroup20() {
        return segmentGroup20;
    }

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

    public List getSegmentGroup25() {
        return segmentGroup25;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy