Statistics
| Revision:

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 @ 44154

History | View | Annotate | Download (6.25 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_XTokenX_was_expected_and_XliteralX_was_found(String expected, String found) {
80
        return String.format("A '%s' was expected and '%s' was found", expected, found);
81
    }
82
    
83
    public static String Closing_parenthesis_was_expected_and_XliteralX_was_found(String literal) {
84
        return String.format("Closing parenthesis was expected and '%s' was found", literal);
85
    }
86
    
87
    public static String End_of_string_was_expected_and_end_of_source_was_found() {
88
        return "End of string was expected and end of source was found";
89
    }
90
    
91
    public static String Incorrect_string_length() {
92
        return "Incorrect string length";
93
    }
94
    
95
    public static String Incorrect_identifier_length() {
96
        return "Incorrect identifier length";
97
    }
98
    
99
    public static String unexpected_end_of_source() {
100
        return "Unexpected end of source";
101
    }
102
    
103
    public static String Closing_parenthesis_was_expected_and_end_of_source_was_found() {
104
        return "Closing ')' was expected and end of source was found";
105
    }
106
        
107
    public static String Closing_square_bracket_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 Undefined_variable_XIdentifierX(String identifier) {
112
        return String.format("Undefined variable '%s'", identifier);
113
    }
114

    
115
    public static String Undefined_function_XIdentifierX(String identifier) {
116
        return String.format("Undefined function '%s'", identifier);
117
    }
118
    
119
    public static String Number_of_argument_mistmatch_in_operator_XIdentifierX_expected_1_got_XargcX(String identifier, int argc) {
120
        return String.format("Number of argument mistmatch in operator '%s', expected 1 got %d", identifier, argc);
121
    }
122

    
123
    public static String Number_of_argument_mistmatch_in_operator_XIdentifierX_expected_2_got_XargcX(String identifier, int argc) {
124
        return String.format("Number of argument mistmatch in operator '%s', expected 2 got %d", identifier, argc);
125
    }
126

    
127
    public static String Number_of_argument_mistmatch_in_function_XIdentifierX_expected_XexpectedX_got_XfoundX(String identifier, int expected, int found) {
128
        return String.format("Number of argument mistmatch in function '%s', expected %d got %d", identifier, expected, found);
129
    }
130

    
131
    public static String Number_of_argument_mistmatch_in_function_XIdentifierX_expected_XexpectedX_got_XfoundX(String identifier, Range expected, int found) {
132
        return String.format("Number of argument mistmatch in function '%s', expected %s got %d", identifier, expected.toString(), found);
133
    }
134

    
135
    public static String Problems_calling_function_XIdentifierX_with_args_XargsX(String identifier, String args) {
136
        return String.format("Problems calling function '%s' with args %s", identifier, args);
137
    }
138

    
139
    static String Use_single_quotes_to_enter_literal_strings() {
140
        return "Use single quotes to enter literal strings.";
141
    }
142

    
143
    static String The_operator_greater_than_or_equal_is_ge() {
144
        return "The operator 'greater than or equal' is '>='.";
145
    }
146

    
147
    static String The_operator_less_than_or_equal_is_ge() {
148
        return "The operator 'less than or equal' is '<='.";
149
    }
150

    
151
    static String Maximum_recursion_limit_exceeded() {
152
        return "Maximum recursion limit exceeded.";
153
    }
154

    
155

    
156
}