case SourceToTarget:
addValidatorToStrategy(sourceToTarget, validator);
break;
case TargetToSource:
addValidatorToStrategy(targetToSource,
new InverseValidationRule(validator));
break;
case Both:
default:
addValidatorToStrategy(sourceToTarget, validator);
addValidatorToStrategy(targetToSource,
new InverseValidationRule(validator));
}
}
}
}