1 32 package net.sf.retrotranslator.transformer; 33 34 import java.io.File ; 35 36 39 public class Message { 40 41 private Level level; 42 private String text; 43 private String fileName; 44 private File fileLocation; 45 46 Message(Level level, String text) { 47 this(level, text, null, null); 48 } 49 50 Message(Level level, String text, File fileLocation, String fileName) { 51 this.level = level; 52 this.text = text; 53 this.fileName = fileName; 54 this.fileLocation = fileLocation; 55 } 56 57 public Level getLevel() { 58 return level; 59 } 60 61 public String getText() { 62 return text; 63 } 64 65 public String getFileName() { 66 return fileName; 67 } 68 69 public File getFileLocation() { 70 return fileLocation; 71 } 72 73 public String toString() { 74 return fileName == null ? text : fileName + "\n " + text; 75 } 76 } 77 | Popular Tags |