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

org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup148 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.d09b.GOVCBR;

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

public class SegmentGroup148 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 SegmentGroup148 setTMPTemperature(TMPTemperature tMPTemperature) {
        this.tMPTemperature = tMPTemperature;  return this;
    }

    public List getMEAMeasurements() {
        return mEAMeasurements;
    }

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

    public List getDGSDangerousGoods() {
        return dGSDangerousGoods;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy