public class ConstraintViolation extends Object implements Serializable
Constructor and Description |
---|
ConstraintViolation(Check check,
String message,
Object validatedObject,
Object invalidValue,
OValContext context) |
ConstraintViolation(Check check,
String message,
Object validatedObject,
Object invalidValue,
OValContext context,
ConstraintViolation... causes) |
ConstraintViolation(Check check,
String message,
Object validatedObject,
Object invalidValue,
OValContext context,
List<ConstraintViolation> causes) |
Modifier and Type | Method and Description |
---|---|
ConstraintViolation[] |
getCauses() |
OValContext |
getCheckDeclaringContext() |
String |
getCheckName() |
OValContext |
getContext() |
String |
getErrorCode() |
Object |
getInvalidValue() |
String |
getMessage() |
String |
getMessageTemplate() |
Map<String,? extends Serializable> |
getMessageVariables()
Returns the message variables provided by the corresponding check.
|
int |
getSeverity() |
Object |
getValidatedObject() |
String |
toString() |
public ConstraintViolation(Check check, String message, Object validatedObject, Object invalidValue, OValContext context)
public ConstraintViolation(Check check, String message, Object validatedObject, Object invalidValue, OValContext context, ConstraintViolation... causes)
public ConstraintViolation(Check check, String message, Object validatedObject, Object invalidValue, OValContext context, List<ConstraintViolation> causes)
public ConstraintViolation[] getCauses()
public OValContext getCheckDeclaringContext()
ClassContext
,
FieldContext
,
MethodEntryContext
,
MethodExitContext
,
MethodParameterContext
,
MethodReturnValueContext
public String getCheckName()
public OValContext getContext()
ClassContext
,
FieldContext
,
MethodEntryContext
,
MethodExitContext
,
MethodParameterContext
,
MethodReturnValueContext
public String getErrorCode()
public Object getInvalidValue()
public String getMessage()
public String getMessageTemplate()
public Map<String,? extends Serializable> getMessageVariables()
public int getSeverity()
public Object getValidatedObject()
Copyright © 2005–2020 Vegard IT GmbH, Germany. All rights reserved.