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

org.milyn.edi.unedifact.d16a.GOVCBR.SegmentGroup240 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.NADNameAndAddress;    
import org.milyn.edi.unedifact.d16a.common.IFDInformationDetail;    
import java.util.List;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup240 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private NADNameAndAddress nADNameAndAddress;
    private IFDInformationDetail iFDInformationDetail;
    private List segmentGroup241;

    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(iFDInformationDetail != null) {
            nodeWriter.write("IFD");
            nodeWriter.write(delimiters.getField());
            iFDInformationDetail.write(nodeWriter, delimiters);
        }
        if(segmentGroup241 != null && !segmentGroup241.isEmpty()) {
            for(SegmentGroup241 segmentGroup241Inst : segmentGroup241) {
                segmentGroup241Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public NADNameAndAddress getNADNameAndAddress() {
        return nADNameAndAddress;
    }

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

    public IFDInformationDetail getIFDInformationDetail() {
        return iFDInformationDetail;
    }

    public SegmentGroup240 setIFDInformationDetail(IFDInformationDetail iFDInformationDetail) {
        this.iFDInformationDetail = iFDInformationDetail;  return this;
    }

    public List getSegmentGroup241() {
        return segmentGroup241;
    }

    public SegmentGroup240 setSegmentGroup241(List segmentGroup241) {
        this.segmentGroup241 = segmentGroup241;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy