org.milyn.edi.unedifact.d09b.MEDRUC.SegmentGroup19 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d09b.MEDRUC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d09b.common.TMDTransportMovementDetails;
import org.milyn.edi.unedifact.d09b.common.SEQSequenceDetails;
import org.milyn.edi.unedifact.d09b.common.GEIProcessingInformation;
import java.util.List;
import org.milyn.edi.unedifact.d09b.common.FTXFreeText;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup19 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TMDTransportMovementDetails tMDTransportMovementDetails;
private SEQSequenceDetails sEQSequenceDetails;
private GEIProcessingInformation gEIProcessingInformation;
private List fTXFreeText;
private List segmentGroup20;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(tMDTransportMovementDetails != null) {
nodeWriter.write("TMD");
nodeWriter.write(delimiters.getField());
tMDTransportMovementDetails.write(nodeWriter, delimiters);
}
if(sEQSequenceDetails != null) {
nodeWriter.write("SEQ");
nodeWriter.write(delimiters.getField());
sEQSequenceDetails.write(nodeWriter, delimiters);
}
if(gEIProcessingInformation != null) {
nodeWriter.write("GEI");
nodeWriter.write(delimiters.getField());
gEIProcessingInformation.write(nodeWriter, delimiters);
}
if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
nodeWriter.write("FTX");
nodeWriter.write(delimiters.getField());
fTXFreeTextInst.write(nodeWriter, delimiters);
}
}
if(segmentGroup20 != null && !segmentGroup20.isEmpty()) {
for(SegmentGroup20 segmentGroup20Inst : segmentGroup20) {
segmentGroup20Inst.write(nodeWriter, delimiters);
}
}
}
public TMDTransportMovementDetails getTMDTransportMovementDetails() {
return tMDTransportMovementDetails;
}
public SegmentGroup19 setTMDTransportMovementDetails(TMDTransportMovementDetails tMDTransportMovementDetails) {
this.tMDTransportMovementDetails = tMDTransportMovementDetails; return this;
}
public SEQSequenceDetails getSEQSequenceDetails() {
return sEQSequenceDetails;
}
public SegmentGroup19 setSEQSequenceDetails(SEQSequenceDetails sEQSequenceDetails) {
this.sEQSequenceDetails = sEQSequenceDetails; return this;
}
public GEIProcessingInformation getGEIProcessingInformation() {
return gEIProcessingInformation;
}
public SegmentGroup19 setGEIProcessingInformation(GEIProcessingInformation gEIProcessingInformation) {
this.gEIProcessingInformation = gEIProcessingInformation; return this;
}
public List getFTXFreeText() {
return fTXFreeText;
}
public SegmentGroup19 setFTXFreeText(List fTXFreeText) {
this.fTXFreeText = fTXFreeText; return this;
}
public List getSegmentGroup20() {
return segmentGroup20;
}
public SegmentGroup19 setSegmentGroup20(List segmentGroup20) {
this.segmentGroup20 = segmentGroup20; return this;
}
}