1 | //------------------------------------------------------------------------------------------------- |
---|
2 | // Module : $RCSfile: Selection.java,v $ |
---|
3 | // Version : $Revision: 0.0 $ $Author: patrick $ $Date: 19.02.2012 $ |
---|
4 | // Project : TaskTreeCreator |
---|
5 | // Creation : 2012 by patrick |
---|
6 | // Copyright : Patrick Harms, 2012 |
---|
7 | //------------------------------------------------------------------------------------------------- |
---|
8 | package de.ugoe.cs.quest.tasktrees.treeimpl; |
---|
9 | |
---|
10 | import de.ugoe.cs.quest.tasktrees.treeifc.Selection; |
---|
11 | import de.ugoe.cs.quest.tasktrees.treeifc.TaskTreeNode; |
---|
12 | |
---|
13 | //------------------------------------------------------------------------------------------------- |
---|
14 | /** |
---|
15 | * TODO comment |
---|
16 | * |
---|
17 | * @version $Revision: $ $Date: 19.02.2012$ |
---|
18 | * @author 2012, last modified by $Author: patrick$ |
---|
19 | */ |
---|
20 | //------------------------------------------------------------------------------------------------- |
---|
21 | public class SelectionImpl extends TaskTreeNodeImpl implements Selection |
---|
22 | { |
---|
23 | |
---|
24 | //----------------------------------------------------------------------------------------------- |
---|
25 | /** |
---|
26 | * TODO: comment |
---|
27 | * |
---|
28 | * @param name |
---|
29 | */ |
---|
30 | //----------------------------------------------------------------------------------------------- |
---|
31 | SelectionImpl() |
---|
32 | { |
---|
33 | super("Selection"); |
---|
34 | } |
---|
35 | |
---|
36 | //----------------------------------------------------------------------------------------------- |
---|
37 | /* (non-Javadoc) |
---|
38 | * @see java.lang.Object#clone() |
---|
39 | */ |
---|
40 | //----------------------------------------------------------------------------------------------- |
---|
41 | @Override |
---|
42 | public TaskTreeNode clone() |
---|
43 | { |
---|
44 | SelectionImpl clone = new SelectionImpl(); |
---|
45 | clone.setDescription(super.getDescription()); |
---|
46 | |
---|
47 | for (TaskTreeNode child : getChildren()) |
---|
48 | { |
---|
49 | clone.addChild(child); |
---|
50 | } |
---|
51 | |
---|
52 | return clone; |
---|
53 | } |
---|
54 | |
---|
55 | } |
---|