private void validateRecordedMapping ( ) { if ( currentMapping . destinationMutators == null || currentMapping . destinationMutators . isEmpty ( ) ) errors . missingDestination ( ) ; // If mapping a field without a source else if ( options . skipType == 0 && ( currentMapping . sourceAccessors == null || currentMapping . sourceAccessors . isEmpty ( ) ) && currentMapping . destinationMutators . get ( currentMapping . destinationMutators . size ( ) - 1 ) . getPropertyType ( ) . equals ( PropertyType . FIELD ) && options . converter == null && ! options . mapFromSource && sourceConstant == null ) errors . missingSource ( ) ; else if ( options . skipType == 2 && options . condition != null ) errors . conditionalSkipWithoutSource ( ) ; }
Validates the current mapping that was recorded via a MapExpression .