org.modelmapper.builder
Interface ConditionExpression<S,D>

Type Parameters:
S - source type
D - destination type
All Superinterfaces:
ConverterExpression<S,D>, MapExpression<D>, ProviderExpression<S,D>, SkipExpression<D>
All Known Implementing Classes:
MappingBuilderImpl

public interface ConditionExpression<S,D>
extends ProviderExpression<S,D>

Expresses a Condition.

Author:
Jonathan Halterman

Method Summary
 ConditionExpression<S,D> when(Condition<?,?> condition)
          Specifies the condition that must apply in order for mapping to take place for a particular destination property hierarchy.
 
Methods inherited from interface org.modelmapper.builder.ProviderExpression
withProvider
 
Methods inherited from interface org.modelmapper.builder.ConverterExpression
using
 
Methods inherited from interface org.modelmapper.builder.SkipExpression
skip
 
Methods inherited from interface org.modelmapper.builder.MapExpression
map, map
 

Method Detail

when

ConditionExpression<S,D> when(Condition<?,?> condition)
Specifies the condition that must apply in order for mapping to take place for a particular destination property hierarchy. See the EDSL examples.

Parameters:
condition - that must apply when mapping the property
Throws:
IllegalStateException - if called from outside the context of PropertyMap.configure().


Copyright © 2011. All Rights Reserved.