1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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  }