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

org.milyn.edi.unedifact.d05a.IFTDGN.SegmentGroup10 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.IFTDGN;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d05a.common.NADNameAndAddress;    
import org.milyn.edi.unedifact.d05a.common.RFFReference;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup10 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private NADNameAndAddress nADNameAndAddress;
    private SegmentGroup11 segmentGroup11;
    private RFFReference rFFReference;

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

        if(nADNameAndAddress != null) {
            nodeWriter.write("NAD");
            nodeWriter.write(delimiters.getField());
            nADNameAndAddress.write(nodeWriter, delimiters);
        }
        if(segmentGroup11 != null) {
            segmentGroup11.write(nodeWriter, delimiters);
        }
        if(rFFReference != null) {
            nodeWriter.write("RFF");
            nodeWriter.write(delimiters.getField());
            rFFReference.write(nodeWriter, delimiters);
        }
    }

    public NADNameAndAddress getNADNameAndAddress() {
        return nADNameAndAddress;
    }

    public SegmentGroup10 setNADNameAndAddress(NADNameAndAddress nADNameAndAddress) {
        this.nADNameAndAddress = nADNameAndAddress;  return this;
    }

    public SegmentGroup11 getSegmentGroup11() {
        return segmentGroup11;
    }

    public SegmentGroup10 setSegmentGroup11(SegmentGroup11 segmentGroup11) {
        this.segmentGroup11 = segmentGroup11;  return this;
    }

    public RFFReference getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup10 setRFFReference(RFFReference rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy