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

org.milyn.edi.unedifact.d09b.PRICAT.SegmentGroup56 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.PRICAT;

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

public class SegmentGroup56 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private HYNHierarchyInformation hYNHierarchyInformation;
    private List pIAAdditionalProductId;
    private List qTYQuantity;
    private List fTXFreeText;
    private List segmentGroup57;
    private List segmentGroup58;
    private List segmentGroup59;

    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(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(fTXFreeText != null && !fTXFreeText.isEmpty()) {
            for(FTXFreeText fTXFreeTextInst : fTXFreeText) {
                nodeWriter.write("FTX");
                nodeWriter.write(delimiters.getField());
                fTXFreeTextInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup57 != null && !segmentGroup57.isEmpty()) {
            for(SegmentGroup57 segmentGroup57Inst : segmentGroup57) {
                segmentGroup57Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup58 != null && !segmentGroup58.isEmpty()) {
            for(SegmentGroup58 segmentGroup58Inst : segmentGroup58) {
                segmentGroup58Inst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup59 != null && !segmentGroup59.isEmpty()) {
            for(SegmentGroup59 segmentGroup59Inst : segmentGroup59) {
                segmentGroup59Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public HYNHierarchyInformation getHYNHierarchyInformation() {
        return hYNHierarchyInformation;
    }

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

    public List getPIAAdditionalProductId() {
        return pIAAdditionalProductId;
    }

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

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public List getFTXFreeText() {
        return fTXFreeText;
    }

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

    public List getSegmentGroup57() {
        return segmentGroup57;
    }

    public SegmentGroup56 setSegmentGroup57(List segmentGroup57) {
        this.segmentGroup57 = segmentGroup57;  return this;
    }

    public List getSegmentGroup58() {
        return segmentGroup58;
    }

    public SegmentGroup56 setSegmentGroup58(List segmentGroup58) {
        this.segmentGroup58 = segmentGroup58;  return this;
    }

    public List getSegmentGroup59() {
        return segmentGroup59;
    }

    public SegmentGroup56 setSegmentGroup59(List segmentGroup59) {
        this.segmentGroup59 = segmentGroup59;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy