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 a <code>javax.swing.tree.TreeModel</code>. 014 * 015 * @author mlowery 016 */ 017public interface TreeModel { 018 /** 019 * Returns the number of children of <code>parent</code>. 020 */ 021 int getChildCount(Object parent); 022 023 /** 024 * Returns the child at <code>index</code>. 025 */ 026 Object getChild(Object parent, int index); 027 028 /** 029 * Returns the root object of this tree model. 030 */ 031 Object getRoot(); 032} 033 034// End TreeModel.java