fr.paris.lutece.util.beanvalidation
Class DefaultValidationErrorConfig

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

public class DefaultValidationErrorConfig
extends Object
implements ValidationErrorConfig

Default ValidationError Config implementation


Constructor Summary
DefaultValidationErrorConfig()
           
 
Method Summary
 String getFieldKeysPrefix()
          The prefix of fields name in the resource file (ex : myplugin.model.entity.product.field." )
 String getFieldWrapperBegin()
          Returns the begin wrapper string for fieldname rendering (ex : "'" or "<strong">" )
 String getFieldWrapperEnd()
          Returns the end wrapper string for fieldname rendering (ex : "'" or "</strong">" )
 String getValue1Attributes()
          Returns the list of constraint descriptor attribute that will appear in the value#1 of the message
 String getValue2Attributes()
          Returns the list of constraint descriptor attribute that will appear in the value#2 of the message
 String[] getVariablesPrefix()
          The array of all variables prefix
 void setFieldKeysPrefix(String strFieldKeysPrefix)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

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


Copyright © 2014 Mairie de Paris. All Rights Reserved.