org.milyn.edi.unedifact.d97a.MOVINS.SegmentGroup10 Maven / Gradle / Ivy
The newest version!
/**
* This class was generated by Smooks EJC (http://www.smooks.org).
*/
package org.milyn.edi.unedifact.d97a.MOVINS;
import java.io.Serializable;
import org.milyn.smooks.edi.EDIWritable;
import org.milyn.edi.unedifact.d97a.common.GIDGoodsItemDetails;
import org.milyn.edi.unedifact.d97a.common.GDSNatureOfCargo;
import java.io.Writer;
import org.milyn.edisax.model.internal.Delimiters;
import java.io.IOException;
public class SegmentGroup10 implements Serializable, EDIWritable {
private static final long serialVersionUID = 1L;
private GIDGoodsItemDetails gIDGoodsItemDetails;
private GDSNatureOfCargo gDSNatureOfCargo;
public void write(Writer writer, Delimiters delimiters) throws IOException {
Writer nodeWriter = writer;
if(gIDGoodsItemDetails != null) {
nodeWriter.write("GID");
nodeWriter.write(delimiters.getField());
gIDGoodsItemDetails.write(nodeWriter, delimiters);
}
if(gDSNatureOfCargo != null) {
nodeWriter.write("GDS");
nodeWriter.write(delimiters.getField());
gDSNatureOfCargo.write(nodeWriter, delimiters);
}
}
public GIDGoodsItemDetails getGIDGoodsItemDetails() {
return gIDGoodsItemDetails;
}
public SegmentGroup10 setGIDGoodsItemDetails(GIDGoodsItemDetails gIDGoodsItemDetails) {
this.gIDGoodsItemDetails = gIDGoodsItemDetails; return this;
}
public GDSNatureOfCargo getGDSNatureOfCargo() {
return gDSNatureOfCargo;
}
public SegmentGroup10 setGDSNatureOfCargo(GDSNatureOfCargo gDSNatureOfCargo) {
this.gDSNatureOfCargo = gDSNatureOfCargo; return this;
}
}