public class SKDFormat
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
ALN |
static char |
AMCHAR |
static int |
AMOUNT |
static int |
BLOB |
static int |
CLOB |
static int |
CRYPTO |
static int |
CRYPTOX |
static int |
DATE |
static java.lang.String |
DATESEP |
static int |
DATETIME |
static char |
DAYCHAR |
static int |
DECIMAL |
static int |
DURATION |
static int |
FLOAT |
static int |
GL |
static char |
HOUR12CHAR |
static char |
HOUR24CHAR |
static int |
INTEGER |
static int |
LONGALN |
static int |
LOWER |
static char |
MINCHAR |
static double |
MINSPERHOUR |
static char |
MONTHCHAR |
static char |
SECONDCHAR |
static java.lang.String |
SEPERATORS |
static int |
SMALLINT |
static int |
TIME |
static java.lang.String |
TIMESEP |
static int |
UDTYPE |
static int |
UNLIMITEDPLACES |
static int |
UPPER |
static char |
YEARCHAR |
static int |
YORN |
Constructor and Description |
---|
SKDFormat(SKDUserLocaleData skdLocale) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
booleanToString(boolean b,
java.util.Locale l)
Converts a boolean value to a string value.
|
java.lang.String |
convertToStoreYNValue(java.lang.String val,
java.util.Locale l)
Converts the YORN value to Store YORN value
|
java.lang.String |
dateTimeToDisplayString(java.util.Date d,
java.util.Locale l)
Convert a date to a datetime string using the specified locale and time zone.
|
java.lang.String |
dateTimeToDisplayString(java.util.Date d,
java.util.Locale l,
java.util.TimeZone tz)
Convert a date to a datetime string using the specified locale and time zone.
|
java.lang.String |
dateTimeToParseString(java.util.Date d,
java.util.Locale l,
java.util.TimeZone tz)
Convert a date to a parse datetime string using the specified locale and time zone.
|
java.lang.String |
dateTimeToString(java.util.Date d,
java.util.Locale l,
java.util.TimeZone tz) |
java.lang.String |
dateToString(java.util.Date d,
java.util.Locale l,
java.util.TimeZone tz)
Convert a date to a string using the specified locale and time zone.
|
java.lang.String |
doubleToDuration(double d)
Convert a double value to a string using the specified locale.
|
java.lang.String |
doubleToString(double d,
int places,
java.util.Locale l,
boolean groupingInFormat)
Convert a double to a string, setting the number of decimal places using
the specified locale.
|
double |
durationToDouble(java.lang.String s,
java.util.Locale l)
Convert a duation string to a double value using the specified locale.
|
static java.util.Date |
getDateOnly(java.util.Date date)
Set time portion of passed date to 00:00:00
|
java.lang.String |
getDatePattern() |
java.lang.String |
getTimePattern() |
int[] |
parseDateTime(java.lang.String s,
java.util.Locale l,
java.lang.String pattern)
Break a date, datetime or time string into constituent parts.
|
boolean |
stringToBoolean(java.lang.String s,
java.util.Locale l)
Convert a string to a boolean value specific locale
|
java.util.Date |
stringToDate(java.lang.String s,
java.util.Locale l,
java.util.TimeZone tz)
Convert a string to a date using the specified locale and time zone
|
java.util.Date |
stringToDateTime(java.lang.String s,
java.util.Locale l,
java.util.TimeZone tz)
Convet a datetime string to a date using the specified locale and time zone.
|
double |
stringToDouble(java.lang.String s,
java.util.Locale l)
convert a double to string using the specified locale
|
int |
stringToInt(java.lang.String s,
java.util.Locale l)
Convert a string to an integer using the specified locale
|
java.util.Date |
stringToTime(java.lang.String s,
java.util.Locale l,
java.util.TimeZone tz)
Convert a time string to a date using the specified locale and time zone.
|
java.lang.String |
timeToDisplayString(java.util.Date d,
java.util.Locale l,
java.util.TimeZone tz)
Convert a date to time string using the specified locale and time zone.
|
java.lang.String |
timeToParseString(java.util.Date d,
java.util.Locale l,
java.util.TimeZone tz)
Convert a date to time string using the specified locale and time zone.
|
public static final int ALN
public static final int UPPER
public static final int LOWER
public static final int DATE
public static final int DATETIME
public static final int TIME
public static final int INTEGER
public static final int SMALLINT
public static final int FLOAT
public static final int DECIMAL
public static final int DURATION
public static final int AMOUNT
public static final int YORN
public static final int GL
public static final int LONGALN
public static final int CRYPTO
public static final int CRYPTOX
public static final int CLOB
public static final int BLOB
public static final int UDTYPE
public static final int UNLIMITEDPLACES
public static final java.lang.String TIMESEP
public static final java.lang.String DATESEP
public static final char YEARCHAR
public static final char MONTHCHAR
public static final char DAYCHAR
public static final char AMCHAR
public static final char MINCHAR
public static final char HOUR24CHAR
public static final char HOUR12CHAR
public static final char SECONDCHAR
public static final java.lang.String SEPERATORS
public static final double MINSPERHOUR
public SKDFormat(SKDUserLocaleData skdLocale)
public java.util.Date stringToDate(java.lang.String s, java.util.Locale l, java.util.TimeZone tz) throws SKDAppletException
SKDAppletException
public int[] parseDateTime(java.lang.String s, java.util.Locale l, java.lang.String pattern) throws SKDAppletException
SKDAppletException
public int stringToInt(java.lang.String s, java.util.Locale l) throws SKDAppletException
SKDAppletException
public java.util.Date stringToDateTime(java.lang.String s, java.util.Locale l, java.util.TimeZone tz) throws SKDAppletException
SKDAppletException
public static java.util.Date getDateOnly(java.util.Date date)
date
- public java.util.Date stringToTime(java.lang.String s, java.util.Locale l, java.util.TimeZone tz) throws SKDAppletException
SKDAppletException
public java.lang.String dateTimeToDisplayString(java.util.Date d, java.util.Locale l, java.util.TimeZone tz)
public java.lang.String dateTimeToDisplayString(java.util.Date d, java.util.Locale l)
public java.lang.String dateTimeToParseString(java.util.Date d, java.util.Locale l, java.util.TimeZone tz)
public java.lang.String dateToString(java.util.Date d, java.util.Locale l, java.util.TimeZone tz)
public java.lang.String timeToDisplayString(java.util.Date d, java.util.Locale l, java.util.TimeZone tz)
public java.lang.String timeToParseString(java.util.Date d, java.util.Locale l, java.util.TimeZone tz)
public boolean stringToBoolean(java.lang.String s, java.util.Locale l) throws SKDAppletException
SKDAppletException
public java.lang.String convertToStoreYNValue(java.lang.String val, java.util.Locale l) throws SKDAppletException
SKDAppletException
public java.lang.String booleanToString(boolean b, java.util.Locale l)
public java.lang.String doubleToDuration(double d)
public double durationToDouble(java.lang.String s, java.util.Locale l) throws SKDAppletException
SKDAppletException
public double stringToDouble(java.lang.String s, java.util.Locale l) throws SKDAppletException
SKDAppletException
public java.lang.String getDatePattern()
public java.lang.String getTimePattern()
public java.lang.String dateTimeToString(java.util.Date d, java.util.Locale l, java.util.TimeZone tz)
public java.lang.String doubleToString(double d, int places, java.util.Locale l, boolean groupingInFormat)