[1150] | 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 |
|
---|
[1152] | 19 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ITask;
|
---|
[1163] | 20 | import de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskVisitor;
|
---|
[1150] | 21 |
|
---|
| 22 | /**
|
---|
| 23 | * <p>
|
---|
| 24 | * TODO comment
|
---|
| 25 | * </p>
|
---|
| 26 | *
|
---|
| 27 | * @author Alexander Deicke
|
---|
| 28 | */
|
---|
[1163] | 29 | public class NullTask implements ITask {
|
---|
[1150] | 30 |
|
---|
[1163] | 31 | /** */
|
---|
| 32 | private static final long serialVersionUID = 1236779392413787860L;
|
---|
| 33 |
|
---|
[1150] | 34 | /* (non-Javadoc)
|
---|
[1163] | 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)
|
---|
[1150] | 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 | */
|
---|
[1152] | 59 | public boolean equals(ITask task) {
|
---|
[1150] | 60 | return false;
|
---|
| 61 | }
|
---|
| 62 |
|
---|
| 63 | /* (non-Javadoc)
|
---|
| 64 | * @see java.lang.Object#clone()
|
---|
| 65 | */
|
---|
| 66 | @Override
|
---|
[1163] | 67 | public NullTask clone() {
|
---|
| 68 | return (NullTask) this;
|
---|
[1150] | 69 | }
|
---|
| 70 |
|
---|
| 71 | /* (non-Javadoc)
|
---|
| 72 | * @see de.ugoe.cs.autoquest.tasktrees.treeifc.ITaskTreeNode#accept(de.ugoe.cs.autoquest.tasktrees.treeifc.NodeVisitor)
|
---|
| 73 | */
|
---|
[1163] | 74 | public void accept(ITaskVisitor visitor) {
|
---|
| 75 | // do nothing
|
---|
[1150] | 76 | }
|
---|
| 77 |
|
---|
| 78 | }
|
---|
| 79 |
|
---|