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

org.milyn.edi.unedifact.d06b.MEDRUC.SegmentGroup23 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.d06b.MEDRUC;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.TCCChargeRateCalculations;    
import org.milyn.edi.unedifact.d06b.common.GEIProcessingInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.IMDItemDescription;    
import org.milyn.edi.unedifact.d06b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d06b.common.RFFReference;    
import org.milyn.edi.unedifact.d06b.common.FTXFreeText;    
import org.milyn.edi.unedifact.d06b.common.QTYQuantity;    
import org.milyn.edi.unedifact.d06b.common.PCDPercentageDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup23 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private TCCChargeRateCalculations tCCChargeRateCalculations;
    private GEIProcessingInformation gEIProcessingInformation;
    private List iMDItemDescription;
    private List dTMDateTimePeriod;
    private List rFFReference;
    private List fTXFreeText;
    private List qTYQuantity;
    private List pCDPercentageDetails;
    private List segmentGroup24;
    private List segmentGroup25;

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

        if(tCCChargeRateCalculations != null) {
            nodeWriter.write("TCC");
            nodeWriter.write(delimiters.getField());
            tCCChargeRateCalculations.write(nodeWriter, delimiters);
        }
        if(gEIProcessingInformation != null) {
            nodeWriter.write("GEI");
            nodeWriter.write(delimiters.getField());
            gEIProcessingInformation.write(nodeWriter, delimiters);
        }
        if(iMDItemDescription != null && !iMDItemDescription.isEmpty()) {
            for(IMDItemDescription iMDItemDescriptionInst : iMDItemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                iMDItemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
            for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
                nodeWriter.write("PCD");
                nodeWriter.write(delimiters.getField());
                pCDPercentageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
            for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
                segmentGroup24Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup25 != null && !segmentGroup25.isEmpty()) {
            for(SegmentGroup25 segmentGroup25Inst : segmentGroup25) {
                segmentGroup25Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public TCCChargeRateCalculations getTCCChargeRateCalculations() {
        return tCCChargeRateCalculations;
    }

    public SegmentGroup23 setTCCChargeRateCalculations(TCCChargeRateCalculations tCCChargeRateCalculations) {
        this.tCCChargeRateCalculations = tCCChargeRateCalculations;  return this;
    }

    public GEIProcessingInformation getGEIProcessingInformation() {
        return gEIProcessingInformation;
    }

    public SegmentGroup23 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
        this.gEIProcessingInformation = gEIProcessingInformation;  return this;
    }

    public List getIMDItemDescription() {
        return iMDItemDescription;
    }

    public SegmentGroup23 setIMDItemDescription(List iMDItemDescription) {
        this.iMDItemDescription = iMDItemDescription;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup23 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getQTYQuantity() {
        return qTYQuantity;
    }

    public SegmentGroup23 setQTYQuantity(List qTYQuantity) {
        this.qTYQuantity = qTYQuantity;  return this;
    }

    public List getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup23 setPCDPercentageDetails(List pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public List getSegmentGroup24() {
        return segmentGroup24;
    }

    public SegmentGroup23 setSegmentGroup24(List segmentGroup24) {
        this.segmentGroup24 = segmentGroup24;  return this;
    }

    public List getSegmentGroup25() {
        return segmentGroup25;
    }

    public SegmentGroup23 setSegmentGroup25(List segmentGroup25) {
        this.segmentGroup25 = segmentGroup25;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy