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

org.milyn.edi.unedifact.d95b.CONPVA.SegmentGroup24 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.d95b.CONPVA;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d95b.common.IMDItemDescription;    
import java.util.List;    
import org.milyn.edi.unedifact.d95b.common.RFFReference;    
import org.milyn.edi.unedifact.d95b.common.GISGeneralIndicator;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup24 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private IMDItemDescription iMDItemDescription;
    private List rFFReference;
    private List gISGeneralIndicator;

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

        if(iMDItemDescription != null) {
            nodeWriter.write("IMD");
            nodeWriter.write(delimiters.getField());
            iMDItemDescription.write(nodeWriter, delimiters);
        }
        if(rFFReference != null && !rFFReference.isEmpty()) {
            for(RFFReference rFFReferenceInst : rFFReference) {
                nodeWriter.write("RFF");
                nodeWriter.write(delimiters.getField());
                rFFReferenceInst.write(nodeWriter, delimiters);
            }
        }
        if(gISGeneralIndicator != null && !gISGeneralIndicator.isEmpty()) {
            for(GISGeneralIndicator gISGeneralIndicatorInst : gISGeneralIndicator) {
                nodeWriter.write("GIS");
                nodeWriter.write(delimiters.getField());
                gISGeneralIndicatorInst.write(nodeWriter, delimiters);
            }
        }
    }

    public IMDItemDescription getIMDItemDescription() {
        return iMDItemDescription;
    }

    public SegmentGroup24 setIMDItemDescription(IMDItemDescription iMDItemDescription) {
        this.iMDItemDescription = iMDItemDescription;  return this;
    }

    public List getRFFReference() {
        return rFFReference;
    }

    public SegmentGroup24 setRFFReference(List rFFReference) {
        this.rFFReference = rFFReference;  return this;
    }

    public List getGISGeneralIndicator() {
        return gISGeneralIndicator;
    }

    public SegmentGroup24 setGISGeneralIndicator(List gISGeneralIndicator) {
        this.gISGeneralIndicator = gISGeneralIndicator;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy