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

org.milyn.edi.unedifact.d13a.GOVCBR.SegmentGroup194 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d13a.common.TMPTemperature;    
import java.util.List;    
import org.milyn.edi.unedifact.d13a.common.MEAMeasurements;    
import org.milyn.edi.unedifact.d13a.common.DGSDangerousGoods;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup194 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private TMPTemperature tMPTemperature;
    private List mEAMeasurements;
    private List dGSDangerousGoods;

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

        if(tMPTemperature != null) {
            nodeWriter.write("TMP");
            nodeWriter.write(delimiters.getField());
            tMPTemperature.write(nodeWriter, delimiters);
        }
        if(mEAMeasurements != null && !mEAMeasurements.isEmpty()) {
            for(MEAMeasurements mEAMeasurementsInst : mEAMeasurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                mEAMeasurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(dGSDangerousGoods != null && !dGSDangerousGoods.isEmpty()) {
            for(DGSDangerousGoods dGSDangerousGoodsInst : dGSDangerousGoods) {
                nodeWriter.write("DGS");
                nodeWriter.write(delimiters.getField());
                dGSDangerousGoodsInst.write(nodeWriter, delimiters);
            }
        }
    }

    public TMPTemperature getTMPTemperature() {
        return tMPTemperature;
    }

    public SegmentGroup194 setTMPTemperature(TMPTemperature tMPTemperature) {
        this.tMPTemperature = tMPTemperature;  return this;
    }

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

    public SegmentGroup194 setMEAMeasurements(List mEAMeasurements) {
        this.mEAMeasurements = mEAMeasurements;  return this;
    }

    public List getDGSDangerousGoods() {
        return dGSDangerousGoods;
    }

    public SegmentGroup194 setDGSDangerousGoods(List dGSDangerousGoods) {
        this.dGSDangerousGoods = dGSDangerousGoods;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy