org.milyn.edi.unedifact.d09b.COLREQ.Colreq Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.COLREQ;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d09b.common.BGMBeginningOfMessage;
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;
import org.milyn.edi.unedifact.d09b.common.FCAFinancialChargesAllocation;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.DOCDocumentMessageDetails;
import org.milyn.edi.unedifact.d09b.common.INPPartiesAndInstruction;
import org.milyn.edi.unedifact.d09b.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Colreq implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BGMBeginningOfMessage bGMBeginningOfMessage;
private DTMDateTimePeriod dTMDateTimePeriod;
private FCAFinancialChargesAllocation fCAFinancialChargesAllocation;
private List dOCDocumentMessageDetails;
private List iNPPartiesAndInstruction;
private List fTXFreeText;
private List segmentGroup1;
private List segmentGroup2;
private SegmentGroup3 segmentGroup3;
private List segmentGroup4;
private SegmentGroup5 segmentGroup5;
private List segmentGroup6;
private SegmentGroup7 segmentGroup7;
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) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dTMDateTimePeriod.write(nodeWriter, delimiters);
}
if(fCAFinancialChargesAllocation != null) {
nodeWriter.write("FCA");
nodeWriter.write(delimiters.getField());
fCAFinancialChargesAllocation.write(nodeWriter, delimiters);
}
if(dOCDocumentMessageDetails != null && !dOCDocumentMessageDetails.isEmpty()) {
for(DOCDocumentMessageDetails dOCDocumentMessageDetailsInst : dOCDocumentMessageDetails) {
nodeWriter.write("DOC");
nodeWriter.write(delimiters.getField());
dOCDocumentMessageDetailsInst.write(nodeWriter, delimiters);
}
}
if(iNPPartiesAndInstruction != null && !iNPPartiesAndInstruction.isEmpty()) {
for(INPPartiesAndInstruction iNPPartiesAndInstructionInst : iNPPartiesAndInstruction) {
nodeWriter.write("INP");
nodeWriter.write(delimiters.getField());
iNPPartiesAndInstructionInst.write(nodeWriter, delimiters);
}
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup1 != null && !segmentGroup1.isEmpty()) {
for(SegmentGroup1 segmentGroup1Inst : segmentGroup1) {
segmentGroup1Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup2 != null && !segmentGroup2.isEmpty()) {
for(SegmentGroup2 segmentGroup2Inst : segmentGroup2) {
segmentGroup2Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup3 != null) {
segmentGroup3.write(nodeWriter, delimiters);
}
if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
segmentGroup4Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup5 != null) {
segmentGroup5.write(nodeWriter, delimiters);
}
if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
segmentGroup6Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup7 != null) {
segmentGroup7.write(nodeWriter, delimiters);
}
}
public BGMBeginningOfMessage getBGMBeginningOfMessage() {
return bGMBeginningOfMessage;
}
public Colreq setBGMBeginningOfMessage(BGMBeginningOfMessage bGMBeginningOfMessage) {
this.bGMBeginningOfMessage = bGMBeginningOfMessage; return this;
}
public DTMDateTimePeriod getDTMDateTimePeriod() {
return dTMDateTimePeriod;
}
public Colreq setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
this.dTMDateTimePeriod = dTMDateTimePeriod; return this;
}
public FCAFinancialChargesAllocation getFCAFinancialChargesAllocation() {
return fCAFinancialChargesAllocation;
}
public Colreq setFCAFinancialChargesAllocation(FCAFinancialChargesAllocation fCAFinancialChargesAllocation) {
this.fCAFinancialChargesAllocation = fCAFinancialChargesAllocation; return this;
}
public List getDOCDocumentMessageDetails() {
return dOCDocumentMessageDetails;
}
public Colreq setDOCDocumentMessageDetails(List dOCDocumentMessageDetails) {
this.dOCDocumentMessageDetails = dOCDocumentMessageDetails; return this;
}
public List getINPPartiesAndInstruction() {
return iNPPartiesAndInstruction;
}
public Colreq setINPPartiesAndInstruction(List iNPPartiesAndInstruction) {
this.iNPPartiesAndInstruction = iNPPartiesAndInstruction; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public Colreq setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Colreq setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public List getSegmentGroup2() {
return segmentGroup2;
}
public Colreq setSegmentGroup2(List segmentGroup2) {
this.segmentGroup2 = segmentGroup2; return this;
}
public SegmentGroup3 getSegmentGroup3() {
return segmentGroup3;
}
public Colreq setSegmentGroup3(SegmentGroup3 segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public Colreq setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public SegmentGroup5 getSegmentGroup5() {
return segmentGroup5;
}
public Colreq setSegmentGroup5(SegmentGroup5 segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
public List getSegmentGroup6() {
return segmentGroup6;
}
public Colreq setSegmentGroup6(List segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
public SegmentGroup7 getSegmentGroup7() {
return segmentGroup7;
}
public Colreq setSegmentGroup7(SegmentGroup7 segmentGroup7) {
this.segmentGroup7 = segmentGroup7; return this;
}
}