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

org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup160 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.d09b.GOVCBR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d09b.common.DOCDocumentMessageDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d09b.common.RFFReference;    
import org.milyn.edi.unedifact.d09b.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d09b.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d09b.common.ALIAdditionalInformation;    
import org.milyn.edi.unedifact.d09b.common.QTYQuantity;    
import org.milyn.edi.unedifact.d09b.common.TSRTransportServiceRequirements;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup160 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private DOCDocumentMessageDetails dOCDocumentMessageDetails;
    private List rFFReference;
    private List dTMDateTimePeriod;
    private List mOAMonetaryAmount;
    private ALIAdditionalInformation aLIAdditionalInformation;
    private List qTYQuantity;
    private List tSRTransportServiceRequirements;
    private List segmentGroup161;
    private List segmentGroup163;
    private List segmentGroup164;

    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(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(aLIAdditionalInformation != null) {
            nodeWriter.write("ALI");
            nodeWriter.write(delimiters.getField());
            aLIAdditionalInformation.write(nodeWriter, delimiters);
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(tSRTransportServiceRequirements != null && !tSRTransportServiceRequirements.isEmpty()) {
            for(TSRTransportServiceRequirements tSRTransportServiceRequirementsInst : tSRTransportServiceRequirements) {
                nodeWriter.write("TSR");
                nodeWriter.write(delimiters.getField());
                tSRTransportServiceRequirementsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup161 != null && !segmentGroup161.isEmpty()) {
            for(SegmentGroup161 segmentGroup161Inst : segmentGroup161) {
                segmentGroup161Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup163 != null && !segmentGroup163.isEmpty()) {
            for(SegmentGroup163 segmentGroup163Inst : segmentGroup163) {
                segmentGroup163Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup164 != null && !segmentGroup164.isEmpty()) {
            for(SegmentGroup164 segmentGroup164Inst : segmentGroup164) {
                segmentGroup164Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public DOCDocumentMessageDetails getDOCDocumentMessageDetails() {
        return dOCDocumentMessageDetails;
    }

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

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

    public SegmentGroup160 setMOAMonetaryAmount(List mOAMonetaryAmount) {
        this.mOAMonetaryAmount = mOAMonetaryAmount;  return this;
    }

    public ALIAdditionalInformation getALIAdditionalInformation() {
        return aLIAdditionalInformation;
    }

    public SegmentGroup160 setALIAdditionalInformation(ALIAdditionalInformation aLIAdditionalInformation) {
        this.aLIAdditionalInformation = aLIAdditionalInformation;  return this;
    }

    public List getQTYQuantity() {
        return qTYQuantity;
    }

    public SegmentGroup160 setQTYQuantity(List qTYQuantity) {
        this.qTYQuantity = qTYQuantity;  return this;
    }

    public List getTSRTransportServiceRequirements() {
        return tSRTransportServiceRequirements;
    }

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

    public List getSegmentGroup161() {
        return segmentGroup161;
    }

    public SegmentGroup160 setSegmentGroup161(List segmentGroup161) {
        this.segmentGroup161 = segmentGroup161;  return this;
    }

    public List getSegmentGroup163() {
        return segmentGroup163;
    }

    public SegmentGroup160 setSegmentGroup163(List segmentGroup163) {
        this.segmentGroup163 = segmentGroup163;  return this;
    }

    public List getSegmentGroup164() {
        return segmentGroup164;
    }

    public SegmentGroup160 setSegmentGroup164(List segmentGroup164) {
        this.segmentGroup164 = segmentGroup164;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy