001    package mondrian.gui.validate;
002    
003    /**
004     * A generalization of <code>javax.swing.tree.TreePath</code>.
005     *
006     * @author mlowery
007     */
008    public interface TreeModelPath {
009        /**
010         * Returns the length of this path.
011         */
012        int getPathCount();
013    
014        /**
015         * Returns the component of the path at the given index.
016         */
017        Object getPathComponent(int element);
018    
019        /**
020         * Returns true if path has no components.
021         */
022        boolean isEmpty();
023    }
024    
025    // End TreeModelPath.java