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

org.milyn.edi.unedifact.d06b.STLRPT.SegmentGroup11 Maven / Gradle / Ivy

/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d06b.STLRPT;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.RelatedIdentificationNumbers;    
import java.util.List;    
import org.milyn.edi.unedifact.d06b.common.ItemDescription;    
import org.milyn.edi.unedifact.d06b.common.GoodsIdentityNumber;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup11 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private RelatedIdentificationNumbers relatedIdentificationNumbers;
    private List itemDescription;
    private List goodsIdentityNumber;
    private List segmentGroup12;

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

        if(relatedIdentificationNumbers != null) {
            nodeWriter.write("GIR");
            nodeWriter.write(delimiters.getField());
            relatedIdentificationNumbers.write(nodeWriter, delimiters);
        }
        if(itemDescription != null && !itemDescription.isEmpty()) {
            for(ItemDescription itemDescriptionInst : itemDescription) {
                nodeWriter.write("IMD");
                nodeWriter.write(delimiters.getField());
                itemDescriptionInst.write(nodeWriter, delimiters);
            }
        }
        if(goodsIdentityNumber != null && !goodsIdentityNumber.isEmpty()) {
            for(GoodsIdentityNumber goodsIdentityNumberInst : goodsIdentityNumber) {
                nodeWriter.write("GIN");
                nodeWriter.write(delimiters.getField());
                goodsIdentityNumberInst.write(nodeWriter, delimiters);
            }
        }
        if(segmentGroup12 != null && !segmentGroup12.isEmpty()) {
            for(SegmentGroup12 segmentGroup12Inst : segmentGroup12) {
                segmentGroup12Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public RelatedIdentificationNumbers getRelatedIdentificationNumbers() {
        return relatedIdentificationNumbers;
    }

    public SegmentGroup11 setRelatedIdentificationNumbers(RelatedIdentificationNumbers relatedIdentificationNumbers) {
        this.relatedIdentificationNumbers = relatedIdentificationNumbers;  return this;
    }

    public List getItemDescription() {
        return itemDescription;
    }

    public SegmentGroup11 setItemDescription(List itemDescription) {
        this.itemDescription = itemDescription;  return this;
    }

    public List getGoodsIdentityNumber() {
        return goodsIdentityNumber;
    }

    public SegmentGroup11 setGoodsIdentityNumber(List goodsIdentityNumber) {
        this.goodsIdentityNumber = goodsIdentityNumber;  return this;
    }

    public List getSegmentGroup12() {
        return segmentGroup12;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy