001/*
002// This software is subject to the terms of the Eclipse Public License v1.0
003// Agreement, available at the following URL:
004// http://www.eclipse.org/legal/epl-v10.html.
005// You must accept the terms of that agreement to use this software.
006//
007// Copyright (C) 2008-2009 Pentaho
008// All Rights Reserved.
009*/
010package mondrian.gui.validate;
011
012/**
013 * A generalization of <code>javax.swing.tree.TreePath</code>.
014 *
015 * @author mlowery
016 */
017public interface TreeModelPath {
018    /**
019     * Returns the length of this path.
020     */
021    int getPathCount();
022
023    /**
024     * Returns the component of the path at the given index.
025     */
026    Object getPathComponent(int element);
027
028    /**
029     * Returns true if path has no components.
030     */
031    boolean isEmpty();
032}
033
034// End TreeModelPath.java