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

org.milyn.edi.unedifact.d15a.GOVCBR.SegmentGroup49 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d15a.GOVCBR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d15a.common.LINLineItem;    
import org.milyn.edi.unedifact.d15a.common.MEAMeasurements;    
import java.util.List;    
import org.milyn.edi.unedifact.d15a.common.LOCPlaceLocationIdentification;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup49 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LINLineItem lINLineItem;
    private MEAMeasurements mEAMeasurements;
    private List lOCPlaceLocationIdentification;
    private List segmentGroup50;
    private List segmentGroup51;

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

        if(lINLineItem != null) {
            nodeWriter.write("LIN");
            nodeWriter.write(delimiters.getField());
            lINLineItem.write(nodeWriter, delimiters);
        }
        if(mEAMeasurements != null) {
            nodeWriter.write("MEA");
            nodeWriter.write(delimiters.getField());
            mEAMeasurements.write(nodeWriter, delimiters);
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup50 != null && !segmentGroup50.isEmpty()) {
            for(SegmentGroup50 segmentGroup50Inst : segmentGroup50) {
                segmentGroup50Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup51 != null && !segmentGroup51.isEmpty()) {
            for(SegmentGroup51 segmentGroup51Inst : segmentGroup51) {
                segmentGroup51Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public LINLineItem getLINLineItem() {
        return lINLineItem;
    }

    public SegmentGroup49 setLINLineItem(LINLineItem lINLineItem) {
        this.lINLineItem = lINLineItem;  return this;
    }

    public MEAMeasurements getMEAMeasurements() {
        return mEAMeasurements;
    }

    public SegmentGroup49 setMEAMeasurements(MEAMeasurements mEAMeasurements) {
        this.mEAMeasurements = mEAMeasurements;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup49 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public List getSegmentGroup50() {
        return segmentGroup50;
    }

    public SegmentGroup49 setSegmentGroup50(List segmentGroup50) {
        this.segmentGroup50 = segmentGroup50;  return this;
    }

    public List getSegmentGroup51() {
        return segmentGroup51;
    }

    public SegmentGroup49 setSegmentGroup51(List segmentGroup51) {
        this.segmentGroup51 = segmentGroup51;  return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy