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

org.milyn.edi.unedifact.d99b.SSIMOD.SegmentGroup2 Maven / Gradle / Ivy

The newest version!
/**
 * This class was generated by Smooks EJC (http://www.smooks.org).
 */
package org.milyn.edi.unedifact.d99b.SSIMOD;

import java.io.Serializable;    
import org.milyn.smooks.edi.EDIWritable;    
import org.milyn.edi.unedifact.d99b.common.INDIndexDetails;    
import org.milyn.edi.unedifact.d99b.common.FTXFreeText;    
import java.util.List;    
import java.io.Writer;    
import org.milyn.edisax.model.internal.Delimiters;    
import java.io.IOException;    

public class SegmentGroup2 implements Serializable, EDIWritable {

    private static final long serialVersionUID = 1L;

    private INDIndexDetails iNDIndexDetails;
    private FTXFreeText fTXFreeText;
    private List segmentGroup3;

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

        if(iNDIndexDetails != null) {
            nodeWriter.write("IND");
            nodeWriter.write(delimiters.getField());
            iNDIndexDetails.write(nodeWriter, delimiters);
        }
        if(fTXFreeText != null) {
            nodeWriter.write("FTX");
            nodeWriter.write(delimiters.getField());
            fTXFreeText.write(nodeWriter, delimiters);
        }
        if(segmentGroup3 != null && !segmentGroup3.isEmpty()) {
            for(SegmentGroup3 segmentGroup3Inst : segmentGroup3) {
                segmentGroup3Inst.write(nodeWriter, delimiters);
            }
        }
    }

    public INDIndexDetails getINDIndexDetails() {
        return iNDIndexDetails;
    }

    public SegmentGroup2 setINDIndexDetails(INDIndexDetails iNDIndexDetails) {
        this.iNDIndexDetails = iNDIndexDetails;  return this;
    }

    public FTXFreeText getFTXFreeText() {
        return fTXFreeText;
    }

    public SegmentGroup2 setFTXFreeText(FTXFreeText fTXFreeText) {
        this.fTXFreeText = fTXFreeText;  return this;
    }

    public List getSegmentGroup3() {
        return segmentGroup3;
    }

    public SegmentGroup2 setSegmentGroup3(List segmentGroup3) {
        this.segmentGroup3 = segmentGroup3;  return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy