KickJava   Java API By Example, From Geeks To Geeks.

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


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: IReportEnums.java,v 1.1.1.1 2004/05/09 16:57:27 vlad_r Exp $
8  */

9 package com.vladium.emma.report;
10
11 import com.vladium.emma.report.IReportProperties;
12 import org.apache.tools.ant.types.EnumeratedAttribute;
13
14 // ----------------------------------------------------------------------------
15
/**
16  * @author Vlad Roubtsov, (C) 2003
17  */

18 public
19 interface IReportEnums
20 {
21     // public: ................................................................
22

23
24     final class TypeAttribute extends EnumeratedAttribute
25     {
26         public String JavaDoc [] getValues ()
27         {
28             return VALUES;
29         }
30         
31         // TODO: keep this enum in a centralized location
32
private static final String JavaDoc [] VALUES = new String JavaDoc []
33         {
34             "txt",
35             "html",
36             "xml",
37         };
38
39     } // end of nested class
40

41
42     final class DepthAttribute extends EnumeratedAttribute
43     {
44         public String JavaDoc [] getValues ()
45         {
46             return VALUES;
47         }
48         
49         // TODO: keep this enum in a centralized location
50
private static final String JavaDoc [] VALUES = new String JavaDoc []
51         {
52             IReportProperties.DEPTH_ALL,
53             IReportProperties.DEPTH_PACKAGE,
54             IReportProperties.DEPTH_SRCFILE,
55             IReportProperties.DEPTH_CLASS,
56             IReportProperties.DEPTH_METHOD,
57         };
58
59     } // end of nested class
60

61
62     final class ViewTypeAttribute extends EnumeratedAttribute
63     {
64         public String JavaDoc [] getValues ()
65         {
66             return VALUES;
67         }
68         
69         // TODO: keep this enum in a centralized location
70
private static final String JavaDoc [] VALUES = new String JavaDoc []
71         {
72             IReportProperties.SRC_VIEW,
73             IReportProperties.CLS_VIEW,
74         };
75
76     } // end of nested class
77

78     
79     static final class UnitsTypeAttribute extends EnumeratedAttribute
80     {
81         public String JavaDoc [] getValues ()
82         {
83             return VALUES;
84         }
85         
86         // TODO: keep this enum in a centralized location
87
private static final String JavaDoc [] VALUES = new String JavaDoc []
88         {
89             IReportProperties.INSTR_UNITS,
90             IReportProperties.COUNT_UNITS,
91         };
92
93     } // end of nested class
94

95 } // end of interface
96
// ----------------------------------------------------------------------------
Popular Tags