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

org.milyn.edi.unedifact.d94b.IFTSTQ.SegmentGroup3 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d94b.IFTSTQ;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d94b.common.ConsignmentInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d94b.common.DateTimePeriod;    
import org.milyn.edi.unedifact.d94b.common.PlaceLocationIdentification;    
import org.milyn.edi.unedifact.d94b.common.Reference;    
import org.milyn.edi.unedifact.d94b.common.DetailsOfTransport;    
import org.milyn.edi.unedifact.d94b.common.EquipmentDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup3 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private ConsignmentInformation consignmentInformation;
    private List dateTimePeriod;
    private List placeLocationIdentification;
    private List reference;
    private List detailsOfTransport;
    private List equipmentDetails;
    private List segmentGroup4;

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

        if(consignmentInformation != null) {
            nodeWriter.write("CNI");
            nodeWriter.write(delimiters.getField());
            consignmentInformation.write(nodeWriter, delimiters);
        }
        if(dateTimePeriod != null && !dateTimePeriod.isEmpty()) {
            for(DateTimePeriod dateTimePeriodInst : dateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(placeLocationIdentification != null && !placeLocationIdentification.isEmpty()) {
            for(PlaceLocationIdentification placeLocationIdentificationInst : placeLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                placeLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
        if(reference != null && !reference.isEmpty()) {
            for(Reference referenceInst : reference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                referenceInst.write(nodeWriter, delimiters);
            }
        }
        if(detailsOfTransport != null && !detailsOfTransport.isEmpty()) {
            for(DetailsOfTransport detailsOfTransportInst : detailsOfTransport) {
                nodeWriter.write("TDT");
                nodeWriter.write(delimiters.getField());
                detailsOfTransportInst.write(nodeWriter, delimiters);
            }
        }
        if(equipmentDetails != null && !equipmentDetails.isEmpty()) {
            for(EquipmentDetails equipmentDetailsInst : equipmentDetails) {
                nodeWriter.write("EQD");
                nodeWriter.write(delimiters.getField());
                equipmentDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
            for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
                segmentGroup4Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public ConsignmentInformation getConsignmentInformation() {
        return consignmentInformation;
    }

    public SegmentGroup3 setConsignmentInformation(ConsignmentInformation consignmentInformation) {
        this.consignmentInformation = consignmentInformation;  return this;
    }

    public List getDateTimePeriod() {
        return dateTimePeriod;
    }

    public SegmentGroup3 setDateTimePeriod(List dateTimePeriod) {
        this.dateTimePeriod = dateTimePeriod;  return this;
    }

    public List getPlaceLocationIdentification() {
        return placeLocationIdentification;
    }

    public SegmentGroup3 setPlaceLocationIdentification(List placeLocationIdentification) {
        this.placeLocationIdentification = placeLocationIdentification;  return this;
    }

    public List getReference() {
        return reference;
    }

    public SegmentGroup3 setReference(List reference) {
        this.reference = reference;  return this;
    }

    public List getDetailsOfTransport() {
        return detailsOfTransport;
    }

    public SegmentGroup3 setDetailsOfTransport(List detailsOfTransport) {
        this.detailsOfTransport = detailsOfTransport;  return this;
    }

    public List getEquipmentDetails() {
        return equipmentDetails;
    }

    public SegmentGroup3 setEquipmentDetails(List equipmentDetails) {
        this.equipmentDetails = equipmentDetails;  return this;
    }

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

    public SegmentGroup3 setSegmentGroup4(List segmentGroup4) {
        this.segmentGroup4 = segmentGroup4;  return this;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy