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

org.milyn.edi.unedifact.d16a.BAPLIE.SegmentGroup8 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d16a.common.LOCPlaceLocationIdentification;    
import org.milyn.edi.unedifact.d16a.common.TSRTransportServiceRequirements;    
import org.milyn.edi.unedifact.d16a.common.TDTTransportInformation;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup8 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LOCPlaceLocationIdentification lOCPlaceLocationIdentification;
    private TSRTransportServiceRequirements tSRTransportServiceRequirements;
    private TDTTransportInformation tDTTransportInformation;

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

        if(lOCPlaceLocationIdentification != null) {
            nodeWriter.write("LOC");
            nodeWriter.write(delimiters.getField());
            lOCPlaceLocationIdentification.write(nodeWriter, delimiters);
        }
        if(tSRTransportServiceRequirements != null) {
            nodeWriter.write("TSR");
            nodeWriter.write(delimiters.getField());
            tSRTransportServiceRequirements.write(nodeWriter, delimiters);
        }
        if(tDTTransportInformation != null) {
            nodeWriter.write("TDT");
            nodeWriter.write(delimiters.getField());
            tDTTransportInformation.write(nodeWriter, delimiters);
        }
    }

    public LOCPlaceLocationIdentification getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup8 setLOCPlaceLocationIdentification(LOCPlaceLocationIdentification lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }

    public TSRTransportServiceRequirements getTSRTransportServiceRequirements() {
        return tSRTransportServiceRequirements;
    }

    public SegmentGroup8 setTSRTransportServiceRequirements(TSRTransportServiceRequirements tSRTransportServiceRequirements) {
        this.tSRTransportServiceRequirements = tSRTransportServiceRequirements;  return this;
    }

    public TDTTransportInformation getTDTTransportInformation() {
        return tDTTransportInformation;
    }

    public SegmentGroup8 setTDTTransportInformation(TDTTransportInformation tDTTransportInformation) {
        this.tDTTransportInformation = tDTTransportInformation;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy