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

org.milyn.edi.unedifact.d06b.CONWQD.SegmentGroup9 Maven / Gradle / Ivy

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

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d06b.common.Quantity;    
import org.milyn.edi.unedifact.d06b.common.ProcessingInformation;    
import org.milyn.edi.unedifact.d06b.common.Reference;    
import org.milyn.edi.unedifact.d06b.common.FreeText;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup9 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private Quantity quantity;
    private ProcessingInformation processingInformation;
    private Reference reference;
    private FreeText freeText;

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

        if(quantity != null) {
            nodeWriter.write("QTY");
            nodeWriter.write(delimiters.getField());
            quantity.write(nodeWriter, delimiters);
        }
        if(processingInformation != null) {
            nodeWriter.write("GEI");
            nodeWriter.write(delimiters.getField());
            processingInformation.write(nodeWriter, delimiters);
        }
        if(reference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            reference.write(nodeWriter, delimiters);
        }
        if(freeText != null) {
            nodeWriter.write("FTX");
            nodeWriter.write(delimiters.getField());
            freeText.write(nodeWriter, delimiters);
        }
    }

    public Quantity getQuantity() {
        return quantity;
    }

    public SegmentGroup9 setQuantity(Quantity quantity) {
        this.quantity = quantity;  return this;
    }

    public ProcessingInformation getProcessingInformation() {
        return processingInformation;
    }

    public SegmentGroup9 setProcessingInformation(ProcessingInformation processingInformation) {
        this.processingInformation = processingInformation;  return this;
    }

    public Reference getReference() {
        return reference;
    }

    public SegmentGroup9 setReference(Reference reference) {
        this.reference = reference;  return this;
    }

    public FreeText getFreeText() {
        return freeText;
    }

    public SegmentGroup9 setFreeText(FreeText freeText) {
        this.freeText = freeText;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy