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

org.milyn.edi.unedifact.d05a.MEDRUC.SegmentGroup19 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.MEDRUC;

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

public class SegmentGroup19 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private TMDTransportMovementDetails tMDTransportMovementDetails;
    private SEQSequenceDetails sEQSequenceDetails;
    private GEIProcessingInformation gEIProcessingInformation;
    private List fTXFreeText;
    private List segmentGroup20;

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

        if(tMDTransportMovementDetails != null) {
            nodeWriter.write("TMD");
            nodeWriter.write(delimiters.getField());
            tMDTransportMovementDetails.write(nodeWriter, delimiters);
        }
        if(sEQSequenceDetails != null) {
            nodeWriter.write("SEQ");
            nodeWriter.write(delimiters.getField());
            sEQSequenceDetails.write(nodeWriter, delimiters);
        }
        if(gEIProcessingInformation != null) {
            nodeWriter.write("GEI");
            nodeWriter.write(delimiters.getField());
            gEIProcessingInformation.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
            for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
                segmentGroup20Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public TMDTransportMovementDetails getTMDTransportMovementDetails() {
        return tMDTransportMovementDetails;
    }

    public SegmentGroup19 setTMDTransportMovementDetails(TMDTransportMovementDetails tMDTransportMovementDetails) {
        this.tMDTransportMovementDetails = tMDTransportMovementDetails;  return this;
    }

    public SEQSequenceDetails getSEQSequenceDetails() {
        return sEQSequenceDetails;
    }

    public SegmentGroup19 setSEQSequenceDetails(SEQSequenceDetails sEQSequenceDetails) {
        this.sEQSequenceDetails = sEQSequenceDetails;  return this;
    }

    public GEIProcessingInformation getGEIProcessingInformation() {
        return gEIProcessingInformation;
    }

    public SegmentGroup19 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
        this.gEIProcessingInformation = gEIProcessingInformation;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getSegmentGroup20() {
        return segmentGroup20;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy