| java.lang.Object org.apache.commons.beanutils.locale.BaseLocaleConverter org.apache.commons.beanutils.locale.converters.DateLocaleConverter
All known Subclasses: org.apache.commons.beanutils.locale.converters.SqlTimeLocaleConverter, org.apache.commons.beanutils.locale.converters.SqlDateLocaleConverter, org.apache.commons.beanutils.locale.converters.SqlTimestampLocaleConverter,
Constructor Summary | |
public | DateLocaleConverter() Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | DateLocaleConverter(boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | DateLocaleConverter(Locale locale) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | DateLocaleConverter(Locale locale, boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | DateLocaleConverter(Locale locale, String pattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | DateLocaleConverter(Locale locale, String pattern, boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will throw a
org.apache.commons.beanutils.ConversionException if a conversion error occurs. | public | DateLocaleConverter(Object defaultValue) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. | public | DateLocaleConverter(Object defaultValue, boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. | public | DateLocaleConverter(Object defaultValue, Locale locale) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. | public | DateLocaleConverter(Object defaultValue, Locale locale, boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. | public | DateLocaleConverter(Object defaultValue, Locale locale, String pattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. | public | DateLocaleConverter(Object defaultValue, Locale locale, String pattern, boolean locPattern) Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. |
Method Summary | |
public boolean | isLenient() Returns whether date formatting is lenient. | protected Object | parse(Object value, String pattern) Convert the specified locale-sensitive input object into an output object of the
specified type. | public void | setLenient(boolean lenient) Specify whether or not date-time parsing should be lenient. |
isLenient | boolean isLenient(Code) | | Should the date conversion be lenient?
|
DateLocaleConverter | public DateLocaleConverter(Object defaultValue)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. The locale is the default locale for
this instance of the Java Virtual Machine and an unlocalized pattern is used
for the convertion.
Parameters: defaultValue - The default value to be returned |
DateLocaleConverter | public DateLocaleConverter(Object defaultValue, boolean locPattern)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. The locale is the default locale for
this instance of the Java Virtual Machine.
Parameters: defaultValue - The default value to be returned Parameters: locPattern - Indicate whether the pattern is localized or not |
DateLocaleConverter | public DateLocaleConverter(Object defaultValue, Locale locale)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. An unlocalized pattern is used for the convertion.
Parameters: defaultValue - The default value to be returned Parameters: locale - The locale |
DateLocaleConverter | public DateLocaleConverter(Object defaultValue, Locale locale, boolean locPattern)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs.
Parameters: defaultValue - The default value to be returned Parameters: locale - The locale Parameters: locPattern - Indicate whether the pattern is localized or not |
DateLocaleConverter | public DateLocaleConverter(Object defaultValue, Locale locale, String pattern)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs. An unlocalized pattern is used for the convertion.
Parameters: defaultValue - The default value to be returned Parameters: locale - The locale Parameters: pattern - The convertion pattern |
DateLocaleConverter | public DateLocaleConverter(Object defaultValue, Locale locale, String pattern, boolean locPattern)(Code) | | Create a
org.apache.commons.beanutils.locale.LocaleConverter
that will return the specified default value
if a conversion error occurs.
Parameters: defaultValue - The default value to be returned Parameters: locale - The locale Parameters: pattern - The convertion pattern Parameters: locPattern - Indicate whether the pattern is localized or not |
setLenient | public void setLenient(boolean lenient)(Code) | | Specify whether or not date-time parsing should be lenient.
Parameters: lenient - true if the DateFormat used for formatting should be lenient See Also: java.text.DateFormat.setLenient |
|
|