org.milyn.edi.unedifact.d94a.DIRDEB.Dirdeb Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d94a.DIRDEB;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d94a.common.BGMBeginningOfMessage;
import java.util.List;
import org.milyn.edi.unedifact.d94a.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d94a.common.RFFReference;
import org.milyn.edi.unedifact.d94a.common.BUSBusinessFunction;
import org.milyn.edi.unedifact.d94a.common.FTXFreeText;
import org.milyn.edi.unedifact.d94a.common.PAIPaymentInstructions;
import org.milyn.edi.unedifact.d94a.common.FCAFinancialChargesAllocation;
import org.milyn.edi.unedifact.d94a.common.Uns;
import org.milyn.edi.unedifact.d94a.common.MOAMonetaryAmount;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Dirdeb implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BGMBeginningOfMessage bGMBeginningOfMessage;
private List dTMDateTimePeriod;
private List rFFReference;
private BUSBusinessFunction bUSBusinessFunction;
private List fTXFreeText;
private PAIPaymentInstructions pAIPaymentInstructions;
private FCAFinancialChargesAllocation fCAFinancialChargesAllocation;
private SegmentGroup1 segmentGroup1;
private List segmentGroup2;
private List segmentGroup3;
private List segmentGroup4;
private List segmentGroup5;
private Uns uNSSectionControl;
private List mOAMonetaryAmount;
private List segmentGroup11;
private SegmentGroup12 segmentGroup12;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(bGMBeginningOfMessage != null) {
nodeWriter.write("BGM");
nodeWriter.write(delimiters.getField());
bGMBeginningOfMessage.write(nodeWriter, delimiters);
}
if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(rFFReference != null && !rFFReference.isEmpty()) {
for(RFFReference rFFReferenceInst : rFFReference) {
nodeWriter.write("RFF");
nodeWriter.write(delimiters.getField());
rFFReferenceInst.write(nodeWriter, delimiters);
}
}
if(bUSBusinessFunction != null) {
nodeWriter.write("BUS");
nodeWriter.write(delimiters.getField());
bUSBusinessFunction.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(pAIPaymentInstructions != null) {
nodeWriter.write("PAI");
nodeWriter.write(delimiters.getField());
pAIPaymentInstructions.write(nodeWriter, delimiters);
}
if(fCAFinancialChargesAllocation != null) {
nodeWriter.write("FCA");
nodeWriter.write(delimiters.getField());
fCAFinancialChargesAllocation.write(nodeWriter, delimiters);
}
if(segmentGroup1 != null) {
segmentGroup1.write(nodeWriter, delimiters);
}
if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
segmentGroup2Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
segmentGroup3Inst.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(uNSSectionControl != null) {
nodeWriter.write("UNS");
nodeWriter.write(delimiters.getField());
uNSSectionControl.write(nodeWriter, delimiters);
}
if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
nodeWriter.write("MOA");
nodeWriter.write(delimiters.getField());
mOAMonetaryAmountInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup12 != null) {
segmentGroup12.write(nodeWriter, delimiters);
}
}
public BGMBeginningOfMessage getBGMBeginningOfMessage() {
return bGMBeginningOfMessage;
}
public Dirdeb setBGMBeginningOfMessage(BGMBeginningOfMessage bGMBeginningOfMessage) {
this.bGMBeginningOfMessage = bGMBeginningOfMessage; return this;
}
public List getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public Dirdeb setDTMDateTimePeriod(List dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public List getRFFReference() {
return rFFReference;
}
public Dirdeb setRFFReference(List rFFReference) {
this.rFFReference = rFFReference; return this;
}
public BUSBusinessFunction getBUSBusinessFunction() {
return bUSBusinessFunction;
}
public Dirdeb setBUSBusinessFunction(BUSBusinessFunction bUSBusinessFunction) {
this.bUSBusinessFunction = bUSBusinessFunction; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public Dirdeb setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public PAIPaymentInstructions getPAIPaymentInstructions() {
return pAIPaymentInstructions;
}
public Dirdeb setPAIPaymentInstructions(PAIPaymentInstructions pAIPaymentInstructions) {
this.pAIPaymentInstructions = pAIPaymentInstructions; return this;
}
public FCAFinancialChargesAllocation getFCAFinancialChargesAllocation() {
return fCAFinancialChargesAllocation;
}
public Dirdeb setFCAFinancialChargesAllocation(FCAFinancialChargesAllocation fCAFinancialChargesAllocation) {
this.fCAFinancialChargesAllocation = fCAFinancialChargesAllocation; return this;
}
public SegmentGroup1 getSegmentGroup1() {
return segmentGroup1;
}
public Dirdeb setSegmentGroup1(SegmentGroup1 segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public List getSegmentGroup2() {
return segmentGroup2;
}
public Dirdeb setSegmentGroup2(List segmentGroup2) {
this.segmentGroup2 = segmentGroup2; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public Dirdeb setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public Dirdeb setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public Dirdeb setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
public Uns getUNSSectionControl() {
return uNSSectionControl;
}
public Dirdeb setUNSSectionControl(Uns uNSSectionControl) {
this.uNSSectionControl = uNSSectionControl; return this;
}
public List getMOAMonetaryAmount() {
return mOAMonetaryAmount;
}
public Dirdeb setMOAMonetaryAmount(List mOAMonetaryAmount) {
this.mOAMonetaryAmount = mOAMonetaryAmount; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public Dirdeb setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public SegmentGroup12 getSegmentGroup12() {
return segmentGroup12;
}
public Dirdeb setSegmentGroup12(SegmentGroup12 segmentGroup12) {
this.segmentGroup12 = segmentGroup12; return this;
}
}