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

org.milyn.edi.unedifact.d99a.IFCSUM.SegmentGroup31 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99a.common.TDTDetailsOfTransport;    
import java.util.List;    
import org.milyn.edi.unedifact.d99a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d99a.common.TSRTransportServiceRequirements;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup31 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private TDTDetailsOfTransport tDTDetailsOfTransport;
    private List dTMDateTimePeriod;
    private List tSRTransportServiceRequirements;
    private List segmentGroup32;
    private List segmentGroup33;

    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(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(tSRTransportServiceRequirements != null && !tSRTransportServiceRequirements.isEmpty()) {
            for(TSRTransportServiceRequirements tSRTransportServiceRequirementsInst : tSRTransportServiceRequirements) {
                nodeWriter.write("TSR");
                nodeWriter.write(delimiters.getField());
                tSRTransportServiceRequirementsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup32 != null && !segmentGroup32.isEmpty()) {
            for(SegmentGroup32 segmentGroup32Inst : segmentGroup32) {
                segmentGroup32Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup33 != null && !segmentGroup33.isEmpty()) {
            for(SegmentGroup33 segmentGroup33Inst : segmentGroup33) {
                segmentGroup33Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public TDTDetailsOfTransport getTDTDetailsOfTransport() {
        return tDTDetailsOfTransport;
    }

    public SegmentGroup31 setTDTDetailsOfTransport(TDTDetailsOfTransport tDTDetailsOfTransport) {
        this.tDTDetailsOfTransport = tDTDetailsOfTransport;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup31 setDTMDateTimePeriod(List dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public List getTSRTransportServiceRequirements() {
        return tSRTransportServiceRequirements;
    }

    public SegmentGroup31 setTSRTransportServiceRequirements(List tSRTransportServiceRequirements) {
        this.tSRTransportServiceRequirements = tSRTransportServiceRequirements;  return this;
    }

    public List getSegmentGroup32() {
        return segmentGroup32;
    }

    public SegmentGroup31 setSegmentGroup32(List segmentGroup32) {
        this.segmentGroup32 = segmentGroup32;  return this;
    }

    public List getSegmentGroup33() {
        return segmentGroup33;
    }

    public SegmentGroup31 setSegmentGroup33(List segmentGroup33) {
        this.segmentGroup33 = segmentGroup33;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy