* checks in because it can't hurt.
*/
public boolean isTransformable(List<ValidationError> errors) {
boolean result = true;
for (String key : mapping.keySet()) {
TargetValueObject value = mapping.get(key);
// Target values are initialised and set to 0.0, so we can assume it
// is not null:
if ((value.getValue() < 0.0) || (value.getValue() > 5.0)) {
result = false;
errors.add(new ValidationError("Transformation of '" + key + "' to " + value.getValue()
+ ": For ordinal values only target values between 0.0 and 5.0 are allowed.", this));
}
}
return result;
}