Class ObjectResolver.Helper

    • Method Detail

      • getConstraintErrorMessage

        public static String getConstraintErrorMessage​(ObjectResolver resolver,
                                                       String suffixCase,
                                                       Object invalidValue,
                                                       Locale locale,
                                                       String... additionnalParameters)
        Use a default translation key : label.schema.constraint.resolver.[Resolver.getName()]
        Parameters:
        resolver - The requesting resolver.
        suffixCase - This field is a which allow to define alternative translation.
        invalidValue - The invalid value that don't match any entity.
        locale - The language in which the message should be generated.
        additionnalParameters - Relayed elements to build the message.
        Returns:
        A message in the specified language
        Since:
        7.1
      • getConstraintErrorMessage

        public static String getConstraintErrorMessage​(ObjectResolver resolver,
                                                       Object invalidValue,
                                                       Locale locale,
                                                       String... additionnalParameters)
        Use a default translation key : label.schema.constraint.resolver.[Resolver.getName()]
        Parameters:
        resolver - The requesting resolver.
        invalidValue - The invalid value that don't match any entity.
        locale - The language in which the message should be generated.
        additionnalParameters - Relayed elements to build the message.
        Returns:
        A message in the specified language
        Since:
        7.1