File D:\maven-qcr-plugin-testsunitaires\qcr4java\jenkins-master\target\site\qc\core\src\main\java\jenkins\util\NonLocalizable.java.html

1 package jenkins.util;
2
3 import org.jvnet.localizer.Localizable;
4
5 import java.util.Locale;
6
7 /**
8 * {@link Localizable} implementation that actually doesn't localize.
9 */
10 public class NonLocalizable extends Localizable {
11 /**
12 * The string that we don't know how to localize
13 */
14 private final String nonLocalizable;
15
16 /**
17 * Creates a non-localizable string.
18 *
19 * @param nonLocalizable the string.
20 */
21 public NonLocalizable(String nonLocalizable) {
22 super(null, null);
23 this.nonLocalizable = nonLocalizable;
24 }
25
26 @Override
27 public String toString(Locale locale) {
28 return nonLocalizable;
29 }
30
31 @Override
32 public String toString() {
33 return nonLocalizable;
34 }
35 }
36