1 package org.tigris.scarab.util.build.l10nchecker; 2 3 4 49 50 56 public class L10nMessage 57 { 58 59 private int lineNumber; 60 61 62 private String messageText; 63 64 65 private L10nKey l10nObject; 66 67 68 private L10nIssue issue; 69 70 73 private L10nMessage() 74 { 75 throw new RuntimeException ("This should not have been called"); 76 } 77 78 85 public L10nMessage(int lineNo, L10nIssue issue) 86 { 87 lineNumber = lineNo; 88 this.issue = issue; 89 this.messageText = issue.formatMessage(); 90 } 91 92 93 98 public int getLineNumber() 99 { 100 return lineNumber; 101 } 102 103 108 public void setLineNumber(int lineNumber) 109 { 110 this.lineNumber = lineNumber; 111 } 112 113 118 public String getMessageText() 119 { 120 return messageText; 121 } 122 123 128 public L10nKey getL10nObject() 129 { 130 return l10nObject; 131 } 132 133 138 public void setL10nObject(L10nKey object) 139 { 140 l10nObject = object; 141 } 142 143 148 public L10nIssue getIssue() 149 { 150 return issue; 151 } 152 } 153 | Popular Tags |