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 { getValues()26 public String [] getValues () 27 { 28 return VALUES; 29 } 30 31 // TODO: keep this enum in a centralized location 32 private static final String [] VALUES = new String [] 33 { 34 "txt", 35 "html", 36 "lcov", 37 "xml", 38 }; 39 40 } // end of nested class 41 42 43 final class DepthAttribute extends EnumeratedAttribute 44 { getValues()45 public String [] getValues () 46 { 47 return VALUES; 48 } 49 50 // TODO: keep this enum in a centralized location 51 private static final String [] VALUES = new String [] 52 { 53 IReportProperties.DEPTH_ALL, 54 IReportProperties.DEPTH_PACKAGE, 55 IReportProperties.DEPTH_SRCFILE, 56 IReportProperties.DEPTH_CLASS, 57 IReportProperties.DEPTH_METHOD, 58 }; 59 60 } // end of nested class 61 62 63 final class ViewTypeAttribute extends EnumeratedAttribute 64 { getValues()65 public String [] getValues () 66 { 67 return VALUES; 68 } 69 70 // TODO: keep this enum in a centralized location 71 private static final String [] VALUES = new String [] 72 { 73 IReportProperties.SRC_VIEW, 74 IReportProperties.CLS_VIEW, 75 }; 76 77 } // end of nested class 78 79 80 static final class UnitsTypeAttribute extends EnumeratedAttribute 81 { getValues()82 public String [] getValues () 83 { 84 return VALUES; 85 } 86 87 // TODO: keep this enum in a centralized location 88 private static final String [] VALUES = new String [] 89 { 90 IReportProperties.INSTR_UNITS, 91 IReportProperties.COUNT_UNITS, 92 }; 93 94 } // end of nested class 95 96 } // end of interface 97 // ---------------------------------------------------------------------------- 98