org.milyn.edi.unedifact.d05a.SUPCOT.Supcot Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.SUPCOT;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d05a.common.BeginningOfMessage;
import java.util.List;
import org.milyn.edi.unedifact.d05a.common.Reference;
import org.milyn.edi.unedifact.d05a.common.PaymentInstructions;
import org.milyn.edi.unedifact.d05a.common.Currencies;
import org.milyn.edi.unedifact.d05a.common.FinancialInstitutionInformation;
import org.milyn.edi.unedifact.d05a.common.DateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.PaymentTerms;
import org.milyn.edi.unedifact.d05a.common.FreeText;
import org.milyn.edi.unedifact.d05a.common.SectionControl;
import org.milyn.edi.unedifact.d05a.common.MonetaryAmount;
import org.milyn.edi.unedifact.d05a.common.ControlTotal;
import org.milyn.edi.unedifact.d05a.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 PaymentTerms paymentTerms;
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(paymentTerms != null) {
nodeWriter.write("PYT");
nodeWriter.write(delimiters.getField());
paymentTerms.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 PaymentTerms getPaymentTerms() {
return paymentTerms;
}
public Supcot setPaymentTerms(PaymentTerms paymentTerms) {
this.paymentTerms = paymentTerms; 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;
}
}