Class DefaultValidationErrorConfig
java.lang.Object
fr.paris.lutece.util.beanvalidation.DefaultValidationErrorConfig
- All Implemented Interfaces:
ValidationErrorConfig
Default ValidationError Config implementation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe prefix of fields name in the resource file (ex : myplugin.model.entity.product.field." )Returns the begin wrapper string for fieldname rendering (ex : "'" or "<strong">" )Returns the end wrapper string for fieldname rendering (ex : "'" or "</strong">" )Returns the list of constraint descriptor attribute that will appear in the value#1 of the messageReturns the list of constraint descriptor attribute that will appear in the value#2 of the messageString[]The array of all variables prefixvoidsetFieldKeysPrefix(String strFieldKeysPrefix)
-
Constructor Details
-
DefaultValidationErrorConfig
public DefaultValidationErrorConfig()
-
-
Method Details
-
getValue1Attributes
Returns the list of constraint descriptor attribute that will appear in the value#1 of the message- Specified by:
getValue1Attributesin interfaceValidationErrorConfig- Returns:
- A list of attributes separated with spaces or commas
-
getValue2Attributes
Returns the list of constraint descriptor attribute that will appear in the value#2 of the message- Specified by:
getValue2Attributesin interfaceValidationErrorConfig- Returns:
- A list of attributes separated with spaces or commas
-
getVariablesPrefix
The array of all variables prefix- Specified by:
getVariablesPrefixin interfaceValidationErrorConfig- Returns:
- The array
-
getFieldKeysPrefix
The prefix of fields name in the resource file (ex : myplugin.model.entity.product.field." )- Specified by:
getFieldKeysPrefixin interfaceValidationErrorConfig- Returns:
- the _strFieldKeysPrefix
-
setFieldKeysPrefix
- Parameters:
strFieldKeysPrefix- the _strFieldKeysPrefix to set
-
getFieldWrapperBegin
Returns the begin wrapper string for fieldname rendering (ex : "'" or "<strong">" )- Specified by:
getFieldWrapperBeginin interfaceValidationErrorConfig- Returns:
- The begin string
-
getFieldWrapperEnd
Returns the end wrapper string for fieldname rendering (ex : "'" or "</strong">" )- Specified by:
getFieldWrapperEndin interfaceValidationErrorConfig- Returns:
- The end string
-