Uses of Interface
org.javalite.conversion.Converter
Packages that use Converter
Package
Description
ActiveJDBC - the agile Java ORM.
Classes to manage data conversions, se Data conversions
Data validation , see
Validations.
-
Uses of Converter in org.javalite.activejdbc
Methods in org.javalite.activejdbc with parameters of type ConverterModifier and TypeMethodDescriptionprotected static void
Model.convertWith(Converter converter, String... attributeNames)
Registers a custom converter for the specified attributes.static void
ModelDelegate.convertWith(Class<? extends Model> clazz, Converter converter, String... attributeNames)
-
Uses of Converter in org.javalite.conversion
Classes in org.javalite.conversion that implement ConverterModifier and TypeClassDescriptionclass
Converts instances of String that are empty or contain only whitespaces to null.class
ConverterAdapter<S,T>
Converts instances of S to T.class
class
class
class
Converts instances of Number that are zero to null. -
Uses of Converter in org.javalite.validation
Methods in org.javalite.validation that return ConverterModifier and TypeMethodDescription<S, T> Converter<S,T>
ValidationSupport.converterForClass(String attribute, Class<S> sourceClass, Class<T> destinationClass)
Returns converter for specified model attribute, able to convert from sourceClass to destinationClass.ValidationSupport.converterForValue(String attribute, Object value, Class<T> destinationClass)
Returns converter for specified model attribute, able to convert value to an instance of destinationClass.Methods in org.javalite.validation with parameters of type ConverterModifier and TypeMethodDescriptionvoid
ValidationSupport.convertWith(Converter converter, String attribute)
Registers converter for specified model attribute.void
ValidationSupport.convertWith(Converter converter, String... attributes)
Registers converter for specified model attributes.