Class DefaultValidationErrorConfig

java.lang.Object
fr.paris.lutece.util.beanvalidation.DefaultValidationErrorConfig
All Implemented Interfaces:
ValidationErrorConfig

public class DefaultValidationErrorConfig extends Object implements ValidationErrorConfig
Default ValidationError Config implementation
  • Constructor Details

    • DefaultValidationErrorConfig

      public DefaultValidationErrorConfig()
  • Method Details

    • getValue1Attributes

      public String getValue1Attributes()
      Returns the list of constraint descriptor attribute that will appear in the value#1 of the message
      Specified by:
      getValue1Attributes in interface ValidationErrorConfig
      Returns:
      A list of attributes separated with spaces or commas
    • getValue2Attributes

      public String getValue2Attributes()
      Returns the list of constraint descriptor attribute that will appear in the value#2 of the message
      Specified by:
      getValue2Attributes in interface ValidationErrorConfig
      Returns:
      A list of attributes separated with spaces or commas
    • getVariablesPrefix

      public String[] getVariablesPrefix()
      The array of all variables prefix
      Specified by:
      getVariablesPrefix in interface ValidationErrorConfig
      Returns:
      The array
    • getFieldKeysPrefix

      public String getFieldKeysPrefix()
      The prefix of fields name in the resource file (ex : myplugin.model.entity.product.field." )
      Specified by:
      getFieldKeysPrefix in interface ValidationErrorConfig
      Returns:
      the _strFieldKeysPrefix
    • setFieldKeysPrefix

      public void setFieldKeysPrefix(String strFieldKeysPrefix)
      Parameters:
      strFieldKeysPrefix - the _strFieldKeysPrefix to set
    • getFieldWrapperBegin

      public String getFieldWrapperBegin()
      Returns the begin wrapper string for fieldname rendering (ex : "'" or "<strong">" )
      Specified by:
      getFieldWrapperBegin in interface ValidationErrorConfig
      Returns:
      The begin string
    • getFieldWrapperEnd

      public String getFieldWrapperEnd()
      Returns the end wrapper string for fieldname rendering (ex : "'" or "</strong">" )
      Specified by:
      getFieldWrapperEnd in interface ValidationErrorConfig
      Returns:
      The end string