org.virtuslab.edi.unedifact.d96a.CUSDEC.SegmentGroup4 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.virtuslab.edi.unedifact.d96a.CUSDEC;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.virtuslab.edi.unedifact.d96a.common.TDTDetailsOfTransport;
import org.virtuslab.edi.unedifact.d96a.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 TDTDetailsOfTransport tDTDetailsOfTransport;
private TPLTransportPlacement tPLTransportPlacement;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(tDTDetailsOfTransport != null) {
nodeWriter.write("TDT");
nodeWriter.write(delimiters.getField());
tDTDetailsOfTransport.write(nodeWriter, delimiters);
}
if(tPLTransportPlacement != null) {
nodeWriter.write("TPL");
nodeWriter.write(delimiters.getField());
tPLTransportPlacement.write(nodeWriter, delimiters);
}
}
public TDTDetailsOfTransport getTDTDetailsOfTransport() {
return tDTDetailsOfTransport;
}
public SegmentGroup4 setTDTDetailsOfTransport(TDTDetailsOfTransport tDTDetailsOfTransport) {
this.tDTDetailsOfTransport = tDTDetailsOfTransport; return this;
}
public TPLTransportPlacement getTPLTransportPlacement() {
return tPLTransportPlacement;
}
public SegmentGroup4 setTPLTransportPlacement(TPLTransportPlacement tPLTransportPlacement) {
this.tPLTransportPlacement = tPLTransportPlacement; return this;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy