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

org.milyn.edi.unedifact.d16a.GOVCBR.SegmentGroup246 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d16a.common.CODComponentDetails;    
import java.util.List;    
import org.milyn.edi.unedifact.d16a.common.QTYQuantity;    
import org.milyn.edi.unedifact.d16a.common.PCDPercentageDetails;    
import org.milyn.edi.unedifact.d16a.common.GEIProcessingInformation;    
import org.milyn.edi.unedifact.d16a.common.LOCPlaceLocationIdentification;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup246 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private CODComponentDetails cODComponentDetails;
    private List qTYQuantity;
    private List pCDPercentageDetails;
    private List gEIProcessingInformation;
    private List lOCPlaceLocationIdentification;

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

        if(cODComponentDetails != null) {
            nodeWriter.write("COD");
            nodeWriter.write(delimiters.getField());
            cODComponentDetails.write(nodeWriter, delimiters);
        }
        if(qTYQuantity != null && !qTYQuantity.isEmpty()) {
            for(QTYQuantity qTYQuantityInst : qTYQuantity) {
                nodeWriter.write("QTY");
                nodeWriter.write(delimiters.getField());
                qTYQuantityInst.write(nodeWriter, delimiters);
            }
        }
        if(pCDPercentageDetails != null && !pCDPercentageDetails.isEmpty()) {
            for(PCDPercentageDetails pCDPercentageDetailsInst : pCDPercentageDetails) {
                nodeWriter.write("PCD");
                nodeWriter.write(delimiters.getField());
                pCDPercentageDetailsInst.write(nodeWriter, delimiters);
            }
        }
        if(gEIProcessingInformation != null && !gEIProcessingInformation.isEmpty()) {
            for(GEIProcessingInformation gEIProcessingInformationInst : gEIProcessingInformation) {
                nodeWriter.write("GEI");
                nodeWriter.write(delimiters.getField());
                gEIProcessingInformationInst.write(nodeWriter, delimiters);
            }
        }
        if(lOCPlaceLocationIdentification != null && !lOCPlaceLocationIdentification.isEmpty()) {
            for(LOCPlaceLocationIdentification lOCPlaceLocationIdentificationInst : lOCPlaceLocationIdentification) {
                nodeWriter.write("LOC");
                nodeWriter.write(delimiters.getField());
                lOCPlaceLocationIdentificationInst.write(nodeWriter, delimiters);
            }
        }
    }

    public CODComponentDetails getCODComponentDetails() {
        return cODComponentDetails;
    }

    public SegmentGroup246 setCODComponentDetails(CODComponentDetails cODComponentDetails) {
        this.cODComponentDetails = cODComponentDetails;  return this;
    }

    public List getQTYQuantity() {
        return qTYQuantity;
    }

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

    public List getPCDPercentageDetails() {
        return pCDPercentageDetails;
    }

    public SegmentGroup246 setPCDPercentageDetails(List pCDPercentageDetails) {
        this.pCDPercentageDetails = pCDPercentageDetails;  return this;
    }

    public List getGEIProcessingInformation() {
        return gEIProcessingInformation;
    }

    public SegmentGroup246 setGEIProcessingInformation(List gEIProcessingInformation) {
        this.gEIProcessingInformation = gEIProcessingInformation;  return this;
    }

    public List getLOCPlaceLocationIdentification() {
        return lOCPlaceLocationIdentification;
    }

    public SegmentGroup246 setLOCPlaceLocationIdentification(List lOCPlaceLocationIdentification) {
        this.lOCPlaceLocationIdentification = lOCPlaceLocationIdentification;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy