summaryrefslogtreecommitdiff
path: root/ant/ant14/com/vladium/emma/report/IReportEnums.java
diff options
context:
space:
mode:
Diffstat (limited to 'ant/ant14/com/vladium/emma/report/IReportEnums.java')
-rw-r--r--ant/ant14/com/vladium/emma/report/IReportEnums.java96
1 files changed, 96 insertions, 0 deletions
diff --git a/ant/ant14/com/vladium/emma/report/IReportEnums.java b/ant/ant14/com/vladium/emma/report/IReportEnums.java
new file mode 100644
index 0000000..7b81457
--- /dev/null
+++ b/ant/ant14/com/vladium/emma/report/IReportEnums.java
@@ -0,0 +1,96 @@
+/* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
+ *
+ * This program and the accompanying materials are made available under
+ * the terms of the Common Public License v1.0 which accompanies this distribution,
+ * and is available at http://www.eclipse.org/legal/cpl-v10.html
+ *
+ * $Id: IReportEnums.java,v 1.1.1.1 2004/05/09 16:57:27 vlad_r Exp $
+ */
+package com.vladium.emma.report;
+
+import com.vladium.emma.report.IReportProperties;
+import org.apache.tools.ant.types.EnumeratedAttribute;
+
+// ----------------------------------------------------------------------------
+/**
+ * @author Vlad Roubtsov, (C) 2003
+ */
+public
+interface IReportEnums
+{
+ // public: ................................................................
+
+
+ final class TypeAttribute extends EnumeratedAttribute
+ {
+ public String [] getValues ()
+ {
+ return VALUES;
+ }
+
+ // TODO: keep this enum in a centralized location
+ private static final String [] VALUES = new String []
+ {
+ "txt",
+ "html",
+ "xml",
+ };
+
+ } // end of nested class
+
+
+ final class DepthAttribute extends EnumeratedAttribute
+ {
+ public String [] getValues ()
+ {
+ return VALUES;
+ }
+
+ // TODO: keep this enum in a centralized location
+ private static final String [] VALUES = new String []
+ {
+ IReportProperties.DEPTH_ALL,
+ IReportProperties.DEPTH_PACKAGE,
+ IReportProperties.DEPTH_SRCFILE,
+ IReportProperties.DEPTH_CLASS,
+ IReportProperties.DEPTH_METHOD,
+ };
+
+ } // end of nested class
+
+
+ final class ViewTypeAttribute extends EnumeratedAttribute
+ {
+ public String [] getValues ()
+ {
+ return VALUES;
+ }
+
+ // TODO: keep this enum in a centralized location
+ private static final String [] VALUES = new String []
+ {
+ IReportProperties.SRC_VIEW,
+ IReportProperties.CLS_VIEW,
+ };
+
+ } // end of nested class
+
+
+ static final class UnitsTypeAttribute extends EnumeratedAttribute
+ {
+ public String [] getValues ()
+ {
+ return VALUES;
+ }
+
+ // TODO: keep this enum in a centralized location
+ private static final String [] VALUES = new String []
+ {
+ IReportProperties.INSTR_UNITS,
+ IReportProperties.COUNT_UNITS,
+ };
+
+ } // end of nested class
+
+} // end of interface
+// ---------------------------------------------------------------------------- \ No newline at end of file