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

org.milyn.edi.unedifact.d02a.CNTCND.SegmentGroup27 Maven / Gradle / Ivy

The 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.FORFormula;    
import java.util.List;    
import org.milyn.edi.unedifact.d02a.common.ALIAdditionalInformation;    
import org.milyn.edi.unedifact.d02a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d02a.common.RFFReference;    
import org.milyn.edi.unedifact.d02a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d02a.common.GISGeneralIndicator;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup27 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private FORFormula fORFormula;
    private List aLIAdditionalInformation;
    private List mOAMonetaryAmount;
    private List rFFReference;
    private List dTMDateTimePeriod;
    private List gISGeneralIndicator;
    private List segmentGroup28;

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

        if(fORFormula != null) {
            nodeWriter.write("FOR");
            nodeWriter.write(delimiters.getField());
            fORFormula.write(nodeWriter, delimiters);
        }
        if(aLIAdditionalInformation != null && !aLIAdditionalInformation.isEmpty()) {
            for(ALIAdditionalInformation aLIAdditionalInformationInst : aLIAdditionalInformation) {
                nodeWriter.write("ALI");
                nodeWriter.write(delimiters.getField());
                aLIAdditionalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(gISGeneralIndicator != null && !gISGeneralIndicator.isEmpty()) {
            for(GISGeneralIndicator gISGeneralIndicatorInst : gISGeneralIndicator) {
                nodeWriter.write("GIS");
                nodeWriter.write(delimiters.getField());
                gISGeneralIndicatorInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup28 != null && !segmentGroup28.isEmpty()) {
            for(SegmentGroup28 segmentGroup28Inst : segmentGroup28) {
                segmentGroup28Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public FORFormula getFORFormula() {
        return fORFormula;
    }

    public SegmentGroup27 setFORFormula(FORFormula fORFormula) {
        this.fORFormula = fORFormula;  return this;
    }

    public List getALIAdditionalInformation() {
        return aLIAdditionalInformation;
    }

    public SegmentGroup27 setALIAdditionalInformation(List aLIAdditionalInformation) {
        this.aLIAdditionalInformation = aLIAdditionalInformation;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

    public SegmentGroup27 setMOAMonetaryAmount(List mOAMonetaryAmount) {
        this.mOAMonetaryAmount = mOAMonetaryAmount;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup27 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup27 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getGISGeneralIndicator() {
        return gISGeneralIndicator;
    }

    public SegmentGroup27 setGISGeneralIndicator(List gISGeneralIndicator) {
        this.gISGeneralIndicator = gISGeneralIndicator;  return this;
    }

    public List getSegmentGroup28() {
        return segmentGroup28;
    }

    public SegmentGroup27 setSegmentGroup28(List segmentGroup28) {
        this.segmentGroup28 = segmentGroup28;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy