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

org.milyn.edi.unedifact.d98a.RECECO.SegmentGroup2 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.RECECO;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d98a.common.DOCDocumentMessageDetails;    
import org.milyn.edi.unedifact.d98a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d98a.common.CUXCurrencies;    
import java.util.List;    
import org.milyn.edi.unedifact.d98a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d98a.common.CCDCreditCoverDetails;    
import org.milyn.edi.unedifact.d98a.common.PCDPercentageDetails;    
import org.milyn.edi.unedifact.d98a.common.PATPaymentTermsBasis;    
import org.milyn.edi.unedifact.d98a.common.FTXFreeText;    
import org.milyn.edi.unedifact.d98a.common.RFFReference;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup2 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private DOCDocumentMessageDetails dOCDocumentMessageDetails;
    private MOAMonetaryAmount mOAMonetaryAmount;
    private CUXCurrencies cUXCurrencies;
    private List dTMDateTimePeriod;
    private CCDCreditCoverDetails cCDCreditCoverDetails;
    private PCDPercentageDetails pCDPercentageDetails;
    private PATPaymentTermsBasis pATPaymentTermsBasis;
    private FTXFreeText fTXFreeText;
    private RFFReference rFFReference;

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

        if(dOCDocumentMessageDetails != null) {
            nodeWriter.write("DOC");
            nodeWriter.write(delimiters.getField());
            dOCDocumentMessageDetails.write(nodeWriter, delimiters);
        }
        if(mOAMonetaryAmount != null) {
            nodeWriter.write("MOA");
            nodeWriter.write(delimiters.getField());
            mOAMonetaryAmount.write(nodeWriter, delimiters);
        }
        if(cUXCurrencies != null) {
            nodeWriter.write("CUX");
            nodeWriter.write(delimiters.getField());
            cUXCurrencies.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(cCDCreditCoverDetails != null) {
            nodeWriter.write("CCD");
            nodeWriter.write(delimiters.getField());
            cCDCreditCoverDetails.write(nodeWriter, delimiters);
        }
        if(pCDPercentageDetails != null) {
            nodeWriter.write("PCD");
            nodeWriter.write(delimiters.getField());
            pCDPercentageDetails.write(nodeWriter, delimiters);
        }
        if(pATPaymentTermsBasis != null) {
            nodeWriter.write("PAT");
            nodeWriter.write(delimiters.getField());
            pATPaymentTermsBasis.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null) {
            nodeWriter.write("FTX");
            nodeWriter.write(delimiters.getField());
            fTXFreeText.write(nodeWriter, delimiters);
        }
        if(rFFReference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            rFFReference.write(nodeWriter, delimiters);
        }
    }

    public DOCDocumentMessageDetails getDOCDocumentMessageDetails() {
        return dOCDocumentMessageDetails;
    }

    public SegmentGroup2 setDOCDocumentMessageDetails(DOCDocumentMessageDetails dOCDocumentMessageDetails) {
        this.dOCDocumentMessageDetails = dOCDocumentMessageDetails;  return this;
    }

    public MOAMonetaryAmount getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

    public SegmentGroup2 setMOAMonetaryAmount(MOAMonetaryAmount mOAMonetaryAmount) {
        this.mOAMonetaryAmount = mOAMonetaryAmount;  return this;
    }

    public CUXCurrencies getCUXCurrencies() {
        return cUXCurrencies;
    }

    public SegmentGroup2 setCUXCurrencies(CUXCurrencies cUXCurrencies) {
        this.cUXCurrencies = cUXCurrencies;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public CCDCreditCoverDetails getCCDCreditCoverDetails() {
        return cCDCreditCoverDetails;
    }

    public SegmentGroup2 setCCDCreditCoverDetails(CCDCreditCoverDetails cCDCreditCoverDetails) {
        this.cCDCreditCoverDetails = cCDCreditCoverDetails;  return this;
    }

    public PCDPercentageDetails getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup2 setPCDPercentageDetails(PCDPercentageDetails pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public PATPaymentTermsBasis getPATPaymentTermsBasis() {
        return pATPaymentTermsBasis;
    }

    public SegmentGroup2 setPATPaymentTermsBasis(PATPaymentTermsBasis pATPaymentTermsBasis) {
        this.pATPaymentTermsBasis = pATPaymentTermsBasis;  return this;
    }

    public FTXFreeText getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup2 setFTXFreeText(FTXFreeText fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public RFFReference getRFFReference() {
        return rFFReference;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy