Commit | Line | Data |
---|---|---|
5d10d135 ASL |
1 | /******************************************************************************* |
2 | * Copyright (c) 2009, 2010 Ericsson | |
3 | * | |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Alvaro Sanchez-Leon (alvsan09@gmail.com) - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | package org.eclipse.linuxtools.lttng.model; | |
13 | ||
14 | ||
15 | public class LTTngTreeNode extends | |
16 | LTTngTreeNodeGeneric<LTTngTreeNode> { | |
17 | ||
18 | // ======================================================================== | |
19 | // Data | |
20 | // ======================================================================== | |
21 | ||
22 | ||
23 | // ======================================================================== | |
24 | // Constructors | |
25 | // ======================================================================== | |
26 | /** | |
27 | * @param id | |
28 | * @param parent | |
29 | * @param name | |
30 | */ | |
31 | public LTTngTreeNode(Long id, LTTngTreeNode parent, String name) { | |
32 | super(id, parent, name, null); | |
33 | } | |
34 | ||
35 | /** | |
36 | * @param id | |
37 | * @param parent | |
38 | * @param name | |
39 | * @param value | |
40 | */ | |
41 | public LTTngTreeNode(Long id, LTTngTreeNode parent, String name, | |
42 | Object value) { | |
43 | super(id, parent, name, value); | |
44 | } | |
45 | ||
46 | /** | |
47 | * When parent is not know just yet | |
48 | * | |
49 | * @param id | |
50 | * @param name | |
51 | * @param value | |
52 | */ | |
53 | public LTTngTreeNode(Long id, String name, Object value) { | |
54 | this(id, null, name, value); | |
55 | } | |
56 | ||
57 | /* | |
58 | * (non-Javadoc) | |
59 | * | |
60 | * @see | |
61 | * org.eclipse.linuxtools.lttng.model.LTTngTreeNodeGeneric#getChildren() | |
62 | */ | |
9aae0442 | 63 | @Override |
5d10d135 ASL |
64 | public LTTngTreeNode[] getChildren() { |
65 | return childrenToArray(fchildren.values(), this.getClass()); | |
66 | } | |
67 | ||
68 | } |