Class ConstraintViolationCreationContext
- java.lang.Object
-
- org.hibernate.validator.internal.engine.constraintvalidation.ConstraintViolationCreationContext
-
public class ConstraintViolationCreationContext extends Object
Container class for the information needed to create a constraint violation.- Author:
- Hardy Ferentschik, Guillaume Smet
-
-
Constructor Summary
Constructors Constructor Description ConstraintViolationCreationContext(String message, ExpressionLanguageFeatureLevel expressionLanguageFeatureLevel, boolean customViolation, PathImpl property, Map<String,Object> messageParameters, Map<String,Object> expressionVariables, Object dynamicPayload)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetDynamicPayload()ExpressionLanguageFeatureLevelgetExpressionLanguageFeatureLevel()Map<String,Object>getExpressionVariables()StringgetMessage()Map<String,Object>getMessageParameters()PathImplgetPath()booleanisCustomViolation()StringtoString()
-
-
-
Constructor Detail
-
ConstraintViolationCreationContext
public ConstraintViolationCreationContext(String message, ExpressionLanguageFeatureLevel expressionLanguageFeatureLevel, boolean customViolation, PathImpl property, Map<String,Object> messageParameters, Map<String,Object> expressionVariables, Object dynamicPayload)
-
-
Method Detail
-
getMessage
public final String getMessage()
-
getExpressionLanguageFeatureLevel
public ExpressionLanguageFeatureLevel getExpressionLanguageFeatureLevel()
-
isCustomViolation
public boolean isCustomViolation()
-
getPath
public final PathImpl getPath()
-
getDynamicPayload
public Object getDynamicPayload()
-
-