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

org.milyn.edi.unedifact.d96a.COSTOR.SegmentGroup6 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.d96a.COSTOR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d96a.common.GoodsItemDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d96a.common.HandlingInstructions;    
import org.milyn.edi.unedifact.d96a.common.Temperature;    
import org.milyn.edi.unedifact.d96a.common.RangeDetails;    
import org.milyn.edi.unedifact.d96a.common.FreeText;    
import org.milyn.edi.unedifact.d96a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d96a.common.Measurements;    
import org.milyn.edi.unedifact.d96a.common.PackageIdentification;    
import org.milyn.edi.unedifact.d96a.common.DocumentMessageDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup6 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private GoodsItemDetails goodsItemDetails;
    private List handlingInstructions;
    private List temperature;
    private List rangeDetails;
    private List freeText;
    private List dateTimePeriod;
    private List segmentGroup7;
    private List measurements;
    private List packageIdentification;
    private List documentMessageDetails;
    private List segmentGroup8;
    private List segmentGroup9;

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

        if(goodsItemDetails != null) {
            nodeWriter.write("GID");
            nodeWriter.write(delimiters.getField());
            goodsItemDetails.write(nodeWriter, delimiters);
        }
        if(handlingInstructions != null && !handlingInstructions.isEmpty()) {
            for(HandlingInstructions handlingInstructionsInst : handlingInstructions) {
                nodeWriter.write("HAN");
                nodeWriter.write(delimiters.getField());
                handlingInstructionsInst.write(nodeWriter, delimiters);
            }
        }
        if(temperature != null && !temperature.isEmpty()) {
            for(Temperature temperatureInst : temperature) {
                nodeWriter.write("TMP");
                nodeWriter.write(delimiters.getField());
                temperatureInst.write(nodeWriter, delimiters);
            }
        }
        if(rangeDetails != null && !rangeDetails.isEmpty()) {
            for(RangeDetails rangeDetailsInst : rangeDetails) {
                nodeWriter.write("RNG");
                nodeWriter.write(delimiters.getField());
                rangeDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
        if(measurements != null && !measurements.isEmpty()) {
            for(Measurements measurementsInst : measurements) {
                nodeWriter.write("MEA");
                nodeWriter.write(delimiters.getField());
                measurementsInst.write(nodeWriter, delimiters);
            }
        }
        if(packageIdentification != null && !packageIdentification.isEmpty()) {
            for(PackageIdentification packageIdentificationInst : packageIdentification) {
                nodeWriter.write("PCI");
                nodeWriter.write(delimiters.getField());
                packageIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(documentMessageDetails != null && !documentMessageDetails.isEmpty()) {
            for(DocumentMessageDetails documentMessageDetailsInst : documentMessageDetails) {
                nodeWriter.write("DOC");
                nodeWriter.write(delimiters.getField());
                documentMessageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
            for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
                segmentGroup8Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
            for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
                segmentGroup9Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public GoodsItemDetails getGoodsItemDetails() {
        return goodsItemDetails;
    }

    public SegmentGroup6 setGoodsItemDetails(GoodsItemDetails goodsItemDetails) {
        this.goodsItemDetails = goodsItemDetails;  return this;
    }

    public List getHandlingInstructions() {
        return handlingInstructions;
    }

    public SegmentGroup6 setHandlingInstructions(List handlingInstructions) {
        this.handlingInstructions = handlingInstructions;  return this;
    }

    public List getTemperature() {
        return temperature;
    }

    public SegmentGroup6 setTemperature(List temperature) {
        this.temperature = temperature;  return this;
    }

    public List getRangeDetails() {
        return rangeDetails;
    }

    public SegmentGroup6 setRangeDetails(List rangeDetails) {
        this.rangeDetails = rangeDetails;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public SegmentGroup6 setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup6 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

    public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }

    public List getMeasurements() {
        return measurements;
    }

    public SegmentGroup6 setMeasurements(List measurements) {
        this.measurements = measurements;  return this;
    }

    public List getPackageIdentification() {
        return packageIdentification;
    }

    public SegmentGroup6 setPackageIdentification(List packageIdentification) {
        this.packageIdentification = packageIdentification;  return this;
    }

    public List getDocumentMessageDetails() {
        return documentMessageDetails;
    }

    public SegmentGroup6 setDocumentMessageDetails(List documentMessageDetails) {
        this.documentMessageDetails = documentMessageDetails;  return this;
    }

    public List getSegmentGroup8() {
        return segmentGroup8;
    }

    public SegmentGroup6 setSegmentGroup8(List segmentGroup8) {
        this.segmentGroup8 = segmentGroup8;  return this;
    }

    public List getSegmentGroup9() {
        return segmentGroup9;
    }

    public SegmentGroup6 setSegmentGroup9(List segmentGroup9) {
        this.segmentGroup9 = segmentGroup9;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy