private String getMessageBundle() { final String className = getClass().getName(); return getMessageBundle(className); }
/** * Gets the check message 'as is' from appropriate 'messages.properties' * file. * * @param messageKey the key of message in 'messages.properties' file. * @param arguments the arguments of message in 'messages.properties' file. * @return The message of the check with the arguments applied. */ protected final String getCheckMessage(String messageKey, Object... arguments) { return internalGetCheckMessage(getMessageBundle(), messageKey, arguments); }
/** * Gets the check message 'as is' from appropriate 'messages.properties' * file. * * @param clazz the related check class. * @param messageKey the key of message in 'messages.properties' file. * @param arguments the arguments of message in 'messages.properties' file. * @return The message of the check with the arguments applied. */ protected static String getCheckMessage( Class<?> clazz, String messageKey, Object... arguments) { return internalGetCheckMessage(getMessageBundle(clazz.getName()), messageKey, arguments); }