Package org.cyclos.impl.utils.conversion
Interface ConversionHandlerInternal
-
- All Superinterfaces:
ConversionHandler
- All Known Implementing Classes:
ConversionHandlerImpl
public interface ConversionHandlerInternal extends ConversionHandler
Internal interface for conversion
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> Tconvert(Class<T> toType, Object source, Object[] excludingProperties, InvocationContext.ConversionContext context)Converts from the given object to the given type, with full context<T> List<T>convertList(Map<Class<?>,Class<?>> typeMapping, Iterable<?> collection, Map<?,?> additionalProperties, InvocationContext.ConversionContext context)Converts a collection of objects into a list using the given type mapping, setting the given additional properties to each element<K,V>
Map<K,V>convertMap(Class<K> keyType, Class<V> valueType, Map<?,?> map, InvocationContext.ConversionContext context)Converts the given map's keys and values to the given types, with full context<T> Set<T>convertSet(Map<Class<?>,Class<?>> typeMapping, Iterable<?> collection, Map<?,?> additionalProperties, InvocationContext.ConversionContext context)Converts a collection of objects into a set using the given type mapping, setting the given additional properties to each elementvoidfill(Object source, Object destination, Object[] excludingProperties, InvocationContext.ConversionContext context)Fills the destination object with the source properties, with full context-
Methods inherited from interface org.cyclos.impl.utils.conversion.ConversionHandler
cachedEntityFromId, clone, convert, convertExcluding, convertingFunction, convertIterator, convertIterator, convertList, convertList, convertList, convertList, convertMap, convertPage, convertPage, convertSet, convertSet, convertSet, convertSet, fill, fillExcluding, getFormatter, toDate, toDateTime
-
-
-
-
Method Detail
-
convert
<T> T convert(Class<T> toType, Object source, Object[] excludingProperties, InvocationContext.ConversionContext context)
Converts from the given object to the given type, with full context
-
convertList
<T> List<T> convertList(Map<Class<?>,Class<?>> typeMapping, Iterable<?> collection, Map<?,?> additionalProperties, InvocationContext.ConversionContext context)
Converts a collection of objects into a list using the given type mapping, setting the given additional properties to each element
-
convertMap
<K,V> Map<K,V> convertMap(Class<K> keyType, Class<V> valueType, Map<?,?> map, InvocationContext.ConversionContext context)
Converts the given map's keys and values to the given types, with full context
-
convertSet
<T> Set<T> convertSet(Map<Class<?>,Class<?>> typeMapping, Iterable<?> collection, Map<?,?> additionalProperties, InvocationContext.ConversionContext context)
Converts a collection of objects into a set using the given type mapping, setting the given additional properties to each element
-
fill
void fill(Object source, Object destination, Object[] excludingProperties, InvocationContext.ConversionContext context)
Fills the destination object with the source properties, with full context
-
-