001: /**
002: * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003: *
004: * Permission is hereby granted, free of charge, to any person obtaining a copy
005: * of this software and associated documentation files (the "Software"), to deal
006: * in the Software without restriction, including without limitation the rights
007: * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008: * copies of the Software, and to permit persons to whom the Software is
009: * furnished to do so, subject to the following conditions:
010: *
011: * The above copyright notice and this permission notice shall be included in
012: * all copies or substantial portions of the Software.
013: *
014: * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015: * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016: * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017: * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018: * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019: * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020: * SOFTWARE.
021: */package com.liferay.portal.kernel.util;
022:
023: /**
024: * <a href="GetterUtil_IW.java.html"><b><i>View Source</i></b></a>
025: *
026: * @author Brian Wing Shun Chan
027: *
028: */
029: public class GetterUtil_IW {
030: public static GetterUtil_IW getInstance() {
031: return _instance;
032: }
033:
034: public boolean getBoolean(java.lang.String value) {
035: return GetterUtil.getBoolean(value);
036: }
037:
038: public boolean getBoolean(java.lang.String value,
039: boolean defaultValue) {
040: return GetterUtil.getBoolean(value, defaultValue);
041: }
042:
043: public boolean[] getBooleanValues(java.lang.String[] values) {
044: return GetterUtil.getBooleanValues(values);
045: }
046:
047: public boolean[] getBooleanValues(java.lang.String[] values,
048: boolean[] defaultValue) {
049: return GetterUtil.getBooleanValues(values, defaultValue);
050: }
051:
052: public java.util.Date getDate(java.lang.String value,
053: java.text.DateFormat df) {
054: return GetterUtil.getDate(value, df);
055: }
056:
057: public java.util.Date getDate(java.lang.String value,
058: java.text.DateFormat df, java.util.Date defaultValue) {
059: return GetterUtil.getDate(value, df, defaultValue);
060: }
061:
062: public double getDouble(java.lang.String value) {
063: return GetterUtil.getDouble(value);
064: }
065:
066: public double getDouble(java.lang.String value, double defaultValue) {
067: return GetterUtil.getDouble(value, defaultValue);
068: }
069:
070: public double[] getDoubleValues(java.lang.String[] values) {
071: return GetterUtil.getDoubleValues(values);
072: }
073:
074: public double[] getDoubleValues(java.lang.String[] values,
075: double[] defaultValue) {
076: return GetterUtil.getDoubleValues(values, defaultValue);
077: }
078:
079: public float getFloat(java.lang.String value) {
080: return GetterUtil.getFloat(value);
081: }
082:
083: public float getFloat(java.lang.String value, float defaultValue) {
084: return GetterUtil.getFloat(value, defaultValue);
085: }
086:
087: public float[] getFloatValues(java.lang.String[] values) {
088: return GetterUtil.getFloatValues(values);
089: }
090:
091: public float[] getFloatValues(java.lang.String[] values,
092: float[] defaultValue) {
093: return GetterUtil.getFloatValues(values, defaultValue);
094: }
095:
096: public int getInteger(java.lang.String value) {
097: return GetterUtil.getInteger(value);
098: }
099:
100: public int getInteger(java.lang.String value, int defaultValue) {
101: return GetterUtil.getInteger(value, defaultValue);
102: }
103:
104: public int[] getIntegerValues(java.lang.String[] values) {
105: return GetterUtil.getIntegerValues(values);
106: }
107:
108: public int[] getIntegerValues(java.lang.String[] values,
109: 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,
126: long[] defaultValue) {
127: return GetterUtil.getLongValues(values, defaultValue);
128: }
129:
130: public short getShort(java.lang.String value) {
131: return GetterUtil.getShort(value);
132: }
133:
134: public short getShort(java.lang.String value, short defaultValue) {
135: return GetterUtil.getShort(value, defaultValue);
136: }
137:
138: public short[] getShortValues(java.lang.String[] values) {
139: return GetterUtil.getShortValues(values);
140: }
141:
142: public short[] getShortValues(java.lang.String[] values,
143: short[] defaultValue) {
144: return GetterUtil.getShortValues(values, defaultValue);
145: }
146:
147: public java.lang.String getString(java.lang.String value) {
148: return GetterUtil.getString(value);
149: }
150:
151: public java.lang.String getString(java.lang.String value,
152: java.lang.String defaultValue) {
153: return GetterUtil.getString(value, defaultValue);
154: }
155:
156: public boolean get(java.lang.String value, boolean defaultValue) {
157: return GetterUtil.get(value, defaultValue);
158: }
159:
160: public java.util.Date get(java.lang.String value,
161: java.text.DateFormat df, java.util.Date defaultValue) {
162: return GetterUtil.get(value, df, defaultValue);
163: }
164:
165: public double get(java.lang.String value, double defaultValue) {
166: return GetterUtil.get(value, defaultValue);
167: }
168:
169: public float get(java.lang.String value, float defaultValue) {
170: return GetterUtil.get(value, defaultValue);
171: }
172:
173: public int get(java.lang.String value, int defaultValue) {
174: return GetterUtil.get(value, defaultValue);
175: }
176:
177: public long get(java.lang.String value, long defaultValue) {
178: return GetterUtil.get(value, defaultValue);
179: }
180:
181: public short get(java.lang.String value, short defaultValue) {
182: return GetterUtil.get(value, defaultValue);
183: }
184:
185: public java.lang.String get(java.lang.String value,
186: java.lang.String defaultValue) {
187: return GetterUtil.get(value, defaultValue);
188: }
189:
190: private GetterUtil_IW() {
191: }
192:
193: private static GetterUtil_IW _instance = new GetterUtil_IW();
194: }
|