All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.milyn.edi.unedifact.d99b.MOVINS.SegmentGroup10 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d99b.MOVINS;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.GIDGoodsItemDetails;    
import org.milyn.edi.unedifact.d99b.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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy