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

org.virtuslab.edi.unedifact.d96a.IFCSUM.SegmentGroup46 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d96a.common.TPLTransportPlacement;    
import java.util.List;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup46 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private TPLTransportPlacement tPLTransportPlacement;
    private List segmentGroup47;

    public void write(Writer writer, Delimiters delimiters) throws IOException {
        
        Writer nodeWriter = writer;

        if(tPLTransportPlacement != null) {
            nodeWriter.write("TPL");
            nodeWriter.write(delimiters.getField());
            tPLTransportPlacement.write(nodeWriter, delimiters);
        }
        if(segmentGroup47 != null && !segmentGroup47.isEmpty()) {
            for(SegmentGroup47 segmentGroup47Inst : segmentGroup47) {
                segmentGroup47Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public TPLTransportPlacement getTPLTransportPlacement() {
        return tPLTransportPlacement;
    }

    public SegmentGroup46 setTPLTransportPlacement(TPLTransportPlacement tPLTransportPlacement) {
        this.tPLTransportPlacement = tPLTransportPlacement;  return this;
    }

    public List getSegmentGroup47() {
        return segmentGroup47;
    }

    public SegmentGroup46 setSegmentGroup47(List segmentGroup47) {
        this.segmentGroup47 = segmentGroup47;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy