org.milyn.edi.unedifact.d99b.IFTFCC.Iftfcc Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d99b.IFTFCC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.smooks.edi.EDIMessage;
import org.milyn.edi.unedifact.d99b.common.BeginningOfMessage;
import org.milyn.edi.unedifact.d99b.common.ContactInformation;
import java.util.List;
import org.milyn.edi.unedifact.d99b.common.CommunicationContact;
import org.milyn.edi.unedifact.d99b.common.FreeText;
import org.milyn.edi.unedifact.d99b.common.DateTimePeriod;
import org.milyn.edi.unedifact.d99b.common.TransportServiceRequirements;
import org.milyn.edi.unedifact.d99b.common.DocumentMessageDetails;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
@EDIMessage
public class Iftfcc implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private BeginningOfMessage beginningOfMessage;
private ContactInformation contactInformation;
private List communicationContact;
private List freeText;
private List dateTimePeriod;
private List transportServiceRequirements;
private List documentMessageDetails;
private List segmentGroup1;
private List segmentGroup2;
private List segmentGroup3;
private List segmentGroup4;
private List segmentGroup5;
private List segmentGroup6;
private List segmentGroup11;
private List segmentGroup14;
private List segmentGroup15;
private List segmentGroup16;
private List segmentGroup17;
private List segmentGroup19;
private List segmentGroup24;
private List segmentGroup28;
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(contactInformation != null) {
nodeWriter.write("CTA");
nodeWriter.write(delimiters.getField());
contactInformation.write(nodeWriter, delimiters);
}
if(communicationContact != null && !communicationContact.isEmpty()) {
for(CommunicationContact communicationContactInst : communicationContact) {
nodeWriter.write("COM");
nodeWriter.write(delimiters.getField());
communicationContactInst.write(nodeWriter, delimiters);
}
}
if(freeText != null && !freeText.isEmpty()) {
for(FreeText freeTextInst : freeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
freeTextInst.write(nodeWriter, delimiters);
}
}
if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
nodeWriter.write("DTM");
nodeWriter.write(delimiters.getField());
dateTimePeriodInst.write(nodeWriter, delimiters);
}
}
if(transportServiceRequirements != null && !transportServiceRequirements.isEmpty()) {
for(TransportServiceRequirements transportServiceRequirementsInst : transportServiceRequirements) {
nodeWriter.write("TSR");
nodeWriter.write(delimiters.getField());
transportServiceRequirementsInst.write(nodeWriter, delimiters);
}
}
if(documentMessageDetails != null && !documentMessageDetails.isEmpty()) {
for(DocumentMessageDetails documentMessageDetailsInst : documentMessageDetails) {
nodeWriter.write("DOC");
nodeWriter.write(delimiters.getField());
documentMessageDetailsInst.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.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(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
segmentGroup6Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup11 != null && !segmentGroup11.isEmpty()) {
for(SegmentGroup11 segmentGroup11Inst : segmentGroup11) {
segmentGroup11Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup14 != null && !segmentGroup14.isEmpty()) {
for(SegmentGroup14 segmentGroup14Inst : segmentGroup14) {
segmentGroup14Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
segmentGroup15Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
segmentGroup16Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup17 != null && !segmentGroup17.isEmpty()) {
for(SegmentGroup17 segmentGroup17Inst : segmentGroup17) {
segmentGroup17Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup19 != null && !segmentGroup19.isEmpty()) {
for(SegmentGroup19 segmentGroup19Inst : segmentGroup19) {
segmentGroup19Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup24 != null && !segmentGroup24.isEmpty()) {
for(SegmentGroup24 segmentGroup24Inst : segmentGroup24) {
segmentGroup24Inst.write(nodeWriter, delimiters);
}
}
if(segmentGroup28 != null && !segmentGroup28.isEmpty()) {
for(SegmentGroup28 segmentGroup28Inst : segmentGroup28) {
segmentGroup28Inst.write(nodeWriter, delimiters);
}
}
}
public BeginningOfMessage getBeginningOfMessage() {
return beginningOfMessage;
}
public Iftfcc setBeginningOfMessage(BeginningOfMessage beginningOfMessage) {
this.beginningOfMessage = beginningOfMessage; return this;
}
public ContactInformation getContactInformation() {
return contactInformation;
}
public Iftfcc setContactInformation(ContactInformation contactInformation) {
this.contactInformation = contactInformation; return this;
}
public List getCommunicationContact() {
return communicationContact;
}
public Iftfcc setCommunicationContact(List communicationContact) {
this.communicationContact = communicationContact; return this;
}
public List getFreeText() {
return freeText;
}
public Iftfcc setFreeText(List freeText) {
this.freeText = freeText; return this;
}
public List getDateTimePeriod() {
return dateTimePeriod;
}
public Iftfcc setDateTimePeriod(List dateTimePeriod) {
this.dateTimePeriod = dateTimePeriod; return this;
}
public List getTransportServiceRequirements() {
return transportServiceRequirements;
}
public Iftfcc setTransportServiceRequirements(List transportServiceRequirements) {
this.transportServiceRequirements = transportServiceRequirements; return this;
}
public List getDocumentMessageDetails() {
return documentMessageDetails;
}
public Iftfcc setDocumentMessageDetails(List documentMessageDetails) {
this.documentMessageDetails = documentMessageDetails; return this;
}
public List getSegmentGroup1() {
return segmentGroup1;
}
public Iftfcc setSegmentGroup1(List segmentGroup1) {
this.segmentGroup1 = segmentGroup1; return this;
}
public List getSegmentGroup2() {
return segmentGroup2;
}
public Iftfcc setSegmentGroup2(List segmentGroup2) {
this.segmentGroup2 = segmentGroup2; return this;
}
public List getSegmentGroup3() {
return segmentGroup3;
}
public Iftfcc setSegmentGroup3(List segmentGroup3) {
this.segmentGroup3 = segmentGroup3; return this;
}
public List getSegmentGroup4() {
return segmentGroup4;
}
public Iftfcc setSegmentGroup4(List segmentGroup4) {
this.segmentGroup4 = segmentGroup4; return this;
}
public List getSegmentGroup5() {
return segmentGroup5;
}
public Iftfcc setSegmentGroup5(List segmentGroup5) {
this.segmentGroup5 = segmentGroup5; return this;
}
public List getSegmentGroup6() {
return segmentGroup6;
}
public Iftfcc setSegmentGroup6(List segmentGroup6) {
this.segmentGroup6 = segmentGroup6; return this;
}
public List getSegmentGroup11() {
return segmentGroup11;
}
public Iftfcc setSegmentGroup11(List segmentGroup11) {
this.segmentGroup11 = segmentGroup11; return this;
}
public List getSegmentGroup14() {
return segmentGroup14;
}
public Iftfcc setSegmentGroup14(List segmentGroup14) {
this.segmentGroup14 = segmentGroup14; return this;
}
public List getSegmentGroup15() {
return segmentGroup15;
}
public Iftfcc setSegmentGroup15(List segmentGroup15) {
this.segmentGroup15 = segmentGroup15; return this;
}
public List getSegmentGroup16() {
return segmentGroup16;
}
public Iftfcc setSegmentGroup16(List segmentGroup16) {
this.segmentGroup16 = segmentGroup16; return this;
}
public List getSegmentGroup17() {
return segmentGroup17;
}
public Iftfcc setSegmentGroup17(List segmentGroup17) {
this.segmentGroup17 = segmentGroup17; return this;
}
public List getSegmentGroup19() {
return segmentGroup19;
}
public Iftfcc setSegmentGroup19(List segmentGroup19) {
this.segmentGroup19 = segmentGroup19; return this;
}
public List getSegmentGroup24() {
return segmentGroup24;
}
public Iftfcc setSegmentGroup24(List segmentGroup24) {
this.segmentGroup24 = segmentGroup24; return this;
}
public List getSegmentGroup28() {
return segmentGroup28;
}
public Iftfcc setSegmentGroup28(List segmentGroup28) {
this.segmentGroup28 = segmentGroup28; return this;
}
}