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

Last change on this file since 1173 was 1173, checked in by adeicke, 11 years ago

Added missing methods.

  • Property svn:mime-type set to text/plain
File size: 2.1 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 org.apache.commons.lang.StringUtils;
18
19import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask;
20import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskVisitor;
21
22/**
23 * <p>
24 * TODO comment
25 * </p>
26 *
27 * @author Alexander Deicke
28 */
29public class NullNode implements ITask {
30
31       
32        /**
33         *
34         */
35        private static final long serialVersionUID = -3325477932754494485L;
36
37        @Override
38        public int getId() {
39                return 0;
40        }
41       
42    /* (non-Javadoc)
43     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode#getName()
44     */
45    public String getName() {
46        return StringUtils.EMPTY;
47    }
48
49    /* (non-Javadoc)
50     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode#getDescription()
51     */
52    public String getDescription() {
53        return StringUtils.EMPTY;
54    }
55
56    /* (non-Javadoc)
57     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode#equals(de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode)
58     */
59    public boolean equals(ITask task) {
60        return false;
61    }
62   
63    /* (non-Javadoc)
64     * @see java.lang.Object#clone()
65     */
66    @Override
67    public NullNode clone() {
68        return (NullNode) this;
69    }
70
71    /* (non-Javadoc)
72     * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode#accept(de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor)
73     */
74    public void accept(ITaskVisitor visitor) {
75       
76    }
77   
78}
79
Note: See TracBrowser for help on using the repository browser.