IReportEnums.java revision f6fe897e173f4e4bda72a7dddb091b667066764a
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 */ 9package com.vladium.emma.report; 10 11import com.vladium.emma.report.IReportProperties; 12import org.apache.tools.ant.types.EnumeratedAttribute; 13 14// ---------------------------------------------------------------------------- 15/** 16 * @author Vlad Roubtsov, (C) 2003 17 */ 18public 19interface IReportEnums 20{ 21 // public: ................................................................ 22 23 24 final class TypeAttribute extends EnumeratedAttribute 25 { 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 "xml", 37 }; 38 39 } // end of nested class 40 41 42 final class DepthAttribute extends EnumeratedAttribute 43 { 44 public String [] getValues () 45 { 46 return VALUES; 47 } 48 49 // TODO: keep this enum in a centralized location 50 private static final String [] VALUES = new String [] 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 [] getValues () 65 { 66 return VALUES; 67 } 68 69 // TODO: keep this enum in a centralized location 70 private static final String [] VALUES = new String [] 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 [] getValues () 82 { 83 return VALUES; 84 } 85 86 // TODO: keep this enum in a centralized location 87 private static final String [] VALUES = new String [] 88 { 89 IReportProperties.INSTR_UNITS, 90 IReportProperties.COUNT_UNITS, 91 }; 92 93 } // end of nested class 94 95} // end of interface 96// ----------------------------------------------------------------------------