Uses of Interface
com.expediagroup.beans.transformer.BeanTransformer
Package | Description |
---|---|
com.expediagroup.beans |
Bean transformer main package.
|
com.expediagroup.beans.populator |
Populator objects package.
|
com.expediagroup.beans.transformer |
Bean transformer package.
|
com.expediagroup.map.transformer |
Map transformer package.
|
-
Uses of BeanTransformer in com.expediagroup.beans
Methods in com.expediagroup.beans that return BeanTransformer Modifier and Type Method Description BeanTransformer
BeanUtils. getTransformer()
Returns a Bean Transformer.Methods in com.expediagroup.beans with parameters of type BeanTransformer Modifier and Type Method Description static <T, K> java.util.function.Function<T,K>
BeanUtils. getTransformer(BeanTransformer beanTransformer, java.lang.Class<K> targetClass)
Returns a function that transforms an object T in an object K. -
Uses of BeanTransformer in com.expediagroup.beans.populator
Methods in com.expediagroup.beans.populator with parameters of type BeanTransformer Modifier and Type Method Description static <O, T> java.util.Optional<Populator>
PopulatorFactory. getPopulator(java.lang.Class<O> destObjectClass, java.lang.Class<T> sourceObjectClass, BeanTransformer transformer)
Creates an instance of the populator object based on the given class. -
Uses of BeanTransformer in com.expediagroup.beans.transformer
Classes in com.expediagroup.beans.transformer that implement BeanTransformer Modifier and Type Class Description class
TransformerImpl
Utility methods for populating Mutable, Immutable and Hybrid JavaBeans properties via reflection.Methods in com.expediagroup.beans.transformer that return BeanTransformer Modifier and Type Method Description BeanTransformer
BeanTransformer. setCustomBuilderTransformationEnabled(boolean customBuilderEnabled)
It allows to enable/disable the transformation of Java Bean with a custom Builder pattern.BeanTransformer
BeanTransformer. setDefaultValueForMissingField(boolean useDefaultValue)
It allows to configure the transformer in order to set a default value in case some field is missing in the source object.BeanTransformer
BeanTransformer. setDefaultValueForMissingPrimitiveField(boolean useDefaultValue)
It allows to enable/disable the set of the default value for primitive types in case they are null.BeanTransformer
BeanTransformer. setFlatFieldNameTransformation(boolean useFlatTransformation)
It allows to configure the transformer in order to apply a transformation function on all fields matching the given name without keeping in consideration their full path.BeanTransformer
BeanTransformer. setPrimitiveTypeConversionEnabled(boolean primitiveTypeConversionEnabled)
It allows to enable/disable the automatic conversion of primitive types.BeanTransformer
BeanTransformer. setValidationEnabled(boolean validationEnabled)
It allows to enable the object validation.BeanTransformer
BeanTransformer. skipTransformationForField(java.lang.String... fieldName)
Allows to specify all the fields for which the transformation have to be skipped. -
Uses of BeanTransformer in com.expediagroup.map.transformer
Methods in com.expediagroup.map.transformer with parameters of type BeanTransformer Modifier and Type Method Description <T, K> java.util.Map<T,K>
MapTransformer. transform(java.util.Map<T,K> sourceMap, BeanTransformer beanTransformer)
Copies all properties from a map to a new one applying the transformation function and mappings defined.<T, K, R, V> java.util.Map<R,V>
MapTransformer. transform(java.util.Map<T,K> sourceMap, BeanTransformer beanTransformer, java.lang.Class<R> targetKeyType, java.lang.Class<V> targetElemType)
Copies all properties from a map to a new one applying the transformation function and mappings defined.<T, K> java.util.Map<T,K>
MapTransformerImpl. transform(java.util.Map<T,K> sourceMap, BeanTransformer beanTransformer)
Copies all properties from a map to a new one applying the transformation function and mappings defined.<T, K, R, V> java.util.Map<R,V>
MapTransformerImpl. transform(java.util.Map<T,K> sourceMap, BeanTransformer beanTransformer, java.lang.Class<R> targetKeyType, java.lang.Class<V> targetElemType)
Copies all properties from a map to a new one applying the transformation function and mappings defined.