EMMA Coverage Report (generated Fri Jun 19 09:16:10 CEST 2009)
[all classes][org.ktc.rbutils.rb]

COVERAGE SUMMARY FOR SOURCE FILE [TaskType.java]

nameclass, %method, %block, %line, %
TaskType.java100% (1/1)100% (3/3)100% (28/28)100% (7/7)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class TaskType100% (1/1)100% (3/3)100% (28/28)100% (7/7)
<static initializer> 100% (1/1)100% (21/21)100% (4/4)
TaskType (String): void 100% (1/1)100% (4/4)100% (2/2)
getDisplay (): String 100% (1/1)100% (3/3)100% (1/1)

1/*
2 * Copyright  2005-2006 The RbUtils Project
3 *
4 *  Licensed under the Apache License, Version 2.0 (the "License");
5 *  you may not use this file except in compliance with the License.
6 *  You may obtain a copy of the License at
7 *
8 *      http://www.apache.org/licenses/LICENSE-2.0
9 *
10 *  Unless required by applicable law or agreed to in writing, software
11 *  distributed under the License is distributed on an "AS IS" BASIS,
12 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 *  See the License for the specific language governing permissions and
14 *  limitations under the License.
15 *
16 */
17 
18// $Id: TaskType.java,v 1.2 2007/07/10 13:32:09 ktcguru Exp $
19 
20package org.ktc.rbutils.rb;
21 
22 
23import org.apache.commons.lang.enums.Enum;
24 
25/**
26 * Enumeration of the task supported by RbUtils.
27 * @since RbUtils 0.11
28 * @version $Revision: 1.2 $
29 * @author moishi
30 */
31public final class TaskType extends Enum {
32    // TODO refactor - tasknames must be stored in a enum type
33    // TODO duplication - taskname should be always accessed with this class
34    // TODO serialVersionUID
35 
36    /**
37     * Name of the rbchecker task to be displayed.
38     */
39    public static final TaskType RBCHECKER = new TaskType("RbChecker");
40    /**
41     * Name of the rbgenerator task to be displayed.
42     */
43    public static final TaskType RBGENERATOR = new TaskType("RbGenerator");
44    /**
45     * Name of the rbcontentlister task to be displayed.
46     */
47    public static final TaskType RBCONTENTLISTER = new TaskType("RbContentLister");
48    /**
49     * Name of an unknown rbutils task to be displayed.
50     */
51    public static final TaskType UNKNONWN = new TaskType("Unknown RbUtils Task");
52 
53 
54    /**
55     * Constructs a new TaskType.
56     * @param tasktype the type of the task as String.
57     */
58    private TaskType(final String tasktype) {
59        super(tasktype);
60    }
61 
62    /**
63     * Provides a human readable display of the TaskType.
64     * @return the display form of this TaskType.
65     */
66    public String getDisplay() {
67        return getName();
68    }
69 
70}

[all classes][org.ktc.rbutils.rb]
EMMA 2.0.5312 (C) Vladimir Roubtsov