TodoTokenTable.java

1
/* $Id: TodoTokenTable.java 17832 2010-01-12 19:02:29Z linus $
2
 *****************************************************************************
3
 * Copyright (c) 2009 Contributors - see below
4
 * All rights reserved. This program and the accompanying materials
5
 * are made available under the terms of the Eclipse Public License v1.0
6
 * which accompanies this distribution, and is available at
7
 * http://www.eclipse.org/legal/epl-v10.html
8
 *
9
 * Contributors:
10
 *    tfmorris
11
 *****************************************************************************
12
 *
13
 * Some portions of this file was previously release using the BSD License:
14
 */
15
16
// Copyright (c) 1996-2006 The Regents of the University of California. All
17
// Rights Reserved. Permission to use, copy, modify, and distribute this
18
// software and its documentation without fee, and without a written
19
// agreement is hereby granted, provided that the above copyright notice
20
// and this paragraph appear in all copies.  This software program and
21
// documentation are copyrighted by The Regents of the University of
22
// California. The software program and documentation are supplied "AS
23
// IS", without any accompanying services from The Regents. The Regents
24
// does not warrant that the operation of the program will be
25
// uninterrupted or error-free. The end-user understands that the program
26
// was developed for research purposes and is advised not to rely
27
// exclusively on the program for any reason.  IN NO EVENT SHALL THE
28
// UNIVERSITY OF CALIFORNIA BE LIABLE TO ANY PARTY FOR DIRECT, INDIRECT,
29
// SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, INCLUDING LOST PROFITS,
30
// ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN IF
31
// THE UNIVERSITY OF CALIFORNIA HAS BEEN ADVISED OF THE POSSIBILITY OF
32
// SUCH DAMAGE. THE UNIVERSITY OF CALIFORNIA SPECIFICALLY DISCLAIMS ANY
33
// WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
34
// MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE
35
// PROVIDED HEREUNDER IS ON AN "AS IS" BASIS, AND THE UNIVERSITY OF
36
// CALIFORNIA HAS NO OBLIGATIONS TO PROVIDE MAINTENANCE, SUPPORT,
37
// UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
38
39
package org.argouml.persistence;
40
41
42
/**
43
 * An utility class that defines the strings required by the XML framework
44
 * and other strings needed to work with todo XML files.
45
 *
46
 * @author Michael Stockman
47
 */
48
class TodoTokenTable extends XMLTokenTableBase {
49
50
    private static final String STRING_TO_DO                = "todo";
51
    private static final String STRING_TO_DO_LIST           = "todolist";
52
    private static final String STRING_TO_DO_ITEM           = "todoitem";
53
    private static final String STRING_HEADLINE             = "headline";
54
    private static final String STRING_DESCRIPTION          = "description";
55
    private static final String STRING_PRIORITY             = "priority";
56
    private static final String STRING_MOREINFOURL          = "moreinfourl";
57
58
    private static final String STRING_RESOLVEDCRITICS      = "resolvedcritics";
59
    private static final String STRING_ISSUE                = "issue";
60
    private static final String STRING_POSTER               = "poster";
61
    private static final String STRING_OFFENDER             = "offender";
62
63
    /** The String to use for High Priority. */
64
    public static final String STRING_PRIO_HIGH            = "high";
65
    /** The String to use for Medium Priority. */
66
    public static final String STRING_PRIO_MED             = "medium";
67
    /** The String to use for Low Priority. */
68
    public static final String STRING_PRIO_LOW             = "low";
69
70
    /** The token for todo. */
71
    public static final int    TOKEN_TO_DO                 = 1;
72
    /** The token for todo list. */
73
    public static final int    TOKEN_TO_DO_LIST            = 2;
74
    /** The token for todoitem. */
75
    public static final int    TOKEN_TO_DO_ITEM            = 3;
76
    /** The token for headline. */
77
    public static final int    TOKEN_HEADLINE              = 4;
78
    /** The token for description. */
79
    public static final int    TOKEN_DESCRIPTION           = 5;
80
    /** The token for priority. */
81
    public static final int    TOKEN_PRIORITY              = 6;
82
    /** The token for moreinfourl. */
83
    public static final int    TOKEN_MOREINFOURL           = 7;
84
85
    /** The token for resolvedcritics. */
86
    public static final int    TOKEN_RESOLVEDCRITICS       = 8;
87
    /** The token for issue. */
88
    public static final int    TOKEN_ISSUE                 = 9;
89
    /** The token for poster. */
90
    public static final int    TOKEN_POSTER                = 10;
91
    /** The token for offender. */
92
    public static final int    TOKEN_OFFENDER              = 11;
93
94
    /** The token for undefined. */
95
    public static final int    TOKEN_UNDEFINED             = 12;
96
97
    /**
98
     * The constructor.
99
     *
100
     */
101
    public TodoTokenTable() {
102
	super(32);
103
    }
104
105
    /*
106
     * @see org.argouml.persistence.XMLTokenTableBase#setupTokens()
107
     */
108
    protected void setupTokens() {
109 1 1. setupTokens : removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE
	addToken(STRING_TO_DO, Integer.valueOf(TOKEN_TO_DO));
110 1 1. setupTokens : removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE
	addToken(STRING_TO_DO_LIST, Integer.valueOf(TOKEN_TO_DO_LIST));
111 1 1. setupTokens : removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE
	addToken(STRING_TO_DO_ITEM, Integer.valueOf(TOKEN_TO_DO_ITEM));
112 1 1. setupTokens : removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE
	addToken(STRING_HEADLINE, Integer.valueOf(TOKEN_HEADLINE));
113 1 1. setupTokens : removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE
	addToken(STRING_DESCRIPTION, Integer.valueOf(TOKEN_DESCRIPTION));
114 1 1. setupTokens : removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE
	addToken(STRING_PRIORITY, Integer.valueOf(TOKEN_PRIORITY));
115 1 1. setupTokens : removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE
	addToken(STRING_MOREINFOURL, Integer.valueOf(TOKEN_MOREINFOURL));
116
117 1 1. setupTokens : removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE
	addToken(STRING_RESOLVEDCRITICS, Integer.valueOf(TOKEN_RESOLVEDCRITICS));
118 1 1. setupTokens : removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE
	addToken(STRING_ISSUE, Integer.valueOf(TOKEN_ISSUE));
119 1 1. setupTokens : removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE
	addToken(STRING_POSTER, Integer.valueOf(TOKEN_POSTER));
120 1 1. setupTokens : removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE
	addToken(STRING_OFFENDER, Integer.valueOf(TOKEN_OFFENDER));
121
    }
122
}
123

Mutations

109

1.1
Location : setupTokens
Killed by : none
removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE

110

1.1
Location : setupTokens
Killed by : none
removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE

111

1.1
Location : setupTokens
Killed by : none
removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE

112

1.1
Location : setupTokens
Killed by : none
removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE

113

1.1
Location : setupTokens
Killed by : none
removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE

114

1.1
Location : setupTokens
Killed by : none
removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE

115

1.1
Location : setupTokens
Killed by : none
removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE

117

1.1
Location : setupTokens
Killed by : none
removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE

118

1.1
Location : setupTokens
Killed by : none
removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE

119

1.1
Location : setupTokens
Killed by : none
removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE

120

1.1
Location : setupTokens
Killed by : none
removed call to org/argouml/persistence/TodoTokenTable::addToken → NO_COVERAGE

Active mutators

Tests examined


Report generated by PIT 0.32