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

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.Reference;    
import org.milyn.edi.unedifact.d05a.common.RangeDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d05a.common.Quantity;    
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 Reference reference;
    private RangeDetails rangeDetails;
    private List dateTimePeriod;
    private Quantity quantity;
    private SegmentGroup6 segmentGroup6;
    private List segmentGroup7;
    private List segmentGroup8;
    private SegmentGroup9 segmentGroup9;
    private SegmentGroup10 segmentGroup10;
    private SegmentGroup13 segmentGroup13;
    private List segmentGroup17;

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

        if(reference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            reference.write(nodeWriter, delimiters);
        }
        if(rangeDetails != null) {
            nodeWriter.write("RNG");
            nodeWriter.write(delimiters.getField());
            rangeDetails.write(nodeWriter, delimiters);
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(quantity != null) {
            nodeWriter.write("QTY");
            nodeWriter.write(delimiters.getField());
            quantity.write(nodeWriter, delimiters);
        }
        if(segmentGroup6 != null) {
            segmentGroup6.write(nodeWriter, delimiters);
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
            for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
                segmentGroup8Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup9 != null) {
            segmentGroup9.write(nodeWriter, delimiters);
        }
        if(segmentGroup10 != null) {
            segmentGroup10.write(nodeWriter, delimiters);
        }
        if(segmentGroup13 != null) {
            segmentGroup13.write(nodeWriter, delimiters);
        }
        if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
            for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
                segmentGroup17Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public Reference getReference() {
        return reference;
    }

    public SegmentGroup5 setReference(Reference reference) {
        this.reference = reference;  return this;
    }

    public RangeDetails getRangeDetails() {
        return rangeDetails;
    }

    public SegmentGroup5 setRangeDetails(RangeDetails rangeDetails) {
        this.rangeDetails = rangeDetails;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public Quantity getQuantity() {
        return quantity;
    }

    public SegmentGroup5 setQuantity(Quantity quantity) {
        this.quantity = quantity;  return this;
    }

    public SegmentGroup6 getSegmentGroup6() {
        return segmentGroup6;
    }

    public SegmentGroup5 setSegmentGroup6(SegmentGroup6 segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

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

    public List getSegmentGroup8() {
        return segmentGroup8;
    }

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

    public SegmentGroup9 getSegmentGroup9() {
        return segmentGroup9;
    }

    public SegmentGroup5 setSegmentGroup9(SegmentGroup9 segmentGroup9) {
        this.segmentGroup9 = segmentGroup9;  return this;
    }

    public SegmentGroup10 getSegmentGroup10() {
        return segmentGroup10;
    }

    public SegmentGroup5 setSegmentGroup10(SegmentGroup10 segmentGroup10) {
        this.segmentGroup10 = segmentGroup10;  return this;
    }

    public SegmentGroup13 getSegmentGroup13() {
        return segmentGroup13;
    }

    public SegmentGroup5 setSegmentGroup13(SegmentGroup13 segmentGroup13) {
        this.segmentGroup13 = segmentGroup13;  return this;
    }

    public List getSegmentGroup17() {
        return segmentGroup17;
    }

    public SegmentGroup5 setSegmentGroup17(List segmentGroup17) {
        this.segmentGroup17 = segmentGroup17;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy