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

org.virtuslab.edi.unedifact.d99a.OSTRPT.SegmentGroup3 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d99a.common.DOCDocumentMessageDetails;    
import java.util.List;    
import org.virtuslab.edi.unedifact.d99a.common.DTMDateTimePeriod;    
import org.virtuslab.edi.unedifact.d99a.common.CNTControlTotal;    
import org.virtuslab.edi.unedifact.d99a.common.RFFReference;    
import org.virtuslab.edi.unedifact.d99a.common.TODTermsOfDeliveryOrTransport;    
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 DOCDocumentMessageDetails dOCDocumentMessageDetails;
    private List dTMDateTimePeriod;
    private List cNTControlTotal;
    private List rFFReference;
    private List tODTermsOfDeliveryOrTransport;
    private List segmentGroup4;
    private List segmentGroup6;

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

        if(dOCDocumentMessageDetails != null) {
            nodeWriter.write("DOC");
            nodeWriter.write(delimiters.getField());
            dOCDocumentMessageDetails.write(nodeWriter, delimiters);
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(cNTControlTotal != null && !cNTControlTotal.isEmpty()) {
            for(CNTControlTotal cNTControlTotalInst : cNTControlTotal) {
                nodeWriter.write("CNT");
                nodeWriter.write(delimiters.getField());
                cNTControlTotalInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(tODTermsOfDeliveryOrTransport != null && !tODTermsOfDeliveryOrTransport.isEmpty()) {
            for(TODTermsOfDeliveryOrTransport tODTermsOfDeliveryOrTransportInst : tODTermsOfDeliveryOrTransport) {
                nodeWriter.write("TOD");
                nodeWriter.write(delimiters.getField());
                tODTermsOfDeliveryOrTransportInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup4 != null && !segmentGroup4.isEmpty()) {
            for(SegmentGroup4 segmentGroup4Inst : segmentGroup4) {
                segmentGroup4Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup6 != null && !segmentGroup6.isEmpty()) {
            for(SegmentGroup6 segmentGroup6Inst : segmentGroup6) {
                segmentGroup6Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public DOCDocumentMessageDetails getDOCDocumentMessageDetails() {
        return dOCDocumentMessageDetails;
    }

    public SegmentGroup3 setDOCDocumentMessageDetails(DOCDocumentMessageDetails dOCDocumentMessageDetails) {
        this.dOCDocumentMessageDetails = dOCDocumentMessageDetails;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getCNTControlTotal() {
        return cNTControlTotal;
    }

    public SegmentGroup3 setCNTControlTotal(List cNTControlTotal) {
        this.cNTControlTotal = cNTControlTotal;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup3 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public List getTODTermsOfDeliveryOrTransport() {
        return tODTermsOfDeliveryOrTransport;
    }

    public SegmentGroup3 setTODTermsOfDeliveryOrTransport(List tODTermsOfDeliveryOrTransport) {
        this.tODTermsOfDeliveryOrTransport = tODTermsOfDeliveryOrTransport;  return this;
    }

    public List getSegmentGroup4() {
        return segmentGroup4;
    }

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

    public List getSegmentGroup6() {
        return segmentGroup6;
    }

    public SegmentGroup3 setSegmentGroup6(List segmentGroup6) {
        this.segmentGroup6 = segmentGroup6;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy