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

org.milyn.edi.unedifact.d95b.IFTIAG.SegmentGroup1 Maven / Gradle / Ivy

There is a newer version: 1.7.1.0
Show newest version
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d95b.IFTIAG;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d95b.common.TDTDetailsOfTransport;    
import org.milyn.edi.unedifact.d95b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d95b.common.CTAContactInformation;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup1 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private TDTDetailsOfTransport tDTDetailsOfTransport;
    private DTMDateTimePeriod dTMDateTimePeriod;
    private CTAContactInformation cTAContactInformation;

    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) {
            nodeWriter.write("DTM");
            nodeWriter.write(delimiters.getField());
            dTMDateTimePeriod.write(nodeWriter, delimiters);
        }
        if(cTAContactInformation != null) {
            nodeWriter.write("CTA");
            nodeWriter.write(delimiters.getField());
            cTAContactInformation.write(nodeWriter, delimiters);
        }
    }

    public TDTDetailsOfTransport getTDTDetailsOfTransport() {
        return tDTDetailsOfTransport;
    }

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

    public DTMDateTimePeriod getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

    public SegmentGroup1 setDTMDateTimePeriod(DTMDateTimePeriod dTMDateTimePeriod) {
        this.dTMDateTimePeriod = dTMDateTimePeriod;  return this;
    }

    public CTAContactInformation getCTAContactInformation() {
        return cTAContactInformation;
    }

    public SegmentGroup1 setCTAContactInformation(CTAContactInformation cTAContactInformation) {
        this.cTAContactInformation = cTAContactInformation;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy