/** * Validates the given Object. * * @param object the Object to validate * @param context the ValidationContext * @throws ValidationException if the object fails validation. */ public void validate(final Object object, final ValidationContext context) throws ValidationException { if (object == null) { String err = "The object of type IDREFS is null!"; throw new ValidationException(err); } Object[] objects = (Object[]) object; for (int i = 0; i < objects.length; i++) { _idRefValidator.validate(objects[i], context); } // validate(value, context); } // -- validate
/** * Validates the given Object. * * @param object the Object to validate * @param context the ValidationContext * @throws ValidationException if the object fails validation. */ public void validate(final Object object, final ValidationContext context) throws ValidationException { if (object == null) { String err = "The object of type IDREFS is null!"; throw new ValidationException(err); } Object[] objects = (Object[]) object; for (int i = 0; i < objects.length; i++) { _idRefValidator.validate(objects[i], context); } // validate(value, context); } //-- validate