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

org.milyn.edi.unedifact.d05a.DAPLOS.SegmentGroup5 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.DAPLOS;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.Measurements;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.GeographicalPosition;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup5 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private Measurements measurements;
    private List geographicalPosition;

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

        if(measurements != null) {
            nodeWriter.write("MEA");
            nodeWriter.write(delimiters.getField());
            measurements.write(nodeWriter, delimiters);
        }
        if(geographicalPosition != null && !geographicalPosition.isEmpty()) {
            for(GeographicalPosition geographicalPositionInst : geographicalPosition) {
                nodeWriter.write("GPO");
                nodeWriter.write(delimiters.getField());
                geographicalPositionInst.write(nodeWriter, delimiters);
            }
        }
    }

    public Measurements getMeasurements() {
        return measurements;
    }

    public SegmentGroup5 setMeasurements(Measurements measurements) {
        this.measurements = measurements;  return this;
    }

    public List getGeographicalPosition() {
        return geographicalPosition;
    }

    public SegmentGroup5 setGeographicalPosition(List geographicalPosition) {
        this.geographicalPosition = geographicalPosition;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy