Class DefaultValidationErrorConfig
- java.lang.Object
-
- fr.paris.lutece.util.beanvalidation.DefaultValidationErrorConfig
-
- All Implemented Interfaces:
ValidationErrorConfig
public class DefaultValidationErrorConfig extends java.lang.Object implements ValidationErrorConfig
Default ValidationError Config implementation
-
-
Constructor Summary
Constructors Constructor Description DefaultValidationErrorConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetFieldKeysPrefix()The prefix of fields name in the resource file (ex : myplugin.model.entity.product.field." )java.lang.StringgetFieldWrapperBegin()Returns the begin wrapper string for fieldname rendering (ex : "'" or "<strong">" )java.lang.StringgetFieldWrapperEnd()Returns the end wrapper string for fieldname rendering (ex : "'" or "</strong">" )java.lang.StringgetValue1Attributes()Returns the list of constraint descriptor attribute that will appear in the value#1 of the messagejava.lang.StringgetValue2Attributes()Returns the list of constraint descriptor attribute that will appear in the value#2 of the messagejava.lang.String[]getVariablesPrefix()The array of all variables prefixvoidsetFieldKeysPrefix(java.lang.String strFieldKeysPrefix)
-
-
-
Method Detail
-
getValue1Attributes
public java.lang.String 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
public java.lang.String 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
public java.lang.String[] getVariablesPrefix()
The array of all variables prefix- Specified by:
getVariablesPrefixin interfaceValidationErrorConfig- Returns:
- The array
-
getFieldKeysPrefix
public java.lang.String getFieldKeysPrefix()
The prefix of fields name in the resource file (ex : myplugin.model.entity.product.field." )- Specified by:
getFieldKeysPrefixin interfaceValidationErrorConfig- Returns:
- the _strFieldKeysPrefix
-
setFieldKeysPrefix
public void setFieldKeysPrefix(java.lang.String strFieldKeysPrefix)
- Parameters:
strFieldKeysPrefix- the _strFieldKeysPrefix to set
-
getFieldWrapperBegin
public java.lang.String getFieldWrapperBegin()
Returns the begin wrapper string for fieldname rendering (ex : "'" or "<strong">" )- Specified by:
getFieldWrapperBeginin interfaceValidationErrorConfig- Returns:
- The begin string
-
getFieldWrapperEnd
public java.lang.String getFieldWrapperEnd()
Returns the end wrapper string for fieldname rendering (ex : "'" or "</strong">" )- Specified by:
getFieldWrapperEndin interfaceValidationErrorConfig- Returns:
- The end string
-
-