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

org.milyn.edi.unedifact.d11b.GOVCBR.SegmentGroup118 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.d11b.GOVCBR;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d11b.common.NADNameAndAddress;    
import org.milyn.edi.unedifact.d11b.common.IFDInformationDetail;    
import java.util.List;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup118 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private NADNameAndAddress nADNameAndAddress;
    private IFDInformationDetail iFDInformationDetail;
    private List segmentGroup119;

    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(segmentGroup119 != null && !segmentGroup119.isEmpty()) {
            for(SegmentGroup119 segmentGroup119Inst : segmentGroup119) {
                segmentGroup119Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public NADNameAndAddress getNADNameAndAddress() {
        return nADNameAndAddress;
    }

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

    public IFDInformationDetail getIFDInformationDetail() {
        return iFDInformationDetail;
    }

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

    public List getSegmentGroup119() {
        return segmentGroup119;
    }

    public SegmentGroup118 setSegmentGroup119(List segmentGroup119) {
        this.segmentGroup119 = segmentGroup119;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy