1 32 33 package it.businesslogic.ireport.plugin.massivecompiler; 34 35 import java.io.*; 36 40 public class FileEntry { 41 42 public static final int STATUS_NOT_COMPILED = 1; 43 public static final int STATUS_COMPILED = 2; 44 public static final int STATUS_ERROR_COMPILING = 3; 45 public static final int STATUS_COMPILED_GROOVY = 4; 46 public static final int STATUS_COMPILING = 5; 47 48 private File file = null; 49 private int status = 0; 50 private String message = ""; 51 private String jasper_version = ""; 52 53 54 public FileEntry() { 55 } 56 57 58 62 public java.lang.String getMessage() { 63 return message; 64 } 65 66 70 public void setMessage(java.lang.String message) { 71 this.message = message; 72 } 73 74 78 public int getStatus() { 79 return status; 80 } 81 82 86 public static String decodeStatus( int status ) { 87 switch (status) 89 { 90 case STATUS_NOT_COMPILED: return "Not compiled"; 91 case STATUS_COMPILED: return "Compiled"; 92 case STATUS_COMPILED_GROOVY: return "Compiled (groovy compiler)"; 93 case STATUS_ERROR_COMPILING: return "Error compiling"; 94 case STATUS_COMPILING: return "Compiling..."; 95 } 96 return ""+status; 97 } 98 99 103 public void setStatus(int status) { 104 this.status = status; 105 } 106 107 111 public File getFile() { 112 return file; 113 } 114 115 119 public void setFile(File file) { 120 this.file = file; 121 } 122 123 public String toString() 124 { 125 if (file == null) return ""; 126 try { 127 return file.getCanonicalPath(); 128 }catch (Exception ex) {} 129 return ""; 130 } 131 132 136 public java.lang.String getJasper_version() { 137 return jasper_version; 138 } 139 140 144 public void setJasper_version(java.lang.String jasper_version) { 145 this.jasper_version = jasper_version; 146 } 147 148 } 149 | Popular Tags |