Package dev.orne.beans.converters
Class OrneBeansConverters
java.lang.Object
dev.orne.beans.converters.OrneBeansConverters
Utility class for registration of default implementations of Orne custom converters
.Registers the following converters:
- Beans converters
- Net converters
- Util converters
- Time converters
- Since:
- 0.1
- Version:
- 1.0, 2020-05
- Author:
- (w) Iker Hernaez
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
register()
Registers all the Orne custom converters inConvertUtils
.static void
register
(boolean defaultToNull) Registers all the Orne custom converters inConvertUtils
.static void
register
(@NotNull org.apache.commons.beanutils.ConvertUtilsBean converter) Registers all the Orne custom converters in the specifiedConvertUtilsBean
.static void
register
(@NotNull org.apache.commons.beanutils.ConvertUtilsBean converter, boolean defaultToNull) Registers all the Orne custom converters in the specifiedConvertUtilsBean
.static void
Registers all the Orne custom converters fordev.orne.beans
inConvertUtils
.static void
registerBeansConversors
(boolean defaultToNull) Registers all the Orne custom converters fordev.orne.beans
inConvertUtils
.static void
registerBeansConversors
(@NotNull org.apache.commons.beanutils.ConvertUtilsBean converter) Registers all the Orne custom converters fordev.orne.beans
in the specifiedConvertUtilsBean
.static void
registerBeansConversors
(@NotNull org.apache.commons.beanutils.ConvertUtilsBean converter, boolean defaultToNull) Registers all the Orne custom converters fordev.orne.beans
in the specifiedConvertUtilsBean
.static void
Registers all the Orne custom converters forjava.util
inConvertUtils
.static void
registerNetConversors
(boolean defaultToNull) Registers all the Orne custom converters forjava.net
inConvertUtils
.static void
registerNetConversors
(@NotNull org.apache.commons.beanutils.ConvertUtilsBean converter) Registers all the Orne custom converters forjava.net
in the specifiedConvertUtilsBean
.static void
registerNetConversors
(@NotNull org.apache.commons.beanutils.ConvertUtilsBean converter, boolean defaultToNull) Registers all the Orne custom converters forjava.net
in the specifiedConvertUtilsBean
.static void
Registers all the Orne custom converters forjava.time
inConvertUtils
.static void
registerTimeConversors
(boolean defaultToNull) Registers all the Orne custom converters forjava.time
inConvertUtils
.static void
registerTimeConversors
(@NotNull org.apache.commons.beanutils.ConvertUtilsBean converter) Registers all the Orne custom converters forjava.time
in the specifiedConvertUtilsBean
.static void
registerTimeConversors
(@NotNull org.apache.commons.beanutils.ConvertUtilsBean converter, boolean defaultToNull) Registers all the Orne custom converters forjava.time
in the specifiedConvertUtilsBean
.static void
Registers all the Orne custom converters forjava.util
inConvertUtils
.static void
registerUtilConversors
(boolean defaultToNull) Registers all the Orne custom converters forjava.util
inConvertUtils
.static void
registerUtilConversors
(@NotNull org.apache.commons.beanutils.ConvertUtilsBean converter) Registers all the Orne custom converters forjava.util
in the specifiedConvertUtilsBean
.static void
registerUtilConversors
(@NotNull org.apache.commons.beanutils.ConvertUtilsBean converter, boolean defaultToNull) Registers all the Orne custom converters forjava.util
in the specifiedConvertUtilsBean
.
-
Method Details
-
register
public static void register()Registers all the Orne custom converters inConvertUtils
.- See Also:
-
ConvertUtils.register(Converter, Class)
-
register
public static void register(boolean defaultToNull) Registers all the Orne custom converters inConvertUtils
.- Parameters:
defaultToNull
- Ifnull
must be returned on missing (null
) values and on conversion exceptions- See Also:
-
ConvertUtils.register(Converter, Class)
-
register
public static void register(@NotNull @NotNull org.apache.commons.beanutils.ConvertUtilsBean converter) Registers all the Orne custom converters in the specifiedConvertUtilsBean
.- Parameters:
converter
- Converter to register the Orne converters to- See Also:
-
ConvertUtilsBean.register(Converter, Class)
-
register
public static void register(@NotNull @NotNull org.apache.commons.beanutils.ConvertUtilsBean converter, boolean defaultToNull) Registers all the Orne custom converters in the specifiedConvertUtilsBean
.- Parameters:
converter
- Converter to register the Orne converters todefaultToNull
- Ifnull
must be returned on missing (null
) values and on conversion exceptions- See Also:
-
ConvertUtilsBean.register(Converter, Class)
-
registerBeansConversors
public static void registerBeansConversors()Registers all the Orne custom converters fordev.orne.beans
inConvertUtils
.- See Also:
-
ConvertUtils.register(Converter, Class)
-
registerBeansConversors
public static void registerBeansConversors(boolean defaultToNull) Registers all the Orne custom converters fordev.orne.beans
inConvertUtils
.- Parameters:
defaultToNull
- Ifnull
must be returned on missing (null
) values and on conversion exceptions- See Also:
-
ConvertUtils.register(Converter, Class)
-
registerBeansConversors
public static void registerBeansConversors(@NotNull @NotNull org.apache.commons.beanutils.ConvertUtilsBean converter) Registers all the Orne custom converters fordev.orne.beans
in the specifiedConvertUtilsBean
.- Parameters:
converter
- Converter to register the Orne converters to- See Also:
-
ConvertUtilsBean.register(Converter, Class)
-
registerBeansConversors
public static void registerBeansConversors(@NotNull @NotNull org.apache.commons.beanutils.ConvertUtilsBean converter, boolean defaultToNull) Registers all the Orne custom converters fordev.orne.beans
in the specifiedConvertUtilsBean
.- Parameters:
converter
- Converter to register the Orne converters todefaultToNull
- Ifnull
must be returned on missing (null
) values and on conversion exceptions- See Also:
-
ConvertUtilsBean.register(Converter, Class)
-
registerNetConversors
public static void registerNetConversors()Registers all the Orne custom converters forjava.util
inConvertUtils
.- See Also:
-
ConvertUtils.register(Converter, Class)
-
registerNetConversors
public static void registerNetConversors(boolean defaultToNull) Registers all the Orne custom converters forjava.net
inConvertUtils
.- Parameters:
defaultToNull
- Ifnull
must be returned on missing (null
) values and on conversion exceptions- See Also:
-
ConvertUtils.register(Converter, Class)
-
registerNetConversors
public static void registerNetConversors(@NotNull @NotNull org.apache.commons.beanutils.ConvertUtilsBean converter) Registers all the Orne custom converters forjava.net
in the specifiedConvertUtilsBean
.- Parameters:
converter
- Converter to register the Orne converters to- See Also:
-
ConvertUtilsBean.register(Converter, Class)
-
registerNetConversors
public static void registerNetConversors(@NotNull @NotNull org.apache.commons.beanutils.ConvertUtilsBean converter, boolean defaultToNull) Registers all the Orne custom converters forjava.net
in the specifiedConvertUtilsBean
.- Parameters:
converter
- Converter to register the Orne converters todefaultToNull
- Ifnull
must be returned on missing (null
) values and on conversion exceptions- See Also:
-
ConvertUtilsBean.register(Converter, Class)
-
registerUtilConversors
public static void registerUtilConversors()Registers all the Orne custom converters forjava.util
inConvertUtils
.- See Also:
-
ConvertUtils.register(Converter, Class)
-
registerUtilConversors
public static void registerUtilConversors(boolean defaultToNull) Registers all the Orne custom converters forjava.util
inConvertUtils
.- Parameters:
defaultToNull
- Ifnull
must be returned on missing (null
) values and on conversion exceptions- See Also:
-
ConvertUtils.register(Converter, Class)
-
registerUtilConversors
public static void registerUtilConversors(@NotNull @NotNull org.apache.commons.beanutils.ConvertUtilsBean converter) Registers all the Orne custom converters forjava.util
in the specifiedConvertUtilsBean
.- Parameters:
converter
- Converter to register the Orne converters to- See Also:
-
ConvertUtilsBean.register(Converter, Class)
-
registerUtilConversors
public static void registerUtilConversors(@NotNull @NotNull org.apache.commons.beanutils.ConvertUtilsBean converter, boolean defaultToNull) Registers all the Orne custom converters forjava.util
in the specifiedConvertUtilsBean
.- Parameters:
converter
- Converter to register the Orne converters todefaultToNull
- Ifnull
must be returned on missing (null
) values and on conversion exceptions- See Also:
-
ConvertUtilsBean.register(Converter, Class)
-
registerTimeConversors
public static void registerTimeConversors()Registers all the Orne custom converters forjava.time
inConvertUtils
.- See Also:
-
ConvertUtils.register(Converter, Class)
-
registerTimeConversors
public static void registerTimeConversors(boolean defaultToNull) Registers all the Orne custom converters forjava.time
inConvertUtils
.- Parameters:
defaultToNull
- Ifnull
must be returned on missing (null
) values and on conversion exceptions- See Also:
-
ConvertUtils.register(Converter, Class)
-
registerTimeConversors
public static void registerTimeConversors(@NotNull @NotNull org.apache.commons.beanutils.ConvertUtilsBean converter) Registers all the Orne custom converters forjava.time
in the specifiedConvertUtilsBean
.- Parameters:
converter
- Converter to register the Orne converters to- See Also:
-
ConvertUtilsBean.register(Converter, Class)
-
registerTimeConversors
public static void registerTimeConversors(@NotNull @NotNull org.apache.commons.beanutils.ConvertUtilsBean converter, boolean defaultToNull) Registers all the Orne custom converters forjava.time
in the specifiedConvertUtilsBean
.- Parameters:
converter
- Converter to register the Orne converters todefaultToNull
- Ifnull
must be returned on missing (null
) values and on conversion exceptions- See Also:
-
ConvertUtilsBean.register(Converter, Class)
-