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

org.xmind.core.ITopicPath Maven / Gradle / Ivy

Go to download

Plugin that manages JBehave stories storage in XMind mindmap file, which allows design jBehave tests right after the brainstorm

The newest version!
/* ******************************************************************************
 * Copyright (c) 2006-2012 XMind Ltd. and others.
 * 
 * This file is a part of XMind 3. XMind releases 3 and
 * above are dual-licensed under the Eclipse Public License (EPL),
 * which is available at http://www.eclipse.org/legal/epl-v10.html
 * and the GNU Lesser General Public License (LGPL), 
 * which is available at http://www.gnu.org/licenses/lgpl.html
 * See http://www.xmind.net/license.html for details.
 * 
 * Contributors:
 *     XMind Ltd. - initial API and implementation
 *******************************************************************************/
package org.xmind.core;

import java.util.List;

/**
 * @author briansun
 * 
 */
public interface ITopicPath {

    /**
     * Returns the elements along the path from the owned workbook to the topic.
     * The order is:
     * 

*

[workbook, sheet, root-topic, ..., topic]
*

* * @return Elements along this path. */ List toList(); /** * Returns all topics along the path from the root-topic to the topic. The * order is: *

*

[root-topic, ..., parent, this topic]
*

* * @return All topics along this path. */ List toTopicList(); /** * Returns the owned workbook of all topics along this path. * * @return The owned workbook of all topics along this path. */ IWorkbook getWorkbook(); /** * Returns the owned sheet of all topics along this path. * * @return The owned sheet of all topics along this path. */ ISheet getSheet(); /** * Returns the root topic in this path. * * @return The root topic in this path. */ ITopic getRootTopic(); /** * Determines whether the specified topic is along this path (including this * topic itself). * * @param topic * The topic to determine. * @return true if the specified topic is along this path; * false otherwise. */ boolean contains(ITopic topic); /** * Determines whether the specified topic is one of the ancestors of this * topic (NOT including this topic itself). * * @param ancestor * The topic to determine. * @return true if the specified topic is one of the * ancestors of this topic; false otherwise. */ boolean isDescendentOf(ITopic ancestor); }