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

org.virtuslab.edi.unedifact.d99a.CONDRO.SegmentGroup8 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.virtuslab.edi.unedifact.d99a.CONDRO;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d99a.common.LOCPlaceLocationIdentification;    
import java.util.List;    
import org.virtuslab.edi.unedifact.d99a.common.DIMDimensions;    
import org.virtuslab.edi.unedifact.d99a.common.QTYQuantity;    
import org.virtuslab.edi.unedifact.d99a.common.MEAMeasurements;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup8 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LOCPlaceLocationIdentification lOCPlaceLocationIdentification;
    private List dIMDimensions;
    private List qTYQuantity;
    private MEAMeasurements mEAMeasurements;

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

        if(lOCPlaceLocationIdentification != null) {
            nodeWriter.write("LOC");
            nodeWriter.write(delimiters.getField());
            lOCPlaceLocationIdentification.write(nodeWriter, delimiters);
        }
        if(dIMDimensions != null && !dIMDimensions.isEmpty()) {
            for(DIMDimensions dIMDimensionsInst : dIMDimensions) {
                nodeWriter.write("DIM");
                nodeWriter.write(delimiters.getField());
                dIMDimensionsInst.write(nodeWriter, delimiters);
            }
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(mEAMeasurements != null) {
            nodeWriter.write("MEA");
            nodeWriter.write(delimiters.getField());
            mEAMeasurements.write(nodeWriter, delimiters);
        }
    }

    public LOCPlaceLocationIdentification getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup8 setLOCPlaceLocationIdentification(LOCPlaceLocationIdentification lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public List getDIMDimensions() {
        return dIMDimensions;
    }

    public SegmentGroup8 setDIMDimensions(List dIMDimensions) {
        this.dIMDimensions = dIMDimensions;  return this;
    }

    public List getQTYQuantity() {
        return qTYQuantity;
    }

    public SegmentGroup8 setQTYQuantity(List qTYQuantity) {
        this.qTYQuantity = qTYQuantity;  return this;
    }

    public MEAMeasurements getMEAMeasurements() {
        return mEAMeasurements;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy