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

org.milyn.edi.unedifact.d98a.CUSCAR.SegmentGroup8 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.d98a.CUSCAR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d98a.common.Reference;    
import java.util.List;    
import org.milyn.edi.unedifact.d98a.common.ControlTotal;    
import org.milyn.edi.unedifact.d98a.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d98a.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d98a.common.GeneralIndicator;    
import org.milyn.edi.unedifact.d98a.common.Currencies;    
import org.milyn.edi.unedifact.d98a.common.ChargePaymentInstructions;    
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 Reference reference;
    private List controlTotal;
    private List monetaryAmount;
    private List placeLocationIdentification;
    private List generalIndicator;
    private List currencies;
    private List chargePaymentInstructions;
    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(reference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            reference.write(nodeWriter, delimiters);
        }
        if(controlTotal != null && !controlTotal.isEmpty()) {
            for(ControlTotal controlTotalInst : controlTotal) {
                nodeWriter.write("CNT");
                nodeWriter.write(delimiters.getField());
                controlTotalInst.write(nodeWriter, delimiters);
            }
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(generalIndicator != null && !generalIndicator.isEmpty()) {
            for(GeneralIndicator generalIndicatorInst : generalIndicator) {
                nodeWriter.write("GIS");
                nodeWriter.write(delimiters.getField());
                generalIndicatorInst.write(nodeWriter, delimiters);
            }
        }
        if(currencies != null && !currencies.isEmpty()) {
            for(Currencies currenciesInst : currencies) {
                nodeWriter.write("CUX");
                nodeWriter.write(delimiters.getField());
                currenciesInst.write(nodeWriter, delimiters);
            }
        }
        if(chargePaymentInstructions != null && !chargePaymentInstructions.isEmpty()) {
            for(ChargePaymentInstructions chargePaymentInstructionsInst : chargePaymentInstructions) {
                nodeWriter.write("CPI");
                nodeWriter.write(delimiters.getField());
                chargePaymentInstructionsInst.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 Reference getReference() {
        return reference;
    }

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

    public List getControlTotal() {
        return controlTotal;
    }

    public SegmentGroup8 setControlTotal(List controlTotal) {
        this.controlTotal = controlTotal;  return this;
    }

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

    public SegmentGroup8 setMonetaryAmount(List monetaryAmount) {
        this.monetaryAmount = monetaryAmount;  return this;
    }

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

    public SegmentGroup8 setPlaceLocationIdentification(List placeLocationIdentification) {
        this.placeLocationIdentification = placeLocationIdentification;  return this;
    }

    public List getGeneralIndicator() {
        return generalIndicator;
    }

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

    public List getCurrencies() {
        return currencies;
    }

    public SegmentGroup8 setCurrencies(List currencies) {
        this.currencies = currencies;  return this;
    }

    public List getChargePaymentInstructions() {
        return chargePaymentInstructions;
    }

    public SegmentGroup8 setChargePaymentInstructions(List chargePaymentInstructions) {
        this.chargePaymentInstructions = chargePaymentInstructions;  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