svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.lib / org.gvsig.expressionevaluator.lib.impl / src / main / java / org / gvsig / expressionevaluator / impl / I18N.java @ 45025
History | View | Annotate | Download (6.97 KB)
1 |
package org.gvsig.expressionevaluator.impl; |
---|---|
2 |
|
3 |
import org.apache.commons.lang3.Range; |
4 |
|
5 |
/**
|
6 |
*
|
7 |
* @author jjdelcerro
|
8 |
*/
|
9 |
public class I18N { |
10 |
|
11 |
public static String Cant_recognize_the_second_operand_of_AND_operator() { |
12 |
return "Can't recognize the second operand of \"AND\" operator."; |
13 |
} |
14 |
|
15 |
public static String Cant_recognize_the_second_operand_of_OR_operator() { |
16 |
return "Can't recognize the second operand of \"OR\" operator."; |
17 |
} |
18 |
|
19 |
public static String Cant_recognize_the_second_operand_of_LT_operator() { |
20 |
return "Can't recognize the second operand of \"<\" operator."; |
21 |
} |
22 |
|
23 |
public static String Cant_recognize_the_second_operand_of_LE_operator() { |
24 |
return "Can't recognize the second operand of \"<=\" operator."; |
25 |
} |
26 |
|
27 |
public static String Cant_recognize_the_second_operand_of_GT_operator() { |
28 |
return "Can't recognize the second operand of \">\" operator."; |
29 |
} |
30 |
|
31 |
public static String Cant_recognize_the_second_operand_of_GE_operator() { |
32 |
return "Can't recognize the second operand of \">=\" operator."; |
33 |
} |
34 |
|
35 |
public static String Cant_recognize_the_second_operand_of_EQ_operator() { |
36 |
return "Can't recognize the second operand of \"=\" operator."; |
37 |
} |
38 |
|
39 |
public static String Cant_recognize_the_second_operand_of_NEQ_operator() { |
40 |
return "Can't recognize the second operand of \"<>\" operator."; |
41 |
} |
42 |
|
43 |
public static String Cant_recognize_the_second_operand_of_IS_operator() { |
44 |
return "Can't recognize the second operand of \"IS\" operator."; |
45 |
} |
46 |
|
47 |
public static String Cant_recognize_the_second_operand_of_REGEXP_operator() { |
48 |
return "Can't recognize the second operand of \"REGEXP\" operator."; |
49 |
} |
50 |
|
51 |
public static String Cant_recognize_the_second_operand_of_LIKE_operator() { |
52 |
return "Can't recognize the second operand of \"LIKE\" operator."; |
53 |
} |
54 |
|
55 |
public static String Cant_recognize_the_second_operand_of_ILIKE_operator() { |
56 |
return "Can't recognize the second operand of \"ILIKE\" operator."; |
57 |
} |
58 |
|
59 |
public static String Cant_recognize_the_second_operand_of_MULT_operator() { |
60 |
return "Can't recognize the second operand of \"*\" operator."; |
61 |
} |
62 |
|
63 |
public static String Cant_recognize_the_second_operand_of_DIV_operator() { |
64 |
return "Can't recognize the second operand of \"/\" operator."; |
65 |
} |
66 |
|
67 |
public static String Cant_recognize_the_second_operand_of_MOD_operator() { |
68 |
return "Can't recognize the second operand of \"%\" operator."; |
69 |
} |
70 |
|
71 |
public static String An_attribute_identifier_was_expected_and_XliteralX_was_found(String literal) { |
72 |
return String.format("An attribute identifier was expected and '%s' was found", literal); |
73 |
} |
74 |
|
75 |
public static String An_identifier_was_expected_and_XliteralX_was_found(String literal) { |
76 |
return String.format("An identifier was expected and '%s' was found", literal); |
77 |
} |
78 |
|
79 |
public static String A_string_literal_was_expected() { |
80 |
return String.format("A string literal was expected"); |
81 |
} |
82 |
|
83 |
public static String A_XTokenX_was_expected_and_XliteralX_was_found(String expected, String found) { |
84 |
return String.format("A '%s' was expected and '%s' was found", expected, found); |
85 |
} |
86 |
|
87 |
public static String Closing_parenthesis_was_expected_and_XliteralX_was_found(String literal) { |
88 |
return String.format("Closing parenthesis was expected and '%s' was found", literal); |
89 |
} |
90 |
|
91 |
public static String End_of_string_was_expected_and_end_of_source_was_found() { |
92 |
return "End of string was expected and end of source was found"; |
93 |
} |
94 |
|
95 |
public static String Incorrect_string_length() { |
96 |
return "Incorrect string length"; |
97 |
} |
98 |
|
99 |
public static String Incorrect_identifier_length() { |
100 |
return "Incorrect identifier length"; |
101 |
} |
102 |
|
103 |
public static String unexpected_end_of_source() { |
104 |
return "Unexpected end of source"; |
105 |
} |
106 |
|
107 |
public static String Closing_parenthesis_was_expected_and_end_of_source_was_found() { |
108 |
return "Closing ')' was expected and end of source was found"; |
109 |
} |
110 |
|
111 |
public static String Closing_square_bracket_was_expected_and_end_of_source_was_found() { |
112 |
return "Closing ']' was expected and end of source was found"; |
113 |
} |
114 |
|
115 |
public static String Undefined_variable_XIdentifierX(String identifier) { |
116 |
return String.format("Undefined variable '%s'", identifier); |
117 |
} |
118 |
|
119 |
public static String Undefined_function_XIdentifierX(String identifier) { |
120 |
return String.format("Undefined function '%s'", identifier); |
121 |
} |
122 |
|
123 |
public static String Number_of_argument_mistmatch_in_operator_XIdentifierX_expected_1_got_XargcX(String identifier, int argc) { |
124 |
return String.format("Number of argument mistmatch in operator '%s', expected 1 got %d", identifier, argc); |
125 |
} |
126 |
|
127 |
public static String Number_of_argument_mistmatch_in_operator_XIdentifierX_expected_2_got_XargcX(String identifier, int argc) { |
128 |
return String.format("Number of argument mistmatch in operator '%s', expected 2 got %d", identifier, argc); |
129 |
} |
130 |
|
131 |
public static String Number_of_argument_mistmatch_in_function_XIdentifierX_expected_XexpectedX_got_XfoundX(String identifier, int expected, int found) { |
132 |
return String.format("Number of argument mistmatch in function '%s', expected %d got %d", identifier, expected, found); |
133 |
} |
134 |
|
135 |
public static String Number_of_argument_mistmatch_in_function_XIdentifierX_expected_XexpectedX_got_XfoundX(String identifier, Range expected, int found) { |
136 |
return String.format("Number of argument mistmatch in function '%s', expected %s got %d", identifier, expected.toString(), found); |
137 |
} |
138 |
|
139 |
public static String Problems_calling_function_XIdentifierX_with_args_XargsX(String identifier, String args) { |
140 |
return String.format("Problems calling function '%s' with args %s", identifier, args); |
141 |
} |
142 |
|
143 |
static String Use_single_quotes_to_enter_literal_strings() { |
144 |
return "Use single quotes to enter literal strings."; |
145 |
} |
146 |
|
147 |
static String The_operator_greater_than_or_equal_is_ge() { |
148 |
return "The operator 'greater than or equal' is '>='."; |
149 |
} |
150 |
|
151 |
static String The_operator_less_than_or_equal_is_ge() { |
152 |
return "The operator 'less than or equal' is '<='."; |
153 |
} |
154 |
|
155 |
static String Maximum_recursion_limit_exceeded() { |
156 |
return "Maximum recursion limit exceeded."; |
157 |
} |
158 |
|
159 |
static String Cant_use_non_SQL_compatible_functions(String name) { |
160 |
return String.format("Can't use non-SQL compatible functions (%s)", name); |
161 |
} |
162 |
|
163 |
public static String Use_the_operator_CONCAT_to_concatenate_strings() { |
164 |
return "Use the operator '||' to concatenate strings."; |
165 |
} |
166 |
|
167 |
public static String A_numeric_constant_was_expected_after_the_unary_operator_minus() { |
168 |
return "A numeric constant was expected after the unary operator minus"; |
169 |
} |
170 |
|
171 |
public static String nonkeyword_arg_after_keyword_arg() { |
172 |
return "non-keyword arg after keyword arg"; |
173 |
} |
174 |
|
175 |
} |