public class Violation
extends java.lang.Object
Constructor and Description |
---|
Violation(java.lang.String name,
java.lang.Object validatedObject,
java.lang.Object invalidValue) |
Violation(java.lang.String name,
java.lang.Object validatedObject,
java.lang.Object invalidValue,
Check check)
Creates new violation.
|
Modifier and Type | Method and Description |
---|---|
Check |
getCheck() |
ValidationConstraint |
getConstraint() |
java.lang.Object |
getInvalidValue() |
java.lang.String |
getName() |
java.lang.Object |
getValidatedObject() |
java.lang.String |
toString() |
public Violation(java.lang.String name, java.lang.Object validatedObject, java.lang.Object invalidValue)
public Violation(java.lang.String name, java.lang.Object validatedObject, java.lang.Object invalidValue, Check check)
name
- violation name inside of validation contextvalidatedObject
- object that is validatedinvalidValue
- invalid value that is cause of violationcheck
- check
that made validation.public java.lang.Object getValidatedObject()
public java.lang.Object getInvalidValue()
public Check getCheck()
public ValidationConstraint getConstraint()
public java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-present Jodd Team