@Target(value=METHOD) @Retention(value=CLASS) public @interface IterableMapping
List<String>
and List<Date>
.
Note: either @IterableMapping#dateFormat, @IterableMapping#resultType or @IterableMapping#qualifiedBy must be specified
Modifier and Type | Optional Element and Description |
---|---|
String |
dateFormat
A format string as processable by
SimpleDateFormat if the annotated method maps from an iterable of
String to an iterable Date or vice-versa. |
Class<?> |
elementTargetType
Specifies the type of the element to be used in the result of the mapping method in case multiple mapping
methods qualify.
|
NullValueMappingStrategy |
nullValueMappingStrategy
The strategy to be applied when
null is passed as source value to this iterable mapping. |
Class<? extends Annotation>[] |
qualifiedBy
A qualifier can be specified to aid the selection process of a suitable mapper.
|
public abstract String dateFormat
SimpleDateFormat
if the annotated method maps from an iterable of
String
to an iterable Date
or vice-versa. Will be ignored for all other element types.SimpleDateFormat
.public abstract Class<? extends Annotation>[] qualifiedBy
public abstract Class<?> elementTargetType
public abstract NullValueMappingStrategy nullValueMappingStrategy
null
is passed as source value to this iterable mapping. If no
strategy is configured, the strategy given via MapperConfig.nullValueMappingStrategy()
or
Mapper.nullValueMappingStrategy()
will be applied, using NullValueMappingStrategy.RETURN_NULL
by default.null
is passed as source value to the methods of this mapping.Copyright © 2012-2015 Gunnar Morling; All rights reserved. Released under the Apache Software License 2.0.