org.milyn.edi.unedifact.d01a.LEDGER.SegmentGroup6 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d01a.LEDGER;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d01a.common.LINLineItem;
import java.util.List;
import org.milyn.edi.unedifact.d01a.common.CPTAccountIdentification;
import org.milyn.edi.unedifact.d01a.common.RJLAccountingJournalIdentification;
import org.milyn.edi.unedifact.d01a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d01a.common.FTXFreeText;
import org.milyn.edi.unedifact.d01a.common.PAIPaymentInstructions;
import org.milyn.edi.unedifact.d01a.common.RFFReference;
import org.milyn.edi.unedifact.d01a.common.QTYQuantity;
import org.milyn.edi.unedifact.d01a.common.TAXDutyTaxFeeDetails;
import org.milyn.edi.unedifact.d01a.common.FIIFinancialInstitutionInformation;
import org.milyn.edi.unedifact.d01a.common.CUXCurrencies;
import org.milyn.edi.unedifact.d01a.common.MOAMonetaryAmount;
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 LINLineItem lINLineItem;
private List cPTAccountIdentification;
private RJLAccountingJournalIdentification rJLAccountingJournalIdentification;
private List dTMDateTimePeriod;
private FTXFreeText fTXFreeText;
private PAIPaymentInstructions pAIPaymentInstructions;
private List rFFReference;
private List qTYQuantity;
private List tAXDutyTaxFeeDetails;
private FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation;
private List cUXCurrencies;
private List mOAMonetaryAmount;
private List segmentGroup7;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(lINLineItem != null) {
nodeWriter.write("LIN");
nodeWriter.write(delimiters.getField());
lINLineItem.write(nodeWriter, delimiters);
}
if(cPTAccountIdentification != null && !cPTAccountIdentification.isEmpty()) {
for(CPTAccountIdentification cPTAccountIdentificationInst : cPTAccountIdentification) {
nodeWriter.write("CPT");
nodeWriter.write(delimiters.getField());
cPTAccountIdentificationInst.write(nodeWriter, delimiters);
}
}
if(rJLAccountingJournalIdentification != null) {
nodeWriter.write("RJL");
nodeWriter.write(delimiters.getField());
rJLAccountingJournalIdentification.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeText.write(nodeWriter, delimiters);
}
if(pAIPaymentInstructions != null) {
nodeWriter.write("PAI");
nodeWriter.write(delimiters.getField());
pAIPaymentInstructions.write(nodeWriter, delimiters);
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
for(QTYQuantity qTYQuantityInst : qTYQuantity) {
nodeWriter.write("QTY");
nodeWriter.write(delimiters.getField());
qTYQuantityInst.write(nodeWriter, delimiters);
}
}
if(tAXDutyTaxFeeDetails != null && !tAXDutyTaxFeeDetails.isEmpty()) {
for(TAXDutyTaxFeeDetails tAXDutyTaxFeeDetailsInst : tAXDutyTaxFeeDetails) {
nodeWriter.write("TAX");
nodeWriter.write(delimiters.getField());
tAXDutyTaxFeeDetailsInst.write(nodeWriter, delimiters);
}
}
if(fIIFinancialInstitutionInformation != null) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
fIIFinancialInstitutionInformation.write(nodeWriter, delimiters);
}
if(cUXCurrencies != null && !cUXCurrencies.isEmpty()) {
for(CUXCurrencies cUXCurrenciesInst : cUXCurrencies) {
nodeWriter.write("CUX");
nodeWriter.write(delimiters.getField());
cUXCurrenciesInst.write(nodeWriter, delimiters);
}
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup7 != null && !segmentGroup7.isEmpty()) {
for(SegmentGroup7 segmentGroup7Inst : segmentGroup7) {
segmentGroup7Inst.write(nodeWriter, delimiters);
}
}
}
public LINLineItem getLINLineItem() {
return lINLineItem;
}
public SegmentGroup6 setLINLineItem(LINLineItem lINLineItem) {
this.lINLineItem = lINLineItem; return this;
}
public List getCPTAccountIdentification() {
return cPTAccountIdentification;
}
public SegmentGroup6 setCPTAccountIdentification(List cPTAccountIdentification) {
this.cPTAccountIdentification = cPTAccountIdentification; return this;
}
public RJLAccountingJournalIdentification getRJLAccountingJournalIdentification() {
return rJLAccountingJournalIdentification;
}
public SegmentGroup6 setRJLAccountingJournalIdentification(RJLAccountingJournalIdentification rJLAccountingJournalIdentification) {
this.rJLAccountingJournalIdentification = rJLAccountingJournalIdentification; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public SegmentGroup6 setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public FTXFreeText getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup6 setFTXFreeText(FTXFreeText fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public PAIPaymentInstructions getPAIPaymentInstructions() {
return pAIPaymentInstructions;
}
public SegmentGroup6 setPAIPaymentInstructions(PAIPaymentInstructions pAIPaymentInstructions) {
this.pAIPaymentInstructions = pAIPaymentInstructions; return this;
}
public List getRFFReference() {
return rFFReference;
}
public SegmentGroup6 setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public List getQTYQuantity() {
return qTYQuantity;
}
public SegmentGroup6 setQTYQuantity(List qTYQuantity) {
this.qTYQuantity = qTYQuantity; return this;
}
public List getTAXDutyTaxFeeDetails() {
return tAXDutyTaxFeeDetails;
}
public SegmentGroup6 setTAXDutyTaxFeeDetails(List tAXDutyTaxFeeDetails) {
this.tAXDutyTaxFeeDetails = tAXDutyTaxFeeDetails; return this;
}
public FIIFinancialInstitutionInformation getFIIFinancialInstitutionInformation() {
return fIIFinancialInstitutionInformation;
}
public SegmentGroup6 setFIIFinancialInstitutionInformation(FIIFinancialInstitutionInformation fIIFinancialInstitutionInformation) {
this.fIIFinancialInstitutionInformation = fIIFinancialInstitutionInformation; return this;
}
public List getCUXCurrencies() {
return cUXCurrencies;
}
public SegmentGroup6 setCUXCurrencies(List cUXCurrencies) {
this.cUXCurrencies = cUXCurrencies; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public SegmentGroup6 setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getSegmentGroup7() {
return segmentGroup7;
}
public SegmentGroup6 setSegmentGroup7(List segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
}