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

org.milyn.edi.unedifact.d02a.CNTCND.SegmentGroup19 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.d02a.CNTCND;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d02a.common.Formula;    
import java.util.List;    
import org.milyn.edi.unedifact.d02a.common.GeneralIndicator;    
import org.milyn.edi.unedifact.d02a.common.AdditionalInformation;    
import org.milyn.edi.unedifact.d02a.common.Reference;    
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup19 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private Formula formula;
    private List generalIndicator;
    private List additionalInformation;
    private List reference;
    private List dateTimePeriod;
    private List segmentGroup20;

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

        if(formula != null) {
            nodeWriter.write("FOR");
            nodeWriter.write(delimiters.getField());
            formula.write(nodeWriter, delimiters);
        }
        if(generalIndicator != null && !generalIndicator.isEmpty()) {
            for(GeneralIndicator generalIndicatorInst : generalIndicator) {
                nodeWriter.write("GIS");
                nodeWriter.write(delimiters.getField());
                generalIndicatorInst.write(nodeWriter, delimiters);
            }
        }
        if(additionalInformation != null && !additionalInformation.isEmpty()) {
            for(AdditionalInformation additionalInformationInst : additionalInformation) {
                nodeWriter.write("ALI");
                nodeWriter.write(delimiters.getField());
                additionalInformationInst.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(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
            for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
                segmentGroup20Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public Formula getFormula() {
        return formula;
    }

    public SegmentGroup19 setFormula(Formula formula) {
        this.formula = formula;  return this;
    }

    public List getGeneralIndicator() {
        return generalIndicator;
    }

    public SegmentGroup19 setGeneralIndicator(List generalIndicator) {
        this.generalIndicator = generalIndicator;  return this;
    }

    public List getAdditionalInformation() {
        return additionalInformation;
    }

    public SegmentGroup19 setAdditionalInformation(List additionalInformation) {
        this.additionalInformation = additionalInformation;  return this;
    }

    public List getReference() {
        return reference;
    }

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

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public List getSegmentGroup20() {
        return segmentGroup20;
    }

    public SegmentGroup19 setSegmentGroup20(List segmentGroup20) {
        this.segmentGroup20 = segmentGroup20;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy