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

org.milyn.edi.unedifact.d06b.PROCST.SegmentGroup13 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.CharacteristicValue;    
import org.milyn.edi.unedifact.d06b.common.ProcessIdentification;    
import org.milyn.edi.unedifact.d06b.common.ItemDescription;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.Reference;    
import org.milyn.edi.unedifact.d06b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d06b.common.Statistics;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup13 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private CharacteristicValue characteristicValue;
    private ProcessIdentification processIdentification;
    private ItemDescription itemDescription;
    private List reference;
    private List dateTimePeriod;
    private List statistics;
    private List segmentGroup14;
    private List segmentGroup15;
    private List segmentGroup16;

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

        if(characteristicValue != null) {
            nodeWriter.write("CAV");
            nodeWriter.write(delimiters.getField());
            characteristicValue.write(nodeWriter, delimiters);
        }
        if(processIdentification != null) {
            nodeWriter.write("PRC");
            nodeWriter.write(delimiters.getField());
            processIdentification.write(nodeWriter, delimiters);
        }
        if(itemDescription != null) {
            nodeWriter.write("IMD");
            nodeWriter.write(delimiters.getField());
            itemDescription.write(nodeWriter, delimiters);
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(statistics != null && !statistics.isEmpty()) {
            for(Statistics statisticsInst : statistics) {
                nodeWriter.write("STA");
                nodeWriter.write(delimiters.getField());
                statisticsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
            for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
                segmentGroup14Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
            for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
                segmentGroup15Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
            for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
                segmentGroup16Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public CharacteristicValue getCharacteristicValue() {
        return characteristicValue;
    }

    public SegmentGroup13 setCharacteristicValue(CharacteristicValue characteristicValue) {
        this.characteristicValue = characteristicValue;  return this;
    }

    public ProcessIdentification getProcessIdentification() {
        return processIdentification;
    }

    public SegmentGroup13 setProcessIdentification(ProcessIdentification processIdentification) {
        this.processIdentification = processIdentification;  return this;
    }

    public ItemDescription getItemDescription() {
        return itemDescription;
    }

    public SegmentGroup13 setItemDescription(ItemDescription itemDescription) {
        this.itemDescription = itemDescription;  return this;
    }

    public List getReference() {
        return reference;
    }

    public SegmentGroup13 setReference(List reference) {
        this.reference = reference;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getStatistics() {
        return statistics;
    }

    public SegmentGroup13 setStatistics(List statistics) {
        this.statistics = statistics;  return this;
    }

    public List getSegmentGroup14() {
        return segmentGroup14;
    }

    public SegmentGroup13 setSegmentGroup14(List segmentGroup14) {
        this.segmentGroup14 = segmentGroup14;  return this;
    }

    public List getSegmentGroup15() {
        return segmentGroup15;
    }

    public SegmentGroup13 setSegmentGroup15(List segmentGroup15) {
        this.segmentGroup15 = segmentGroup15;  return this;
    }

    public List getSegmentGroup16() {
        return segmentGroup16;
    }

    public SegmentGroup13 setSegmentGroup16(List segmentGroup16) {
        this.segmentGroup16 = segmentGroup16;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy