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

org.milyn.edi.unedifact.d02a.LEDGER.SegmentGroup6 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.d02a.LEDGER;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d02a.common.LineItem;    
import java.util.List;    
import org.milyn.edi.unedifact.d02a.common.AccountIdentification;    
import org.milyn.edi.unedifact.d02a.common.AccountingJournalIdentification;    
import org.milyn.edi.unedifact.d02a.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d02a.common.FreeText;    
import org.milyn.edi.unedifact.d02a.common.PaymentInstructions;    
import org.milyn.edi.unedifact.d02a.common.Reference;    
import org.milyn.edi.unedifact.d02a.common.Quantity;    
import org.milyn.edi.unedifact.d02a.common.DutyTaxFeeDetails;    
import org.milyn.edi.unedifact.d02a.common.FinancialInstitutionInformation;    
import org.milyn.edi.unedifact.d02a.common.Currencies;    
import org.milyn.edi.unedifact.d02a.common.MonetaryAmount;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup6 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LineItem lineItem;
    private List accountIdentification;
    private AccountingJournalIdentification accountingJournalIdentification;
    private List dateTimePeriod;
    private FreeText freeText;
    private PaymentInstructions paymentInstructions;
    private List reference;
    private List quantity;
    private List dutyTaxFeeDetails;
    private FinancialInstitutionInformation financialInstitutionInformation;
    private List currencies;
    private List monetaryAmount;
    private List segmentGroup7;

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

        if(lineItem != null) {
            nodeWriter.write("LIN");
            nodeWriter.write(delimiters.getField());
            lineItem.write(nodeWriter, delimiters);
        }
        if(accountIdentification != null && !accountIdentification.isEmpty()) {
            for(AccountIdentification accountIdentificationInst : accountIdentification) {
                nodeWriter.write("CPT");
                nodeWriter.write(delimiters.getField());
                accountIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(accountingJournalIdentification != null) {
            nodeWriter.write("RJL");
            nodeWriter.write(delimiters.getField());
            accountingJournalIdentification.write(nodeWriter, delimiters);
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(freeText != null) {
            nodeWriter.write("FTX");
            nodeWriter.write(delimiters.getField());
            freeText.write(nodeWriter, delimiters);
        }
        if(paymentInstructions != null) {
            nodeWriter.write("PAI");
            nodeWriter.write(delimiters.getField());
            paymentInstructions.write(nodeWriter, delimiters);
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(quantity != null && !quantity.isEmpty()) {
            for(Quantity quantityInst : quantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                quantityInst.write(nodeWriter, delimiters);
            }
        }
        if(dutyTaxFeeDetails != null && !dutyTaxFeeDetails.isEmpty()) {
            for(DutyTaxFeeDetails dutyTaxFeeDetailsInst : dutyTaxFeeDetails) {
                nodeWriter.write("TAX");
                nodeWriter.write(delimiters.getField());
                dutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(financialInstitutionInformation != null) {
            nodeWriter.write("FII");
            nodeWriter.write(delimiters.getField());
            financialInstitutionInformation.write(nodeWriter, delimiters);
        }
        if(currencies != null && !currencies.isEmpty()) {
            for(Currencies currenciesInst : currencies) {
                nodeWriter.write("CUX");
                nodeWriter.write(delimiters.getField());
                currenciesInst.write(nodeWriter, delimiters);
            }
        }
        if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
            for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                monetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
            for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
                segmentGroup7Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public LineItem getLineItem() {
        return lineItem;
    }

    public SegmentGroup6 setLineItem(LineItem lineItem) {
        this.lineItem = lineItem;  return this;
    }

    public List getAccountIdentification() {
        return accountIdentification;
    }

    public SegmentGroup6 setAccountIdentification(List accountIdentification) {
        this.accountIdentification = accountIdentification;  return this;
    }

    public AccountingJournalIdentification getAccountingJournalIdentification() {
        return accountingJournalIdentification;
    }

    public SegmentGroup6 setAccountingJournalIdentification(AccountingJournalIdentification accountingJournalIdentification) {
        this.accountingJournalIdentification = accountingJournalIdentification;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

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

    public FreeText getFreeText() {
        return freeText;
    }

    public SegmentGroup6 setFreeText(FreeText freeText) {
        this.freeText = freeText;  return this;
    }

    public PaymentInstructions getPaymentInstructions() {
        return paymentInstructions;
    }

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

    public List getReference() {
        return reference;
    }

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

    public List getQuantity() {
        return quantity;
    }

    public SegmentGroup6 setQuantity(List quantity) {
        this.quantity = quantity;  return this;
    }

    public List getDutyTaxFeeDetails() {
        return dutyTaxFeeDetails;
    }

    public SegmentGroup6 setDutyTaxFeeDetails(List dutyTaxFeeDetails) {
        this.dutyTaxFeeDetails = dutyTaxFeeDetails;  return this;
    }

    public FinancialInstitutionInformation getFinancialInstitutionInformation() {
        return financialInstitutionInformation;
    }

    public SegmentGroup6 setFinancialInstitutionInformation(FinancialInstitutionInformation financialInstitutionInformation) {
        this.financialInstitutionInformation = financialInstitutionInformation;  return this;
    }

    public List getCurrencies() {
        return currencies;
    }

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

    public List getMonetaryAmount() {
        return monetaryAmount;
    }

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

    public List getSegmentGroup7() {
        return segmentGroup7;
    }

    public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
        this.segmentGroup7 = segmentGroup7;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy