org.milyn.edi.unedifact.d05a.REMADV.Remadv Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d05a.REMADV;
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.DateTimePeriod;
import org.milyn.edi.unedifact.d05a.common.Reference;
import org.milyn.edi.unedifact.d05a.common.FinancialInstitutionInformation;
import org.milyn.edi.unedifact.d05a.common.PaymentInstructions;
import org.milyn.edi.unedifact.d05a.common.FreeText;
import org.milyn.edi.unedifact.d05a.common.ProcessingInformation;
import org.milyn.edi.unedifact.d05a.common.SectionControl;
import org.milyn.edi.unedifact.d05a.common.MonetaryAmount;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Remadv implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BeginningOfMessage beginningOfMessage;
private List dateTimePeriod;
private List reference;
private List financialInstitutionInformation;
private PaymentInstructions paymentInstructions;
private List freeText;
private List processingInformation;
private List segmentGroup1;
private List segmentGroup4;
private List segmentGroup5;
private SectionControl sectionControl;
private List monetaryAmount;
private List segmentGroup14;
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(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(reference != null && !reference.isEmpty()) {
for(Reference referenceInst : reference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
referenceInst.write(nodeWriter, delimiters);
}
}
if(financialInstitutionInformation != null && !financialInstitutionInformation.isEmpty()) {
for(FinancialInstitutionInformation financialInstitutionInformationInst : financialInstitutionInformation) {
nodeWriter.write("FII");
nodeWriter.write(delimiters.getField());
financialInstitutionInformationInst.write(nodeWriter, delimiters);
}
}
if(paymentInstructions != null) {
nodeWriter.write("PAI");
nodeWriter.write(delimiters.getField());
paymentInstructions.write(nodeWriter, delimiters);
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(processingInformation != null && !processingInformation.isEmpty()) {
for(ProcessingInformation processingInformationInst : processingInformation) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
processingInformationInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
segmentGroup1Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null && !segmentGroup5.isEmpty()) {
for(SegmentGroup5 segmentGroup5Inst : segmentGroup5) {
segmentGroup5Inst.write(nodeWriter, delimiters);
}
}
if(sectionControl != null) {
nodeWriter.write("UNS");
nodeWriter.write(delimiters.getField());
sectionControl.write(nodeWriter, delimiters);
}
if(monetaryAmount != null && !monetaryAmount.isEmpty()) {
for(MonetaryAmount monetaryAmountInst : monetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
monetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
}
public BeginningOfMessage getBeginningOfMessage() {
return beginningOfMessage;
}
public Remadv setBeginningOfMessage(BeginningOfMessage beginningOfMessage) {
this.beginningOfMessage = beginningOfMessage; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public Remadv setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getReference() {
return reference;
}
public Remadv setReference(List reference) {
this.reference = reference; return this;
}
public List getFinancialInstitutionInformation() {
return financialInstitutionInformation;
}
public Remadv setFinancialInstitutionInformation(List financialInstitutionInformation) {
this.financialInstitutionInformation = financialInstitutionInformation; return this;
}
public PaymentInstructions getPaymentInstructions() {
return paymentInstructions;
}
public Remadv setPaymentInstructions(PaymentInstructions paymentInstructions) {
this.paymentInstructions = paymentInstructions; return this;
}
public List getFreeText() {
return freeText;
}
public Remadv setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getProcessingInformation() {
return processingInformation;
}
public Remadv setProcessingInformation(List processingInformation) {
this.processingInformation = processingInformation; return this;
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Remadv setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public Remadv setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public Remadv setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
public SectionControl getSectionControl() {
return sectionControl;
}
public Remadv setSectionControl(SectionControl sectionControl) {
this.sectionControl = sectionControl; return this;
}
public List getMonetaryAmount() {
return monetaryAmount;
}
public Remadv setMonetaryAmount(List monetaryAmount) {
this.monetaryAmount = monetaryAmount; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public Remadv setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
}