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

org.milyn.edi.unedifact.d05a.PROSRV.SegmentGroup14 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.d05a.PROSRV;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.HYNHierarchyInformation;    
import java.util.List;    
import org.milyn.edi.unedifact.d05a.common.PIAAdditionalProductId;    
import org.milyn.edi.unedifact.d05a.common.IMDItemDescription;    
import org.milyn.edi.unedifact.d05a.common.QTYQuantity;    
import org.milyn.edi.unedifact.d05a.common.ALIAdditionalInformation;    
import org.milyn.edi.unedifact.d05a.common.PRIPriceDetails;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup14 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private HYNHierarchyInformation hYNHierarchyInformation;
    private List pIAAdditionalProductId;
    private List iMDItemDescription;
    private List qTYQuantity;
    private List aLIAdditionalInformation;
    private List pRIPriceDetails;
    private List segmentGroup15;
    private List segmentGroup16;
    private List segmentGroup18;

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

        if(hYNHierarchyInformation != null) {
            nodeWriter.write("HYN");
            nodeWriter.write(delimiters.getField());
            hYNHierarchyInformation.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(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(aLIAdditionalInformation != null && !aLIAdditionalInformation.isEmpty()) {
            for(ALIAdditionalInformation aLIAdditionalInformationInst : aLIAdditionalInformation) {
                nodeWriter.write("ALI");
                nodeWriter.write(delimiters.getField());
                aLIAdditionalInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(pRIPriceDetails != null && !pRIPriceDetails.isEmpty()) {
            for(PRIPriceDetails pRIPriceDetailsInst : pRIPriceDetails) {
                nodeWriter.write("PRI");
                nodeWriter.write(delimiters.getField());
                pRIPriceDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup15 != null && !segmentGroup15.isEmpty()) {
            for(SegmentGroup15 segmentGroup15Inst : segmentGroup15) {
                segmentGroup15Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup16 != null && !segmentGroup16.isEmpty()) {
            for(SegmentGroup16 segmentGroup16Inst : segmentGroup16) {
                segmentGroup16Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup18 != null && !segmentGroup18.isEmpty()) {
            for(SegmentGroup18 segmentGroup18Inst : segmentGroup18) {
                segmentGroup18Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public HYNHierarchyInformation getHYNHierarchyInformation() {
        return hYNHierarchyInformation;
    }

    public SegmentGroup14 setHYNHierarchyInformation(HYNHierarchyInformation hYNHierarchyInformation) {
        this.hYNHierarchyInformation = hYNHierarchyInformation;  return this;
    }

    public List getPIAAdditionalProductId() {
        return pIAAdditionalProductId;
    }

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

    public List getIMDItemDescription() {
        return iMDItemDescription;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public List getALIAdditionalInformation() {
        return aLIAdditionalInformation;
    }

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

    public List getPRIPriceDetails() {
        return pRIPriceDetails;
    }

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

    public List getSegmentGroup15() {
        return segmentGroup15;
    }

    public SegmentGroup14 setSegmentGroup15(List segmentGroup15) {
        this.segmentGroup15 = segmentGroup15;  return this;
    }

    public List getSegmentGroup16() {
        return segmentGroup16;
    }

    public SegmentGroup14 setSegmentGroup16(List segmentGroup16) {
        this.segmentGroup16 = segmentGroup16;  return this;
    }

    public List getSegmentGroup18() {
        return segmentGroup18;
    }

    public SegmentGroup14 setSegmentGroup18(List segmentGroup18) {
        this.segmentGroup18 = segmentGroup18;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy