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

org.milyn.edi.unedifact.d99a.SLSRPT.SegmentGroup7 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99a.common.LINLineItem;    
import java.util.List;    
import org.milyn.edi.unedifact.d99a.common.PIAAdditionalProductId;    
import org.milyn.edi.unedifact.d99a.common.IMDItemDescription;    
import org.milyn.edi.unedifact.d99a.common.DTMDateTimePeriod;    
import org.milyn.edi.unedifact.d99a.common.PACPackage;    
import org.milyn.edi.unedifact.d99a.common.RFFReference;    
import org.milyn.edi.unedifact.d99a.common.DOCDocumentMessageDetails;    
import org.milyn.edi.unedifact.d99a.common.ALIAdditionalInformation;    
import org.milyn.edi.unedifact.d99a.common.MOAMonetaryAmount;    
import org.milyn.edi.unedifact.d99a.common.PRIPriceDetails;    
import org.milyn.edi.unedifact.d99a.common.GINGoodsIdentityNumber;    
import org.milyn.edi.unedifact.d99a.common.PAIPaymentInstructions;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup7 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private LINLineItem lINLineItem;
    private List pIAAdditionalProductId;
    private List iMDItemDescription;
    private List dTMDateTimePeriod;
    private List pACPackage;
    private List rFFReference;
    private List dOCDocumentMessageDetails;
    private List aLIAdditionalInformation;
    private List mOAMonetaryAmount;
    private List pRIPriceDetails;
    private List gINGoodsIdentityNumber;
    private List pAIPaymentInstructions;
    private List segmentGroup8;

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

        if(lINLineItem != null) {
            nodeWriter.write("LIN");
            nodeWriter.write(delimiters.getField());
            lINLineItem.write(nodeWriter, delimiters);
        }
        if(pIAAdditionalProductId != null && !pIAAdditionalProductId.isEmpty()) {
            for(PIAAdditionalProductId pIAAdditionalProductIdInst : pIAAdditionalProductId) {
                nodeWriter.write("PIA");
                nodeWriter.write(delimiters.getField());
                pIAAdditionalProductIdInst.write(nodeWriter, delimiters);
            }
        }
        if(iMDItemDescription != null && !iMDItemDescription.isEmpty()) {
            for(IMDItemDescription iMDItemDescriptionInst : iMDItemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                iMDItemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(pACPackage != null && !pACPackage.isEmpty()) {
            for(PACPackage pACPackageInst : pACPackage) {
                nodeWriter.write("PAC");
                nodeWriter.write(delimiters.getField());
                pACPackageInst.write(nodeWriter, delimiters);
            }
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(dOCDocumentMessageDetails != null && !dOCDocumentMessageDetails.isEmpty()) {
            for(DOCDocumentMessageDetails dOCDocumentMessageDetailsInst : dOCDocumentMessageDetails) {
                nodeWriter.write("DOC");
                nodeWriter.write(delimiters.getField());
                dOCDocumentMessageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(aLIAdditionalInformation != null && !aLIAdditionalInformation.isEmpty()) {
            for(ALIAdditionalInformation aLIAdditionalInformationInst : aLIAdditionalInformation) {
                nodeWriter.write("ALI");
                nodeWriter.write(delimiters.getField());
                aLIAdditionalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(mOAMonetaryAmount != null && !mOAMonetaryAmount.isEmpty()) {
            for(MOAMonetaryAmount mOAMonetaryAmountInst : mOAMonetaryAmount) {
                nodeWriter.write("MOA");
                nodeWriter.write(delimiters.getField());
                mOAMonetaryAmountInst.write(nodeWriter, delimiters);
            }
        }
        if(pRIPriceDetails != null && !pRIPriceDetails.isEmpty()) {
            for(PRIPriceDetails pRIPriceDetailsInst : pRIPriceDetails) {
                nodeWriter.write("PRI");
                nodeWriter.write(delimiters.getField());
                pRIPriceDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(gINGoodsIdentityNumber != null && !gINGoodsIdentityNumber.isEmpty()) {
            for(GINGoodsIdentityNumber gINGoodsIdentityNumberInst : gINGoodsIdentityNumber) {
                nodeWriter.write("GIN");
                nodeWriter.write(delimiters.getField());
                gINGoodsIdentityNumberInst.write(nodeWriter, delimiters);
            }
        }
        if(pAIPaymentInstructions != null && !pAIPaymentInstructions.isEmpty()) {
            for(PAIPaymentInstructions pAIPaymentInstructionsInst : pAIPaymentInstructions) {
                nodeWriter.write("PAI");
                nodeWriter.write(delimiters.getField());
                pAIPaymentInstructionsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
            for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
                segmentGroup8Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public LINLineItem getLINLineItem() {
        return lINLineItem;
    }

    public SegmentGroup7 setLINLineItem(LINLineItem lINLineItem) {
        this.lINLineItem = lINLineItem;  return this;
    }

    public List getPIAAdditionalProductId() {
        return pIAAdditionalProductId;
    }

    public SegmentGroup7 setPIAAdditionalProductId(List pIAAdditionalProductId) {
        this.pIAAdditionalProductId = pIAAdditionalProductId;  return this;
    }

    public List getIMDItemDescription() {
        return iMDItemDescription;
    }

    public SegmentGroup7 setIMDItemDescription(List iMDItemDescription) {
        this.iMDItemDescription = iMDItemDescription;  return this;
    }

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getPACPackage() {
        return pACPackage;
    }

    public SegmentGroup7 setPACPackage(List pACPackage) {
        this.pACPackage = pACPackage;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

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

    public List getDOCDocumentMessageDetails() {
        return dOCDocumentMessageDetails;
    }

    public SegmentGroup7 setDOCDocumentMessageDetails(List dOCDocumentMessageDetails) {
        this.dOCDocumentMessageDetails = dOCDocumentMessageDetails;  return this;
    }

    public List getALIAdditionalInformation() {
        return aLIAdditionalInformation;
    }

    public SegmentGroup7 setALIAdditionalInformation(List aLIAdditionalInformation) {
        this.aLIAdditionalInformation = aLIAdditionalInformation;  return this;
    }

    public List getMOAMonetaryAmount() {
        return mOAMonetaryAmount;
    }

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

    public List getPRIPriceDetails() {
        return pRIPriceDetails;
    }

    public SegmentGroup7 setPRIPriceDetails(List pRIPriceDetails) {
        this.pRIPriceDetails = pRIPriceDetails;  return this;
    }

    public List getGINGoodsIdentityNumber() {
        return gINGoodsIdentityNumber;
    }

    public SegmentGroup7 setGINGoodsIdentityNumber(List gINGoodsIdentityNumber) {
        this.gINGoodsIdentityNumber = gINGoodsIdentityNumber;  return this;
    }

    public List getPAIPaymentInstructions() {
        return pAIPaymentInstructions;
    }

    public SegmentGroup7 setPAIPaymentInstructions(List pAIPaymentInstructions) {
        this.pAIPaymentInstructions = pAIPaymentInstructions;  return this;
    }

    public List getSegmentGroup8() {
        return segmentGroup8;
    }

    public SegmentGroup7 setSegmentGroup8(List segmentGroup8) {
        this.segmentGroup8 = segmentGroup8;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy