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

org.milyn.edi.unedifact.d99b.CUSCAR.SegmentGroup8 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d99b.CUSCAR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.RFFReference;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.CNTControlTotal;    
import org.milyn.edi.unedifact.d99b.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d99b.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d99b.common.GISGeneralIndicator;    
import org.milyn.edi.unedifact.d99b.common.CUXCurrencies;    
import org.milyn.edi.unedifact.d99b.common.CPIChargePaymentInstructions;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup8 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private RFFReference rFFReference;
    private List cNTControlTotal;
    private List mOAMonetaryAmount;
    private List lOCPlaceLocationIdentification;
    private List gISGeneralIndicator;
    private List cUXCurrencies;
    private List cPIChargePaymentInstructions;
    private List segmentGroup9;
    private List segmentGroup11;
    private List segmentGroup13;
    private List segmentGroup14;

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

        if(rFFReference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            rFFReference.write(nodeWriter, delimiters);
        }
        if(cNTControlTotal != null && !cNTControlTotal.isEmpty()) {
            for(CNTControlTotal cNTControlTotalInst : cNTControlTotal) {
                nodeWriter.write("CNT");
                nodeWriter.write(delimiters.getField());
                cNTControlTotalInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(gISGeneralIndicator != null && !gISGeneralIndicator.isEmpty()) {
            for(GISGeneralIndicator gISGeneralIndicatorInst : gISGeneralIndicator) {
                nodeWriter.write("GIS");
                nodeWriter.write(delimiters.getField());
                gISGeneralIndicatorInst.write(nodeWriter, delimiters);
            }
        }
        if(cUXCurrencies != null && !cUXCurrencies.isEmpty()) {
            for(CUXCurrencies cUXCurrenciesInst : cUXCurrencies) {
                nodeWriter.write("CUX");
                nodeWriter.write(delimiters.getField());
                cUXCurrenciesInst.write(nodeWriter, delimiters);
            }
        }
        if(cPIChargePaymentInstructions != null && !cPIChargePaymentInstructions.isEmpty()) {
            for(CPIChargePaymentInstructions cPIChargePaymentInstructionsInst : cPIChargePaymentInstructions) {
                nodeWriter.write("CPI");
                nodeWriter.write(delimiters.getField());
                cPIChargePaymentInstructionsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
            for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
                segmentGroup9Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
            for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
                segmentGroup11Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup13 != null && !segmentGroup13.isEmpty()) {
            for(SegmentGroup13 segmentGroup13Inst : segmentGroup13) {
                segmentGroup13Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
            for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
                segmentGroup14Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public RFFReference getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup8 setRFFReference(RFFReference rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public List getCNTControlTotal() {
        return cNTControlTotal;
    }

    public SegmentGroup8 setCNTControlTotal(List cNTControlTotal) {
        this.cNTControlTotal = cNTControlTotal;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup8 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public List getGISGeneralIndicator() {
        return gISGeneralIndicator;
    }

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

    public List getCUXCurrencies() {
        return cUXCurrencies;
    }

    public SegmentGroup8 setCUXCurrencies(List cUXCurrencies) {
        this.cUXCurrencies = cUXCurrencies;  return this;
    }

    public List getCPIChargePaymentInstructions() {
        return cPIChargePaymentInstructions;
    }

    public SegmentGroup8 setCPIChargePaymentInstructions(List cPIChargePaymentInstructions) {
        this.cPIChargePaymentInstructions = cPIChargePaymentInstructions;  return this;
    }

    public List getSegmentGroup9() {
        return segmentGroup9;
    }

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

    public List getSegmentGroup11() {
        return segmentGroup11;
    }

    public SegmentGroup8 setSegmentGroup11(List segmentGroup11) {
        this.segmentGroup11 = segmentGroup11;  return this;
    }

    public List getSegmentGroup13() {
        return segmentGroup13;
    }

    public SegmentGroup8 setSegmentGroup13(List segmentGroup13) {
        this.segmentGroup13 = segmentGroup13;  return this;
    }

    public List getSegmentGroup14() {
        return segmentGroup14;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy