org.milyn.edi.unedifact.d06b.CUSDEC.SegmentGroup4 Maven / Gradle / Ivy
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d06b.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d06b.common.TDTTransportInformation;
import org.milyn.edi.unedifact.d06b.common.TPLTransportPlacement;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup4 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private TDTTransportInformation tDTTransportInformation;
private TPLTransportPlacement tPLTransportPlacement;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(tDTTransportInformation != null) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
tDTTransportInformation.write(nodeWriter, delimiters);
}
if(tPLTransportPlacement != null) {
nodeWriter.write("TPL");
nodeWriter.write(delimiters.getField());
tPLTransportPlacement.write(nodeWriter, delimiters);
}
}
public TDTTransportInformation getTDTTransportInformation() {
return tDTTransportInformation;
}
public SegmentGroup4 setTDTTransportInformation(TDTTransportInformation tDTTransportInformation) {
this.tDTTransportInformation = tDTTransportInformation; return this;
}
public TPLTransportPlacement getTPLTransportPlacement() {
return tPLTransportPlacement;
}
public SegmentGroup4 setTPLTransportPlacement(TPLTransportPlacement tPLTransportPlacement) {
this.tPLTransportPlacement = tPLTransportPlacement; return this;
}
}