Class ObjectResolver.Helper
- java.lang.Object
-
- org.nuxeo.ecm.core.schema.types.resolver.ObjectResolver.Helper
-
- Enclosing interface:
- ObjectResolver
public static final class ObjectResolver.Helper extends Object
Manage translation for resolver :getConstraintErrorMessage(ObjectResolver, Object, Locale, String...)
- Since:
- 7.1
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getConstraintErrorMessage(ObjectResolver resolver, Object invalidValue, Locale locale, String... additionnalParameters)
Use a default translation key : label.schema.constraint.resolver.[Resolver.getName()]static String
getConstraintErrorMessage(ObjectResolver resolver, String suffixCase, Object invalidValue, Locale locale, String... additionnalParameters)
Use a default translation key : label.schema.constraint.resolver.[Resolver.getName()]
-
-
-
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
-
-