KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > vladium > emma > report > IReportProperties


1 /* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
2  *
3  * This program and the accompanying materials are made available under
4  * the terms of the Common Public License v1.0 which accompanies this distribution,
5  * and is available at http://www.eclipse.org/legal/cpl-v10.html
6  *
7  * $Id: IReportProperties.java,v 1.1.1.1 2004/05/09 16:57:37 vlad_r Exp $
8  */

9 package com.vladium.emma.report;
10
11 // ----------------------------------------------------------------------------
12
/**
13  * @author Vlad Roubtsov, (C) 2003
14  */

15 public
16 interface IReportProperties
17 {
18     // public: ................................................................
19

20     // TODO: separate props for diff kinds of files (m, c, reports) ?
21

22     String JavaDoc PREFIX = "report.";
23     
24     // parameter:
25
String JavaDoc OUT_ENCODING = "out.encoding";
26     String JavaDoc OUT_DIR = "out.dir";
27     String JavaDoc OUT_FILE = "out.file";
28
29     // parameter:
30
String JavaDoc UNITS_TYPE = "units";
31     // values:
32
String JavaDoc COUNT_UNITS = "count";
33     String JavaDoc INSTR_UNITS = "instr";
34         
35     // parameter:
36
String JavaDoc VIEW_TYPE = "view";
37     // values:
38
String JavaDoc CLS_VIEW = "class";
39     String JavaDoc SRC_VIEW = "source";
40
41     // parameter:
42
String JavaDoc HIDE_CLASSES = "hideclasses"; // boolean
43

44     // parameter:
45
String JavaDoc DEPTH = "depth";
46     // values:
47
String JavaDoc DEPTH_ALL = "all";
48     String JavaDoc DEPTH_PACKAGE = "package";
49     String JavaDoc DEPTH_SRCFILE = "source";
50     String JavaDoc DEPTH_CLASS = "class";
51     String JavaDoc DEPTH_METHOD = "method";
52     
53     // parameter:
54
String JavaDoc COLUMNS = "columns"; // comma-separated list
55
// values:
56
String JavaDoc ITEM_NAME_COLUMN = "name";
57     String JavaDoc CLASS_COVERAGE_COLUMN = "class";
58     String JavaDoc METHOD_COVERAGE_COLUMN = "method";
59     String JavaDoc BLOCK_COVERAGE_COLUMN = "block";
60     String JavaDoc LINE_COVERAGE_COLUMN = "line";
61     
62     // parameter:
63
String JavaDoc SORT = "sort"; // comma-separated list of ('+'/'-'-prefixed column names)
64
char ASC = '+'; // default
65
char DESC = '-';
66     
67     // parameter:
68
String JavaDoc METRICS = "metrics"; // comma-separated list of (column name:metric) pairs
69
char MSEPARATOR = ':';
70
71     // defaults:
72

73     String JavaDoc DEFAULT_UNITS_TYPE = INSTR_UNITS;
74     String JavaDoc DEFAULT_VIEW_TYPE = SRC_VIEW;
75     String JavaDoc DEFAULT_HIDE_CLASSES = "true";
76     String JavaDoc DEFAULT_DEPTH = DEPTH_PACKAGE;
77     String JavaDoc DEFAULT_COLUMNS = CLASS_COVERAGE_COLUMN + "," + METHOD_COVERAGE_COLUMN + "," + BLOCK_COVERAGE_COLUMN + "," + LINE_COVERAGE_COLUMN + "," + ITEM_NAME_COLUMN;
78     String JavaDoc DEFAULT_SORT = ASC + BLOCK_COVERAGE_COLUMN + "," + ASC + ITEM_NAME_COLUMN;
79     String JavaDoc DEFAULT_METRICS = METHOD_COVERAGE_COLUMN + MSEPARATOR + "70," + BLOCK_COVERAGE_COLUMN + MSEPARATOR + "80," + LINE_COVERAGE_COLUMN + MSEPARATOR + "80," + CLASS_COVERAGE_COLUMN + MSEPARATOR + "100";
80
81 } // end of inteface
82
// ----------------------------------------------------------------------------
Popular Tags