1 9 package com.vladium.emma.report; 10 11 import com.vladium.emma.report.IReportProperties; 12 import org.apache.tools.ant.types.EnumeratedAttribute; 13 14 18 public 19 interface IReportEnums 20 { 21 23 24 final class TypeAttribute extends EnumeratedAttribute 25 { 26 public String [] getValues () 27 { 28 return VALUES; 29 } 30 31 private static final String [] VALUES = new String [] 33 { 34 "txt", 35 "html", 36 "xml", 37 }; 38 39 } 41 42 final class DepthAttribute extends EnumeratedAttribute 43 { 44 public String [] getValues () 45 { 46 return VALUES; 47 } 48 49 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 } 61 62 final class ViewTypeAttribute extends EnumeratedAttribute 63 { 64 public String [] getValues () 65 { 66 return VALUES; 67 } 68 69 private static final String [] VALUES = new String [] 71 { 72 IReportProperties.SRC_VIEW, 73 IReportProperties.CLS_VIEW, 74 }; 75 76 } 78 79 static final class UnitsTypeAttribute extends EnumeratedAttribute 80 { 81 public String [] getValues () 82 { 83 return VALUES; 84 } 85 86 private static final String [] VALUES = new String [] 88 { 89 IReportProperties.INSTR_UNITS, 90 IReportProperties.COUNT_UNITS, 91 }; 92 93 } 95 } | Popular Tags |