Class DefaultValidationErrorConfig

    • Constructor Detail

      • DefaultValidationErrorConfig

        public DefaultValidationErrorConfig()
    • Method Detail

      • 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
      • 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