public class ConstraintViolation extends Object implements Serializable
Constructor and Description |
---|
ConstraintViolation(Check check,
String message,
Object validatedObject,
Object invalidValue,
List<OValContext> invalidValuePath) |
ConstraintViolation(Check check,
String message,
Object validatedObject,
Object invalidValue,
OValContext context)
Deprecated.
|
ConstraintViolation(Check check,
String message,
Object validatedObject,
Object invalidValue,
OValContext context,
ConstraintViolation... causes)
Deprecated.
|
ConstraintViolation(Check check,
String message,
Object validatedObject,
Object invalidValue,
OValContext context,
List<ConstraintViolation> causes)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ConstraintViolation[] |
getCauses()
Deprecated.
use
getContextPath() |
OValContext |
getCheckDeclaringContext() |
String |
getCheckName() |
OValContext |
getContext()
Deprecated.
use
getContextPath() |
List<OValContext> |
getContextPath() |
String |
getContextPathAsString() |
String |
getErrorCode() |
Object |
getInvalidValue() |
String |
getMessage() |
String |
getMessageTemplate() |
Map<String,? extends Serializable> |
getMessageVariables() |
int |
getSeverity() |
Object |
getValidatedObject() |
String |
toString() |
public ConstraintViolation(Check check, String message, Object validatedObject, Object invalidValue, List<OValContext> invalidValuePath)
@Deprecated public ConstraintViolation(Check check, String message, Object validatedObject, Object invalidValue, OValContext context)
ConstraintViolation(Check, String, Object, Object, List)
@Deprecated public ConstraintViolation(Check check, String message, Object validatedObject, Object invalidValue, OValContext context, ConstraintViolation... causes)
ConstraintViolation(Check, String, Object, Object, List)
@Deprecated public ConstraintViolation(Check check, String message, Object validatedObject, Object invalidValue, OValContext context, List<ConstraintViolation> causes)
ConstraintViolation(Check, String, Object, Object, List)
@Deprecated public ConstraintViolation[] getCauses()
getContextPath()
public OValContext getCheckDeclaringContext()
ClassContext
,
FieldContext
,
MethodEntryContext
,
MethodExitContext
,
MethodParameterContext
,
MethodReturnValueContext
public String getCheckName()
@Deprecated public OValContext getContext()
getContextPath()
ClassContext
,
FieldContext
,
MethodReturnValueContext
public List<OValContext> getContextPath()
ClassContext
,
FieldContext
,
IterableElementContext
,
MapKeyContext
,
MapValueContext
,
MethodReturnValueContext
public String getContextPathAsString()
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–2021 Vegard IT GmbH, Germany. All rights reserved.