KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > emf > edit > tree > TreeNode


1 /**
2  * <copyright>
3  *
4  * Copyright (c) 2002-2004 IBM Corporation and others.
5  * All rights reserved. This program and the accompanying materials
6  * are made available under the terms of the Eclipse Public License v1.0
7  * which accompanies this distribution, and is available at
8  * http://www.eclipse.org/legal/epl-v10.html
9  *
10  * Contributors:
11  * IBM - Initial API and implementation
12  *
13  * </copyright>
14  *
15  * $Id: TreeNode.java,v 1.3 2005/06/08 06:17:06 nickb Exp $
16  */

17 package org.eclipse.emf.edit.tree;
18
19
20 import org.eclipse.emf.common.util.EList;
21 import org.eclipse.emf.ecore.EObject;
22
23
24 /**
25  * <!-- begin-user-doc -->
26  * A representation of the model object '<em><b>Node</b></em>'.
27  * <!-- end-user-doc -->
28  *
29  * <p>
30  * The following features are supported:
31  * <ul>
32  * <li>{@link org.eclipse.emf.edit.tree.TreeNode#getParent <em>Parent</em>}</li>
33  * <li>{@link org.eclipse.emf.edit.tree.TreeNode#getChildren <em>Children</em>}</li>
34  * <li>{@link org.eclipse.emf.edit.tree.TreeNode#getData <em>Data</em>}</li>
35  * </ul>
36  * </p>
37  *
38  * @see org.eclipse.emf.edit.tree.TreePackage#getTreeNode()
39  * @model
40  * @generated
41  */

42 public interface TreeNode extends EObject
43 {
44   /**
45    * Returns the value of the '<em><b>Parent</b></em>' container reference.
46    * It is bidirectional and its opposite is '{@link org.eclipse.emf.edit.tree.TreeNode#getChildren <em>Children</em>}'.
47    * <!-- begin-user-doc -->
48    * <p>
49    * If the meaning of the '<em>Parent</em>' reference isn't clear,
50    * there really should be more of a description here...
51    * </p>
52    * <!-- end-user-doc -->
53    * @return the value of the '<em>Parent</em>' container reference.
54    * @see #setParent(TreeNode)
55    * @see org.eclipse.emf.edit.tree.TreePackage#getTreeNode_Parent()
56    * @see org.eclipse.emf.edit.tree.TreeNode#getChildren
57    * @model opposite="children"
58    * @generated
59    */

60   TreeNode getParent();
61
62   /**
63    * Sets the value of the '{@link org.eclipse.emf.edit.tree.TreeNode#getParent <em>Parent</em>}' container reference.
64    * <!-- begin-user-doc -->
65    * <!-- end-user-doc -->
66    * @param value the new value of the '<em>Parent</em>' container reference.
67    * @see #getParent()
68    * @generated
69    */

70   void setParent(TreeNode value);
71
72   /**
73    * Returns the value of the '<em><b>Children</b></em>' containment reference list.
74    * The list contents are of type {@link org.eclipse.emf.edit.tree.TreeNode}.
75    * It is bidirectional and its opposite is '{@link org.eclipse.emf.edit.tree.TreeNode#getParent <em>Parent</em>}'.
76    * <!-- begin-user-doc -->
77    * <p>
78    * If the meaning of the '<em>Children</em>' reference list isn't clear,
79    * there really should be more of a description here...
80    * </p>
81    * <!-- end-user-doc -->
82    * @return the value of the '<em>Children</em>' containment reference list.
83    * @see org.eclipse.emf.edit.tree.TreePackage#getTreeNode_Children()
84    * @see org.eclipse.emf.edit.tree.TreeNode#getParent
85    * @model type="org.eclipse.emf.edit.tree.TreeNode" opposite="parent" containment="true"
86    * @generated
87    */

88   EList getChildren();
89
90   /**
91    * Returns the value of the '<em><b>Data</b></em>' reference.
92    * <!-- begin-user-doc -->
93    * <p>
94    * If the meaning of the '<em>Data</em>' reference isn't clear,
95    * there really should be more of a description here...
96    * </p>
97    * <!-- end-user-doc -->
98    * @return the value of the '<em>Data</em>' reference.
99    * @see #setData(EObject)
100    * @see org.eclipse.emf.edit.tree.TreePackage#getTreeNode_Data()
101    * @model required="true"
102    * @generated
103    */

104   EObject getData();
105
106   /**
107    * Sets the value of the '{@link org.eclipse.emf.edit.tree.TreeNode#getData <em>Data</em>}' reference.
108    * <!-- begin-user-doc -->
109    * <!-- end-user-doc -->
110    * @param value the new value of the '<em>Data</em>' reference.
111    * @see #getData()
112    * @generated
113    */

114   void setData(EObject value);
115
116 } // TreeNode
117
Popular Tags