01: /*
02: * Copyright 2006 Google Inc.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License"); you may not
05: * use this file except in compliance with the License. You may obtain a copy of
06: * the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12: * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13: * License for the specific language governing permissions and limitations under
14: * the License.
15: */
16:
17: package com.google.gwt.i18n.client;
18:
19: /**
20: * TODO: document me.
21: */
22: public interface TestTypedMessages extends Messages {
23:
24: /**
25: * testAllTypes = int({0}) float({1}), long({2}), boolean({3}), Object({4},
26: * char({5}), byte({6}), short({7});.
27: */
28: public String testAllTypes(int a, float f, long l, boolean bool,
29: Object obj, char c, byte b, short s);
30:
31: // testLotsOfInts = {0}, {1},{2},{3}
32: public String testLotsOfInts(int a, int b, int c, int d);
33:
34: // testSomeObjectTypes = this({0}), StringBuffer({1}), Integer({2}), null{3});
35: public String testSomeObjectTypes(I18NTest test, StringBuffer buf,
36: Integer i, Object giveMeANull);
37:
38: // testSingleQuotes = ''A'', ''{0}'', '','''
39: public String testSingleQuotes(String someArg);
40:
41: // simpleMessageTest={0}
42: String simpleMessageTest(float arg);
43:
44: // stringEscaping= "'\ \\ \\\ & \t \n\r\"\' \ end
45: String stringEscaping(int a);
46: }
|