Uses of Interface
org.modelmapper.Condition
-
Packages that use Condition Package Description org.modelmapper ModelMapper is an intelligent object mapping library.org.modelmapper.builder Expression types for building Mappings and TypeMapsorg.modelmapper.config Configuration typesorg.modelmapper.spi Service Provider Interface -
-
Uses of Condition in org.modelmapper
Classes in org.modelmapper that implement Condition Modifier and Type Class Description class
AbstractCondition<S,D>
Condition support class.Methods in org.modelmapper that return Condition Modifier and Type Method Description Condition<S,D>
AbstractCondition. and(Condition<S,D> condition)
Returns a new condition that applies ifthis
AND the givencondition
apply.static <S,D>
Condition<S,D>Conditions. and(Condition<S,D> condition1, Condition<S,D> condition2)
Returns a new condition that applies ifcondition1
ANDcondition2
apply.Condition<?,?>
TypeMap. getCondition()
Returns the Condition that must apply for the source and destination in order for mapping to take place, elsenull
if no condition has been configured.Condition<?,?>
TypeMap. getPropertyCondition()
Returns the Condition that must apply in properties in this TypeMap to be mapped, elsenull
if no condition has been configured.static Condition<?,?>
Conditions. isNotNull()
Returns a condition that applies when the mapping source is notnull
.static Condition<?,?>
Conditions. isNull()
Returns a condition that applies when the mapping source isnull
.static Condition<?,?>
Conditions. isType(Class<?> type)
Returns a condition that applies when the mapping source is of the typetype
.static <S,D>
Condition<S,D>Conditions. not(Condition<S,D> condition)
Returns a condition that does NOT apply when the givencondition
applies.Condition<S,D>
AbstractCondition. or(Condition<S,D> condition)
Returns a new condition that applies ifthis
OR the givencondition
apply.static <S,D>
Condition<S,D>Conditions. or(Condition<S,D> condition1, Condition<S,D> condition2)
Returns a new condition that applies ifcondition1
ORcondition2
apply.Methods in org.modelmapper with parameters of type Condition Modifier and Type Method Description Condition<S,D>
AbstractCondition. and(Condition<S,D> condition)
Returns a new condition that applies ifthis
AND the givencondition
apply.static <S,D>
Condition<S,D>Conditions. and(Condition<S,D> condition1, Condition<S,D> condition2)
Returns a new condition that applies ifcondition1
ANDcondition2
apply.static <S,D>
Condition<S,D>Conditions. not(Condition<S,D> condition)
Returns a condition that does NOT apply when the givencondition
applies.Condition<S,D>
AbstractCondition. or(Condition<S,D> condition)
Returns a new condition that applies ifthis
OR the givencondition
apply.static <S,D>
Condition<S,D>Conditions. or(Condition<S,D> condition1, Condition<S,D> condition2)
Returns a new condition that applies ifcondition1
ORcondition2
apply.TypeMap<S,D>
TypeMap. setCondition(Condition<?,?> condition)
Sets thecondition
that must apply for the source and destination in order for mapping to take place.TypeMap<S,D>
TypeMap. setPropertyCondition(Condition<?,?> condition)
Sets thecondition
that must apply in order for properties in this TypeMap to be mapped.protected ProviderExpression<S,D>
PropertyMap. when(Condition<?,?> condition)
Specifies thecondition
that must apply in order for mapping to take place for a particular destination property hierarchy. -
Uses of Condition in org.modelmapper.builder
Methods in org.modelmapper.builder with parameters of type Condition Modifier and Type Method Description ProviderExpression<S,D>
ConditionExpression. when(Condition<?,?> condition)
Specifies thecondition
that must apply in order for mapping to take place for a particular destination property hierarchy.ConfigurableProviderExpression<S,D>
ConfigurableConditionExpression. when(Condition<?,?> condition)
Usescondition
to determine the mapping should fire or skip -
Uses of Condition in org.modelmapper.config
Methods in org.modelmapper.config that return Condition Modifier and Type Method Description Condition<?,?>
Configuration. getPropertyCondition()
Returns the Condition that must apply for a property in order for mapping to take place, elsenull
if no condition has been configured.Methods in org.modelmapper.config with parameters of type Condition Modifier and Type Method Description Configuration
Configuration. setPropertyCondition(Condition<?,?> condition)
Sets thecondition
that must apply for a property in order for mapping to take place. -
Uses of Condition in org.modelmapper.spi
Methods in org.modelmapper.spi that return Condition Modifier and Type Method Description Condition<?,?>
Mapping. getCondition()
Gets the condition that to be satisfied before this mapping can be used to perform a mapping.
-