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

org.virtuslab.edi.unedifact.d99a.DELJIT.SegmentGroup7 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.virtuslab.edi.unedifact.d99a.DELJIT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.virtuslab.edi.unedifact.d99a.common.LINLineItem;    
import java.util.List;    
import org.virtuslab.edi.unedifact.d99a.common.PIAAdditionalProductId;    
import org.virtuslab.edi.unedifact.d99a.common.IMDItemDescription;    
import org.virtuslab.edi.unedifact.d99a.common.ALIAdditionalInformation;    
import org.virtuslab.edi.unedifact.d99a.common.GIRRelatedIdentificationNumbers;    
import org.virtuslab.edi.unedifact.d99a.common.FTXFreeText;    
import org.virtuslab.edi.unedifact.d99a.common.PACPackage;    
import org.virtuslab.edi.unedifact.d99a.common.DTMDateTimePeriod;    
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 aLIAdditionalInformation;
    private List gIRRelatedIdentificationNumbers;
    private List fTXFreeText;
    private List pACPackage;
    private List dTMDateTimePeriod;
    private List segmentGroup8;
    private List segmentGroup9;
    private List segmentGroup10;
    private List segmentGroup12;

    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(aLIAdditionalInformation != null && !aLIAdditionalInformation.isEmpty()) {
            for(ALIAdditionalInformation aLIAdditionalInformationInst : aLIAdditionalInformation) {
                nodeWriter.write("ALI");
                nodeWriter.write(delimiters.getField());
                aLIAdditionalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(gIRRelatedIdentificationNumbers != null && !gIRRelatedIdentificationNumbers.isEmpty()) {
            for(GIRRelatedIdentificationNumbers gIRRelatedIdentificationNumbersInst : gIRRelatedIdentificationNumbers) {
                nodeWriter.write("GIR");
                nodeWriter.write(delimiters.getField());
                gIRRelatedIdentificationNumbersInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(pACPackage != null && !pACPackage.isEmpty()) {
            for(PACPackage pACPackageInst : pACPackage) {
                nodeWriter.write("PAC");
                nodeWriter.write(delimiters.getField());
                pACPackageInst.write(nodeWriter, delimiters);
            }
        }
        if(dTMDateTimePeriod != null && !dTMDateTimePeriod.isEmpty()) {
            for(DTMDateTimePeriod dTMDateTimePeriodInst : dTMDateTimePeriod) {
                nodeWriter.write("DTM");
                nodeWriter.write(delimiters.getField());
                dTMDateTimePeriodInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup8 != null && !segmentGroup8.isEmpty()) {
            for(SegmentGroup8 segmentGroup8Inst : segmentGroup8) {
                segmentGroup8Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup9 != null && !segmentGroup9.isEmpty()) {
            for(SegmentGroup9 segmentGroup9Inst : segmentGroup9) {
                segmentGroup9Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup10 != null && !segmentGroup10.isEmpty()) {
            for(SegmentGroup10 segmentGroup10Inst : segmentGroup10) {
                segmentGroup10Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
            for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
                segmentGroup12Inst.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 getALIAdditionalInformation() {
        return aLIAdditionalInformation;
    }

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

    public List getGIRRelatedIdentificationNumbers() {
        return gIRRelatedIdentificationNumbers;
    }

    public SegmentGroup7 setGIRRelatedIdentificationNumbers(List gIRRelatedIdentificationNumbers) {
        this.gIRRelatedIdentificationNumbers = gIRRelatedIdentificationNumbers;  return this;
    }

    public List getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup7 setFTXFreeText(List fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getPACPackage() {
        return pACPackage;
    }

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

    public List getDTMDateTimePeriod() {
        return dTMDateTimePeriod;
    }

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

    public List getSegmentGroup8() {
        return segmentGroup8;
    }

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

    public List getSegmentGroup9() {
        return segmentGroup9;
    }

    public SegmentGroup7 setSegmentGroup9(List segmentGroup9) {
        this.segmentGroup9 = segmentGroup9;  return this;
    }

    public List getSegmentGroup10() {
        return segmentGroup10;
    }

    public SegmentGroup7 setSegmentGroup10(List segmentGroup10) {
        this.segmentGroup10 = segmentGroup10;  return this;
    }

    public List getSegmentGroup12() {
        return segmentGroup12;
    }

    public SegmentGroup7 setSegmentGroup12(List segmentGroup12) {
        this.segmentGroup12 = segmentGroup12;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy