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

org.milyn.edi.unedifact.d11b.GOVCBR.SegmentGroup48 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 SegmentGroup48 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private NADNameAndAddress nADNameAndAddress;
    private IFDInformationDetail iFDInformationDetail;
    private List segmentGroup49;

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

    public NADNameAndAddress getNADNameAndAddress() {
        return nADNameAndAddress;
    }

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

    public IFDInformationDetail getIFDInformationDetail() {
        return iFDInformationDetail;
    }

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

    public List getSegmentGroup49() {
        return segmentGroup49;
    }

    public SegmentGroup48 setSegmentGroup49(List segmentGroup49) {
        this.segmentGroup49 = segmentGroup49;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy