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 |
|
---|
15 | package de.ugoe.cs.autoquest.usability.util;
|
---|
16 |
|
---|
17 | import org.apache.commons.lang.StringUtils;
|
---|
18 |
|
---|
19 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask;
|
---|
20 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskVisitor;
|
---|
21 |
|
---|
22 | /**
|
---|
23 | * <p>
|
---|
24 | * TODO comment
|
---|
25 | * </p>
|
---|
26 | *
|
---|
27 | * @author Alexander Deicke
|
---|
28 | */
|
---|
29 | public class NullTask implements ITask {
|
---|
30 |
|
---|
31 | /** */
|
---|
32 | private static final long serialVersionUID = 1236779392413787860L;
|
---|
33 |
|
---|
34 | /* (non-Javadoc)
|
---|
35 | * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITask#getId()
|
---|
36 | */
|
---|
37 | @Override
|
---|
38 | public int getId() {
|
---|
39 | return -1;
|
---|
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 NullTask clone() {
|
---|
68 | return (NullTask) 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 | // do nothing
|
---|
76 | }
|
---|
77 |
|
---|
78 | }
|
---|
79 |
|
---|