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

org.milyn.edi.unedifact.d09b.GOVCBR.SegmentGroup72 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 SegmentGroup72 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 segmentGroup73;
    private List segmentGroup75;

    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(segmentGroup73 != null && !segmentGroup73.isEmpty()) {
            for(SegmentGroup73 segmentGroup73Inst : segmentGroup73) {
                segmentGroup73Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup75 != null && !segmentGroup75.isEmpty()) {
            for(SegmentGroup75 segmentGroup75Inst : segmentGroup75) {
                segmentGroup75Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public DOCDocumentMessageDetails getDOCDocumentMessageDetails() {
        return dOCDocumentMessageDetails;
    }

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

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public ALIAdditionalInformation getALIAdditionalInformation() {
        return aLIAdditionalInformation;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public List getTSRTransportServiceRequirements() {
        return tSRTransportServiceRequirements;
    }

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

    public List getSegmentGroup73() {
        return segmentGroup73;
    }

    public SegmentGroup72 setSegmentGroup73(List segmentGroup73) {
        this.segmentGroup73 = segmentGroup73;  return this;
    }

    public List getSegmentGroup75() {
        return segmentGroup75;
    }

    public SegmentGroup72 setSegmentGroup75(List segmentGroup75) {
        this.segmentGroup75 = segmentGroup75;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy