1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   * 
13   */
14  
15  package com.liferay.portal.kernel.language;
16  
17  import java.util.Locale;
18  
19  import javax.servlet.jsp.PageContext;
20  
21  /**
22   * <a href="UnicodeLanguage.java.html"><b><i>View Source</i></b></a>
23   *
24   * @author Brian Wing Shun Chan
25   */
26  public interface UnicodeLanguage {
27  
28      public String format(Locale locale, String pattern, Object argument);
29  
30      public String format(Locale locale, String pattern, Object[] arguments);
31  
32      public String format(
33          PageContext pageContext, String pattern, LanguageWrapper argument);
34  
35      public String format(
36          PageContext pageContext, String pattern, LanguageWrapper argument,
37          boolean translateArguments);
38  
39      public String format(
40          PageContext pageContext, String pattern, LanguageWrapper[] arguments);
41  
42      public String format(
43          PageContext pageContext, String pattern, LanguageWrapper[] arguments,
44          boolean translateArguments);
45  
46      public String format(
47          PageContext pageContext, String pattern, Object argument);
48  
49      public String format(
50          PageContext pageContext, String pattern, Object argument,
51          boolean translateArguments);
52  
53      public String format(
54          PageContext pageContext, String pattern, Object[] arguments);
55  
56      public String format(
57          PageContext pageContext, String pattern, Object[] arguments,
58          boolean translateArguments);
59  
60      public String get(Locale locale, String key);
61  
62      public String get(Locale locale, String key, String defaultValue);
63  
64      public String get(PageContext pageContext, String key);
65  
66      public String get(PageContext pageContext, String key, String defaultValue);
67  
68      public String getTimeDescription(
69          PageContext pageContext, long milliseconds);
70  
71      public String getTimeDescription(
72          PageContext pageContext, Long milliseconds);
73  
74  }