public void checkPoint ( ValidationData param , ValidationRule rule , Object bodyObj , Object standardValue ) { //check Object value = param . getValue ( bodyObj ) ; BaseValidationCheck checker = this . validationRuleStore . getValidationChecker ( rule ) ; if ( ( value != null && standardValue != null ) || rule . getAssistType ( ) . isNullable ( ) ) { boolean valid = checker . check ( value , standardValue ) ; if ( ! valid ) { this . callExcpetion ( param , rule , value , standardValue ) ; } } //replace value Object replaceValue = checker . replace ( value , standardValue , param ) ; if ( replaceValue != null && replaceValue != value ) { param . replaceValue ( bodyObj , replaceValue ) ; } }
Check point .