EMMA Coverage Report (generated Fri Jul 01 13:59:23 CEST 2016)
[all classes][caldwell.ben.provider]

COVERAGE SUMMARY FOR SOURCE FILE [Trolly.java]

nameclass, %method, %block, %line, %
Trolly.java50%  (1/2)33%  (1/3)40%  (4/10)50%  (2/4)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class Trolly0%   (0/1)0%   (0/1)0%   (0/3)0%   (0/2)
Trolly (): void 0%   (0/1)0%   (0/3)0%   (0/2)
     
class Trolly$ShoppingList100% (1/1)50%  (1/2)57%  (4/7)67%  (2/3)
Trolly$ShoppingList (): void 0%   (0/1)0%   (0/3)0%   (0/1)
<static initializer> 100% (1/1)100% (4/4)100% (2/2)

1/**
2        <Trolly is a simple shopping list application for android phones.>
3        Copyright (C) 2009  Ben Caldwell
4         
5    This program is free software: you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation, either version 3 of the License, or
8    (at your option) any later version.
9 
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14 
15    You should have received a copy of the GNU General Public License
16    along with this program.  If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19package caldwell.ben.provider;
20 
21import android.net.Uri;
22import android.provider.BaseColumns;
23 
24/**
25 * Convenience definitions for TrollyProvider
26 */
27public final class Trolly {
28        public static final String AUTHORITY = "caldwell.ben.provider.Trolly";
29        
30    /**
31     * Trolly table
32     */
33    public static final class ShoppingList implements BaseColumns {
34            
35            /**
36         * The content:// style URL for this table
37         */
38        public static final Uri CONTENT_URI
39                = Uri.parse("content://caldwell.ben.provider.Trolly/shoppinglist");
40 
41        /**
42         * The MIME type of {@link #CONTENT_URI} providing a directory of items.
43         */
44        public static final String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.caldwell.ben.trolly";
45 
46        /**
47         * The MIME type of a {@link #CONTENT_URI} sub-directory of a single item.
48         */
49        public static final String CONTENT_ITEM_TYPE = "vnd.android.cursor.item/vnd.caldwell.ben.trolly";
50 
51        /**
52         * The default sort order for this table
53         */
54        public static final String DEFAULT_SORT_ORDER = "item ASC";
55 
56        /**
57         * The shopping list item
58         * <P>Type: TEXT</P>
59         */
60        public static final String ITEM = "item";
61        
62        /**
63         * An "off list" item
64         * <P>An item that has been added to the list before 
65         * but is not on the list at the moment.</P>
66         */
67        public static final int OFF_LIST = 0;
68        
69        /**
70         * An "on list" item
71         * <P>An item that has been added to the list 
72         * and is on the list at the moment.</P>
73         */
74        public static final int ON_LIST = 1;
75        
76        /**
77         * An "in trolley" item
78         * <P>An item that has been added to the list and
79         * is currently in the trolley - crossed off the list.</P>
80         */
81        public static final int IN_TROLLEY = 2;
82 
83        /**
84         * The status of the shopping list item
85         * <P>Type: INTEGER</P>
86         */
87        public static final String STATUS = "status";
88 
89        /**
90         * The timestamp for when the note was created
91         * <P>Type: INTEGER (long)</P>
92         */
93        public static final String CREATED_DATE = "created";
94 
95        /**
96         * The timestamp for when the note was last modified
97         * <P>Type: INTEGER (long)</P>
98         */
99        public static final String MODIFIED_DATE = "modified";
100    }
101}

[all classes][caldwell.ben.provider]
EMMA 2.0.5312 (C) Vladimir Roubtsov