Package | Description |
---|---|
org.modelmapper |
ModelMapper is an intelligent object mapping library.
|
org.modelmapper.builder |
Expression types for building Mappings and TypeMaps
|
org.modelmapper.config |
Configuration types
|
org.modelmapper.spi |
Service Provider Interface
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractCondition<S,D>
Condition support class.
|
Modifier and Type | Method and Description |
---|---|
Condition<S,D> |
AbstractCondition.and(Condition<S,D> condition)
Returns a new condition that applies if
this AND the given condition apply. |
static <S,D> Condition<S,D> |
Conditions.and(Condition<S,D> condition1,
Condition<S,D> condition2)
Returns a new condition that applies if
condition1 AND condition2 apply. |
Condition<?,?> |
TypeMap.getCondition()
Returns the Condition that must apply for the source and destination in order for mapping to
take place, else
null if no condition has been configured. |
Condition<?,?> |
TypeMap.getPropertyCondition()
Returns the Condition that must apply in properties in this TypeMap to be mapped, else
null if no condition has been configured. |
static Condition<?,?> |
Conditions.isNotNull()
Returns a condition that applies when the mapping source is not
null . |
static Condition<?,?> |
Conditions.isNull()
Returns a condition that applies when the mapping source is
null . |
static Condition<?,?> |
Conditions.isType(Class<?> type)
Returns a condition that applies when the mapping source is of the type
type . |
static <S,D> Condition<S,D> |
Conditions.not(Condition<S,D> condition)
Returns a condition that does NOT apply when the given
condition applies. |
Condition<S,D> |
AbstractCondition.or(Condition<S,D> condition)
Returns a new condition that applies if
this OR the given condition apply. |
static <S,D> Condition<S,D> |
Conditions.or(Condition<S,D> condition1,
Condition<S,D> condition2)
Returns a new condition that applies if
condition1 OR condition2 apply. |
Modifier and Type | Method and Description |
---|---|
Condition<S,D> |
AbstractCondition.and(Condition<S,D> condition)
Returns a new condition that applies if
this AND the given condition apply. |
static <S,D> Condition<S,D> |
Conditions.and(Condition<S,D> condition1,
Condition<S,D> condition2)
Returns a new condition that applies if
condition1 AND condition2 apply. |
static <S,D> Condition<S,D> |
Conditions.and(Condition<S,D> condition1,
Condition<S,D> condition2)
Returns a new condition that applies if
condition1 AND condition2 apply. |
static <S,D> Condition<S,D> |
Conditions.not(Condition<S,D> condition)
Returns a condition that does NOT apply when the given
condition applies. |
Condition<S,D> |
AbstractCondition.or(Condition<S,D> condition)
Returns a new condition that applies if
this OR the given condition apply. |
static <S,D> Condition<S,D> |
Conditions.or(Condition<S,D> condition1,
Condition<S,D> condition2)
Returns a new condition that applies if
condition1 OR condition2 apply. |
static <S,D> Condition<S,D> |
Conditions.or(Condition<S,D> condition1,
Condition<S,D> condition2)
Returns a new condition that applies if
condition1 OR condition2 apply. |
TypeMap<S,D> |
TypeMap.setCondition(Condition<?,?> condition)
Sets the
condition that must apply for the source and destination in order for mapping
to take place. |
TypeMap<S,D> |
TypeMap.setPropertyCondition(Condition<?,?> condition)
Sets the
condition that must apply in order for properties in this TypeMap to be
mapped. |
protected ProviderExpression<S,D> |
PropertyMap.when(Condition<?,?> condition)
Specifies the
condition that must apply in order for mapping to take place for a
particular destination property hierarchy. |
Modifier and Type | Method and Description |
---|---|
ConfigurableProviderExpression<S,D> |
ConfigurableConditionExpression.when(Condition<?,?> condition)
Uses
condition to determine the mapping should fire or skip |
ProviderExpression<S,D> |
ConditionExpression.when(Condition<?,?> condition)
Specifies the
condition that must apply in order for mapping to take place for a
particular destination property hierarchy. |
Modifier and Type | Method and Description |
---|---|
Condition<?,?> |
Configuration.getPropertyCondition()
Returns the Condition that must apply for a property in order for mapping to take place, else
null if no condition has been configured. |
Modifier and Type | Method and Description |
---|---|
Configuration |
Configuration.setPropertyCondition(Condition<?,?> condition)
Sets the
condition that must apply for a property in order for mapping to take place. |
Modifier and Type | Method and Description |
---|---|
Condition<?,?> |
Mapping.getCondition()
Gets the condition that to be satisfied before this mapping can be used to perform a mapping.
|
Copyright © 2011–2024. All rights reserved.