source: trunk/autoquest-core-usability-evaluation/src/main/java/de/ugoe/cs/autoquest/usability/util/NullNode.java @ 1152

Last change on this file since 1152 was 1152, checked in by pharms, 11 years ago
  • complete refactoring of task tree model with a separation of task models and task instances
  • Property svn:mime-type set to text/plain
File size: 1.9 KB
Line 
1//   Copyright 2012 Georg-August-Universität Göttingen, Germany
2//
3//   Licensed under the Apache License, Version 2.0 (the "License");
4//   you may not use this file except in compliance with the License.
5//   You may obtain a copy of the License at
6//
7//       http://www.apache.org/licenses/LICENSE-2.0
8//
9//   Unless required by applicable law or agreed to in writing, software
10//   distributed under the License is distributed on an "AS IS" BASIS,
11//   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12//   See the License for the specific language governing permissions and
13//   limitations under the License.
14
15package de.ugoe.cs.autoquest.usability.util;
16
17import java.util.Collections;
18import java.util.List;
19
20import org.apache.commons.lang.StringUtils;
21
22import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask;
23
24/**
25 * <p>
26 * TODO comment
27 * </p>
28 *
29 * @author Alexander Deicke
30 */
31public class NullNode implements ITask {
32
33    /* (non-Javadoc)
34     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode#getName()
35     */
36    public String getName() {
37        return StringUtils.EMPTY;
38    }
39
40    /* (non-Javadoc)
41     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode#getDescription()
42     */
43    public String getDescription() {
44        return StringUtils.EMPTY;
45    }
46
47    /* (non-Javadoc)
48     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode#equals(de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode)
49     */
50    public boolean equals(ITask task) {
51        return false;
52    }
53   
54    /* (non-Javadoc)
55     * @see java.lang.Object#clone()
56     */
57    @Override
58    public NullNode clone() {
59        return (NullNode) this;
60    }
61
62    /* (non-Javadoc)
63     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode#accept(de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor)
64     */
65    public void accept(NodeVisitor visitor) {
66       
67    }
68   
69}
70
Note: See TracBrowser for help on using the repository browser.