svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.expressionevaluator / org.gvsig.expressionevaluator.lib / org.gvsig.expressionevaluator.lib.api / src / main / java / org / gvsig / expressionevaluator / I18N.java @ 45523
History | View | Annotate | Download (2.16 KB)
1 |
package org.gvsig.expressionevaluator; |
---|---|
2 |
|
3 |
/**
|
4 |
*
|
5 |
* @author jjdelcerro
|
6 |
*/
|
7 |
public class I18N { |
8 |
|
9 |
public static String Syntax_error_in_expression() { |
10 |
return "Syntax error in expression."; |
11 |
} |
12 |
|
13 |
public static String Syntax_error_near_character_XPositionX(int position) { |
14 |
return String.format("Syntax error near character %d.", position); |
15 |
} |
16 |
|
17 |
public static String Required_argument_XargnX_and_only_found_XargcX_in_call_to_XIdentifierX(String identifier, int argc, int argn) { |
18 |
return String.format("Requiered argument %d and only found %d in call_to '%s'.", argn,argc,identifier); |
19 |
} |
20 |
|
21 |
public static String The_type_of_the_argument_XargnX_for_the_XIdentifierX_function_is_incorrect(String identifier, int argn) { |
22 |
return String.format("The type of the argument %d for the '%s' function is incorrect.", argn,identifier); |
23 |
} |
24 |
|
25 |
public static String Expected_XexpectedX_and_found_XfoundX(String expected, String found) { |
26 |
return String.format("Expected '%s' and found '%s'.", expected,found); |
27 |
} |
28 |
|
29 |
public static String Illegal_null_value_for_argument_XargnX_of_XIdentifierX_function(String identifier, int n) { |
30 |
return String.format("Illegal null value for argument %d of '%s' function.", n, identifier); |
31 |
} |
32 |
|
33 |
public static String End_of_string_was_expected_and_end_of_source_was_found() { |
34 |
return "End of string was expected and end of source was found."; |
35 |
} |
36 |
|
37 |
public static String Expected_a_number_at_position_XpositionX(int position) { |
38 |
return String.format("Expected a number at position %d.", position); |
39 |
} |
40 |
|
41 |
public static String Wrong_special_number_start() { |
42 |
return "wrong special number start"; |
43 |
} |
44 |
|
45 |
public static String Special_number_format_not_supported(String formatName) { |
46 |
return String.format("special number format '%s' not supported", formatName); |
47 |
} |
48 |
|
49 |
public static String Incorrect_value_for_latitude(double dd) { |
50 |
return String.format("Incorrect value for latitude (%f)", dd); |
51 |
} |
52 |
|
53 |
public static String Incorrect_value_for_longitude(double dd) { |
54 |
return String.format("Incorrect value for longitude (%f)", dd); |
55 |
} |
56 |
|
57 |
|
58 |
} |