1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portal.kernel.util;
24  
25  /**
26   * <a href="GetterUtil_IW.java.html"><b><i>View Source</i></b></a>
27   *
28   * @author Brian Wing Shun Chan
29   *
30   */
31  public class GetterUtil_IW {
32      public static GetterUtil_IW getInstance() {
33          return _instance;
34      }
35  
36      public boolean getBoolean(java.lang.String value) {
37          return GetterUtil.getBoolean(value);
38      }
39  
40      public boolean getBoolean(java.lang.String value, boolean defaultValue) {
41          return GetterUtil.getBoolean(value, defaultValue);
42      }
43  
44      public boolean[] getBooleanValues(java.lang.String[] values) {
45          return GetterUtil.getBooleanValues(values);
46      }
47  
48      public boolean[] getBooleanValues(java.lang.String[] values,
49          boolean[] defaultValue) {
50          return GetterUtil.getBooleanValues(values, defaultValue);
51      }
52  
53      public java.util.Date getDate(java.lang.String value,
54          java.text.DateFormat df) {
55          return GetterUtil.getDate(value, df);
56      }
57  
58      public java.util.Date getDate(java.lang.String value,
59          java.text.DateFormat df, java.util.Date defaultValue) {
60          return GetterUtil.getDate(value, df, defaultValue);
61      }
62  
63      public double getDouble(java.lang.String value) {
64          return GetterUtil.getDouble(value);
65      }
66  
67      public double getDouble(java.lang.String value, double defaultValue) {
68          return GetterUtil.getDouble(value, defaultValue);
69      }
70  
71      public double[] getDoubleValues(java.lang.String[] values) {
72          return GetterUtil.getDoubleValues(values);
73      }
74  
75      public double[] getDoubleValues(java.lang.String[] values,
76          double[] defaultValue) {
77          return GetterUtil.getDoubleValues(values, defaultValue);
78      }
79  
80      public float getFloat(java.lang.String value) {
81          return GetterUtil.getFloat(value);
82      }
83  
84      public float getFloat(java.lang.String value, float defaultValue) {
85          return GetterUtil.getFloat(value, defaultValue);
86      }
87  
88      public float[] getFloatValues(java.lang.String[] values) {
89          return GetterUtil.getFloatValues(values);
90      }
91  
92      public float[] getFloatValues(java.lang.String[] values,
93          float[] defaultValue) {
94          return GetterUtil.getFloatValues(values, defaultValue);
95      }
96  
97      public int getInteger(java.lang.String value) {
98          return GetterUtil.getInteger(value);
99      }
100 
101     public int getInteger(java.lang.String value, int defaultValue) {
102         return GetterUtil.getInteger(value, defaultValue);
103     }
104 
105     public int[] getIntegerValues(java.lang.String[] values) {
106         return GetterUtil.getIntegerValues(values);
107     }
108 
109     public int[] getIntegerValues(java.lang.String[] values, int[] defaultValue) {
110         return GetterUtil.getIntegerValues(values, defaultValue);
111     }
112 
113     public long getLong(java.lang.String value) {
114         return GetterUtil.getLong(value);
115     }
116 
117     public long getLong(java.lang.String value, long defaultValue) {
118         return GetterUtil.getLong(value, defaultValue);
119     }
120 
121     public long[] getLongValues(java.lang.String[] values) {
122         return GetterUtil.getLongValues(values);
123     }
124 
125     public long[] getLongValues(java.lang.String[] values, long[] defaultValue) {
126         return GetterUtil.getLongValues(values, defaultValue);
127     }
128 
129     public short getShort(java.lang.String value) {
130         return GetterUtil.getShort(value);
131     }
132 
133     public short getShort(java.lang.String value, short defaultValue) {
134         return GetterUtil.getShort(value, defaultValue);
135     }
136 
137     public short[] getShortValues(java.lang.String[] values) {
138         return GetterUtil.getShortValues(values);
139     }
140 
141     public short[] getShortValues(java.lang.String[] values,
142         short[] defaultValue) {
143         return GetterUtil.getShortValues(values, defaultValue);
144     }
145 
146     public java.lang.String getString(java.lang.String value) {
147         return GetterUtil.getString(value);
148     }
149 
150     public java.lang.String getString(java.lang.String value,
151         java.lang.String defaultValue) {
152         return GetterUtil.getString(value, defaultValue);
153     }
154 
155     public boolean get(java.lang.String value, boolean defaultValue) {
156         return GetterUtil.get(value, defaultValue);
157     }
158 
159     public java.util.Date get(java.lang.String value, java.text.DateFormat df,
160         java.util.Date defaultValue) {
161         return GetterUtil.get(value, df, defaultValue);
162     }
163 
164     public double get(java.lang.String value, double defaultValue) {
165         return GetterUtil.get(value, defaultValue);
166     }
167 
168     public float get(java.lang.String value, float defaultValue) {
169         return GetterUtil.get(value, defaultValue);
170     }
171 
172     public int get(java.lang.String value, int defaultValue) {
173         return GetterUtil.get(value, defaultValue);
174     }
175 
176     public long get(java.lang.String value, long defaultValue) {
177         return GetterUtil.get(value, defaultValue);
178     }
179 
180     public short get(java.lang.String value, short defaultValue) {
181         return GetterUtil.get(value, defaultValue);
182     }
183 
184     public java.lang.String get(java.lang.String value,
185         java.lang.String defaultValue) {
186         return GetterUtil.get(value, defaultValue);
187     }
188 
189     private GetterUtil_IW() {
190     }
191 
192     private static GetterUtil_IW _instance = new GetterUtil_IW();
193 }