private static void processTargetAfterCrossComponentValidation(
AbstractCompareStrategy compareStrategy,
CrossValidationStorageEntry sourceCrossValidationStorageEntry,
ProcessedInformationStorageEntry validationTargetEntry)
{
CrossValidationStorageEntry targetCrossValidationStorageEntry = new CrossValidationStorageEntry();
if (compareStrategy.useTargetComponentToDisplayErrorMsg(sourceCrossValidationStorageEntry))
{
targetCrossValidationStorageEntry.setComponent(validationTargetEntry.getComponent());
targetCrossValidationStorageEntry.setClientId(validationTargetEntry.getClientId());
}
else
{
targetCrossValidationStorageEntry.setComponent(sourceCrossValidationStorageEntry.getComponent());
targetCrossValidationStorageEntry.setClientId(sourceCrossValidationStorageEntry.getClientId());
}
targetCrossValidationStorageEntry.setConvertedObject(validationTargetEntry.getConvertedValue());
targetCrossValidationStorageEntry.setValidationStrategy(compareStrategy);
//add message
compareStrategy.processTargetComponentAfterViolation(
sourceCrossValidationStorageEntry, targetCrossValidationStorageEntry);
}