/*
 * TreeWrapper.java
 *
 * Created on June 1, 2006, 10:17 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package usda.weru.util.diff.table;

import usda.weru.util.diff.DiffNode;

/**
 *
 * @author Joseph Levin
 */
public class TreeWrapper {   
    private String c_text;
    private int c_index;
    private int c_depth;
    private boolean c_hasChildren;
    /** Creates a new instance of TreeWrapper */


    public TreeWrapper(int index, DiffNode node) {
        c_index = index;
        c_text = node.getText();
        c_hasChildren = node.getChildCount() > 0;
        c_depth = node.getDepth();
    }

    public String getText(){
        return c_text;
    }
    
    public int getIndex(){
        return c_index;
    }
    
    public boolean hasChildren(){
        return c_hasChildren;
    }
    
    public int getDepth(){
        return c_depth;
    }

}
