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.portlet.PortletConfig;
20  
21  import javax.servlet.jsp.PageContext;
22  
23  /**
24   * <a href="UnicodeLanguage.java.html"><b><i>View Source</i></b></a>
25   *
26   * @author Brian Wing Shun Chan
27   */
28  public interface UnicodeLanguage {
29  
30      public String format(Locale locale, String pattern, Object argument);
31  
32      public String format(
33          Locale locale, String pattern, Object argument,
34          boolean translateArguments);
35  
36      public String format(Locale locale, String pattern, Object[] arguments);
37  
38      public String format(
39          Locale locale, String pattern, Object[] arguments,
40          boolean translateArguments);
41  
42      public String format(
43          PageContext pageContext, String pattern, LanguageWrapper argument);
44  
45      public String format(
46          PageContext pageContext, String pattern, LanguageWrapper argument,
47          boolean translateArguments);
48  
49      public String format(
50          PageContext pageContext, String pattern, LanguageWrapper[] arguments);
51  
52      public String format(
53          PageContext pageContext, String pattern, LanguageWrapper[] arguments,
54          boolean translateArguments);
55  
56      public String format(
57          PageContext pageContext, String pattern, Object argument);
58  
59      public String format(
60          PageContext pageContext, String pattern, Object argument,
61          boolean translateArguments);
62  
63      public String format(
64          PageContext pageContext, String pattern, Object[] arguments);
65  
66      public String format(
67          PageContext pageContext, String pattern, Object[] arguments,
68          boolean translateArguments);
69  
70      public String format(
71          PortletConfig portletConfig, Locale locale, String pattern,
72          Object argument);
73  
74      public String format(
75          PortletConfig portletConfig, Locale locale, String pattern,
76          Object argument, boolean translateArguments);
77  
78      public String format(
79          PortletConfig portletConfig, Locale locale, String pattern,
80          Object[] arguments);
81  
82      public String format(
83          PortletConfig portletConfig, Locale locale, String pattern,
84          Object[] arguments, boolean translateArguments);
85  
86      public String get(Locale locale, String key);
87  
88      public String get(Locale locale, String key, String defaultValue);
89  
90      public String get(PageContext pageContext, String key);
91  
92      public String get(PageContext pageContext, String key, String defaultValue);
93  
94      public String get(PortletConfig portletConfig, Locale locale, String key);
95  
96      public String get(
97          PortletConfig portletConfig, Locale locale, String key,
98          String defaultValue);
99  
100     public String getTimeDescription(
101         PageContext pageContext, long milliseconds);
102 
103     public String getTimeDescription(
104         PageContext pageContext, Long milliseconds);
105 
106 }