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

org.milyn.edi.unedifact.d99b.SUPCOT.Supcot 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.d99b.SUPCOT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.smooks.edi.EDIMessage;    
import org.milyn.edi.unedifact.d99b.common.BeginningOfMessage;    
import java.util.List;    
import org.milyn.edi.unedifact.d99b.common.Reference;    
import org.milyn.edi.unedifact.d99b.common.PaymentInstructions;    
import org.milyn.edi.unedifact.d99b.common.Currencies;    
import org.milyn.edi.unedifact.d99b.common.FinancialInstitutionInformation;    
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d99b.common.PaymentTermsBasis;    
import org.milyn.edi.unedifact.d99b.common.FreeText;    
import org.milyn.edi.unedifact.d99b.common.SectionControl;    
import org.milyn.edi.unedifact.d99b.common.MonetaryAmount;    
import org.milyn.edi.unedifact.d99b.common.ControlTotal;    
import org.milyn.edi.unedifact.d99b.common.AuthenticationResult;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

@EDIMessage    
public class Supcot implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private BeginningOfMessage beginningOfMessage;
    private List reference;
    private PaymentInstructions paymentInstructions;
    private Currencies currencies;
    private List financialInstitutionInformation;
    private List dateTimePeriod;
    private PaymentTermsBasis paymentTermsBasis;
    private List freeText;
    private List segmentGroup1;
    private SectionControl sectionControl1;
    private List segmentGroup3;
    private SectionControl sectionControl2;
    private MonetaryAmount monetaryAmount;
    private List controlTotal;
    private AuthenticationResult authenticationResult;

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

        if(beginningOfMessage != null) {
            nodeWriter.write("BGM");
            nodeWriter.write(delimiters.getField());
            beginningOfMessage.write(nodeWriter, delimiters);
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(paymentInstructions != null) {
            nodeWriter.write("PAI");
            nodeWriter.write(delimiters.getField());
            paymentInstructions.write(nodeWriter, delimiters);
        }
        if(currencies != null) {
            nodeWriter.write("CUX");
            nodeWriter.write(delimiters.getField());
            currencies.write(nodeWriter, delimiters);
        }
        if(financialInstitutionInformation != null && !financialInstitutionInformation.isEmpty()) {
            for(FinancialInstitutionInformation financialInstitutionInformationInst : financialInstitutionInformation) {
                nodeWriter.write("FII");
                nodeWriter.write(delimiters.getField());
                financialInstitutionInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(paymentTermsBasis != null) {
            nodeWriter.write("PAT");
            nodeWriter.write(delimiters.getField());
            paymentTermsBasis.write(nodeWriter, delimiters);
        }
        if(freeText != null && !freeText.isEmpty()) {
            for(FreeText freeTextInst : freeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                freeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
            for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
                segmentGroup1Inst.write(nodeWriter, delimiters);
            }
        }
        if(sectionControl1 != null) {
            nodeWriter.write("UNS");
            nodeWriter.write(delimiters.getField());
            sectionControl1.write(nodeWriter, delimiters);
        }
        if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
            for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
                segmentGroup3Inst.write(nodeWriter, delimiters);
            }
        }
        if(sectionControl2 != null) {
            nodeWriter.write("UNS");
            nodeWriter.write(delimiters.getField());
            sectionControl2.write(nodeWriter, delimiters);
        }
        if(monetaryAmount != null) {
            nodeWriter.write("MOA");
            nodeWriter.write(delimiters.getField());
            monetaryAmount.write(nodeWriter, delimiters);
        }
        if(controlTotal != null && !controlTotal.isEmpty()) {
            for(ControlTotal controlTotalInst : controlTotal) {
                nodeWriter.write("CNT");
                nodeWriter.write(delimiters.getField());
                controlTotalInst.write(nodeWriter, delimiters);
            }
        }
        if(authenticationResult != null) {
            nodeWriter.write("AUT");
            nodeWriter.write(delimiters.getField());
            authenticationResult.write(nodeWriter, delimiters);
        }
    }

    public BeginningOfMessage getBeginningOfMessage() {
        return beginningOfMessage;
    }

    public Supcot setBeginningOfMessage(BeginningOfMessage beginningOfMessage) {
        this.beginningOfMessage = beginningOfMessage;  return this;
    }

    public List getReference() {
        return reference;
    }

    public Supcot setReference(List reference) {
        this.reference = reference;  return this;
    }

    public PaymentInstructions getPaymentInstructions() {
        return paymentInstructions;
    }

    public Supcot setPaymentInstructions(PaymentInstructions paymentInstructions) {
        this.paymentInstructions = paymentInstructions;  return this;
    }

    public Currencies getCurrencies() {
        return currencies;
    }

    public Supcot setCurrencies(Currencies currencies) {
        this.currencies = currencies;  return this;
    }

    public List getFinancialInstitutionInformation() {
        return financialInstitutionInformation;
    }

    public Supcot setFinancialInstitutionInformation(List financialInstitutionInformation) {
        this.financialInstitutionInformation = financialInstitutionInformation;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public Supcot setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public PaymentTermsBasis getPaymentTermsBasis() {
        return paymentTermsBasis;
    }

    public Supcot setPaymentTermsBasis(PaymentTermsBasis paymentTermsBasis) {
        this.paymentTermsBasis = paymentTermsBasis;  return this;
    }

    public List getFreeText() {
        return freeText;
    }

    public Supcot setFreeText(List freeText) {
        this.freeText = freeText;  return this;
    }

    public List getSegmentGroup1() {
        return segmentGroup1;
    }

    public Supcot setSegmentGroup1(List segmentGroup1) {
        this.segmentGroup1 = segmentGroup1;  return this;
    }

    public SectionControl getSectionControl1() {
        return sectionControl1;
    }

    public Supcot setSectionControl1(SectionControl sectionControl1) {
        this.sectionControl1 = sectionControl1;  return this;
    }

    public List getSegmentGroup3() {
        return segmentGroup3;
    }

    public Supcot setSegmentGroup3(List segmentGroup3) {
        this.segmentGroup3 = segmentGroup3;  return this;
    }

    public SectionControl getSectionControl2() {
        return sectionControl2;
    }

    public Supcot setSectionControl2(SectionControl sectionControl2) {
        this.sectionControl2 = sectionControl2;  return this;
    }

    public MonetaryAmount getMonetaryAmount() {
        return monetaryAmount;
    }

    public Supcot setMonetaryAmount(MonetaryAmount monetaryAmount) {
        this.monetaryAmount = monetaryAmount;  return this;
    }

    public List getControlTotal() {
        return controlTotal;
    }

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

    public AuthenticationResult getAuthenticationResult() {
        return authenticationResult;
    }

    public Supcot setAuthenticationResult(AuthenticationResult authenticationResult) {
        this.authenticationResult = authenticationResult;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy