com.ontimize.util
Class ParseUtils
java.lang.Object
com.ontimize.util.ParseUtils
- public class ParseUtils
- extends java.lang.Object
|
Method Summary |
static boolean |
getBoolean(java.lang.String s,
boolean defaultValue)
|
static javax.swing.border.Border |
getBorder(java.lang.String borderName,
javax.swing.border.Border defaultBorder)
|
static int |
getCalendarField(java.lang.String calendarField)
|
static java.lang.String |
getCamelCase(java.lang.String token)
|
static java.lang.String |
getCamelCase(java.lang.String[] tokens)
|
static java.lang.Class |
getClassType(int classType)
|
static java.awt.Color |
getColor(java.lang.String string,
java.awt.Color defaultColor)
|
static javax.swing.ImageIcon |
getDisabledImageIcon(java.lang.String disabledIconPath,
java.lang.String iconPath,
javax.swing.ImageIcon defaultValue)
|
static double |
getDouble(java.lang.String s,
double defaultValue)
|
static float |
getFloat(java.lang.String s,
float defaultValue)
|
static java.awt.Font |
getFont(java.lang.String string,
java.awt.Font defaultFont)
|
static java.awt.Image |
getImage(java.lang.String path,
java.awt.Image defaultValue)
|
static javax.swing.ImageIcon |
getImageIcon(java.lang.String path,
javax.swing.ImageIcon defaultValue)
|
static int |
getInteger(java.lang.String s,
int defaultValue)
|
static int |
getIntTypeForName(java.lang.String typeName)
|
static java.awt.Insets |
getMargin(java.lang.String string,
java.awt.Insets defaultMargin)
|
static java.awt.Paint |
getPaint(java.lang.String string,
java.awt.Paint defaultPaint)
|
static javax.swing.ImageIcon |
getPressedImageIcon(java.lang.String pressedIconPath,
java.lang.String iconPath,
javax.swing.ImageIcon defaultValue)
|
static javax.swing.ImageIcon |
getRolloverImageIcon(java.lang.String rolloverIconPath,
java.lang.String iconPath,
javax.swing.ImageIcon defaultValue)
|
static int |
getSQLType(int parseType,
int defaultType)
|
static int |
getSQLType(java.lang.String typeName)
|
static java.lang.String |
getString(java.lang.String s,
java.lang.String defaultValue)
|
static int |
getTemplateDataType(java.lang.String templateType,
int defaultTemplateType)
|
static int |
getTypeForName(java.lang.String typeName,
int defaultValue)
|
static java.lang.Object |
getValueForClassType(java.lang.Object object,
int classType)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BIG_DECIMAL
public static final java.lang.String BIG_DECIMAL
- See Also:
- Constant Field Values
BIG_INTEGER
public static final java.lang.String BIG_INTEGER
- See Also:
- Constant Field Values
DOUBLE
public static final java.lang.String DOUBLE
- See Also:
- Constant Field Values
LONG
public static final java.lang.String LONG
- See Also:
- Constant Field Values
SHORT
public static final java.lang.String SHORT
- See Also:
- Constant Field Values
INTEGER
public static final java.lang.String INTEGER
- See Also:
- Constant Field Values
STRING
public static final java.lang.String STRING
- See Also:
- Constant Field Values
FLOAT
public static final java.lang.String FLOAT
- See Also:
- Constant Field Values
BIG_DECIMAL_
public static final int BIG_DECIMAL_
- See Also:
- Constant Field Values
BIG_INTEGER_
public static final int BIG_INTEGER_
- See Also:
- Constant Field Values
DOUBLE_
public static final int DOUBLE_
- See Also:
- Constant Field Values
LONG_
public static final int LONG_
- See Also:
- Constant Field Values
INTEGER_
public static final int INTEGER_
- See Also:
- Constant Field Values
SHORT_
public static final int SHORT_
- See Also:
- Constant Field Values
STRING_
public static final int STRING_
- See Also:
- Constant Field Values
FLOAT_
public static final int FLOAT_
- See Also:
- Constant Field Values
SECOND
public static final java.lang.String SECOND
- See Also:
- Constant Field Values
MINUTE
public static final java.lang.String MINUTE
- See Also:
- Constant Field Values
HOUR
public static final java.lang.String HOUR
- See Also:
- Constant Field Values
DAY
public static final java.lang.String DAY
- See Also:
- Constant Field Values
MONTH
public static final java.lang.String MONTH
- See Also:
- Constant Field Values
YEAR
public static final java.lang.String YEAR
- See Also:
- Constant Field Values
ParseUtils
public ParseUtils()
getBoolean
public static boolean getBoolean(java.lang.String s,
boolean defaultValue)
getInteger
public static int getInteger(java.lang.String s,
int defaultValue)
getString
public static java.lang.String getString(java.lang.String s,
java.lang.String defaultValue)
getDouble
public static double getDouble(java.lang.String s,
double defaultValue)
getFloat
public static float getFloat(java.lang.String s,
float defaultValue)
getImage
public static java.awt.Image getImage(java.lang.String path,
java.awt.Image defaultValue)
getImageIcon
public static javax.swing.ImageIcon getImageIcon(java.lang.String path,
javax.swing.ImageIcon defaultValue)
getBorder
public static javax.swing.border.Border getBorder(java.lang.String borderName,
javax.swing.border.Border defaultBorder)
getFont
public static java.awt.Font getFont(java.lang.String string,
java.awt.Font defaultFont)
getColor
public static java.awt.Color getColor(java.lang.String string,
java.awt.Color defaultColor)
getPaint
public static java.awt.Paint getPaint(java.lang.String string,
java.awt.Paint defaultPaint)
getMargin
public static java.awt.Insets getMargin(java.lang.String string,
java.awt.Insets defaultMargin)
getPressedImageIcon
public static javax.swing.ImageIcon getPressedImageIcon(java.lang.String pressedIconPath,
java.lang.String iconPath,
javax.swing.ImageIcon defaultValue)
getDisabledImageIcon
public static javax.swing.ImageIcon getDisabledImageIcon(java.lang.String disabledIconPath,
java.lang.String iconPath,
javax.swing.ImageIcon defaultValue)
getRolloverImageIcon
public static javax.swing.ImageIcon getRolloverImageIcon(java.lang.String rolloverIconPath,
java.lang.String iconPath,
javax.swing.ImageIcon defaultValue)
getCamelCase
public static java.lang.String getCamelCase(java.lang.String[] tokens)
getCamelCase
public static java.lang.String getCamelCase(java.lang.String token)
getTypeForName
public static int getTypeForName(java.lang.String typeName,
int defaultValue)
getIntTypeForName
public static int getIntTypeForName(java.lang.String typeName)
getSQLType
public static int getSQLType(java.lang.String typeName)
getSQLType
public static int getSQLType(int parseType,
int defaultType)
getValueForClassType
public static java.lang.Object getValueForClassType(java.lang.Object object,
int classType)
getClassType
public static java.lang.Class getClassType(int classType)
getCalendarField
public static int getCalendarField(java.lang.String calendarField)
getTemplateDataType
public static int getTemplateDataType(java.lang.String templateType,
int defaultTemplateType)