Interface Violation
-
@Deprecated public interface Violation
Deprecated.users should upgrade to the fullConstraintViolation
type by switching theirReceiver
implementations to useReceiver.onConstraintViolation(java.util.Set)
instead ofReceiver.onViolation(java.util.Set)
.A lightweight representation of aConstraintViolation
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description BaseProxy
getInvalidProxy()
Deprecated.If the ConstraintViolation occurred while validating a object, this method will return a BaseProxy that contains the invalid values.java.lang.String
getMessage()
Deprecated.Returns the message associated with thisViolation
.BaseProxy
getOriginalProxy()
Deprecated.If the ConstraintViolation occurred while validating a value object that originated from the server, this method will return a BaseProxy that contains the original values.java.lang.String
getPath()
Deprecated.Returns the path associated with thisViolation
.EntityProxyId<?>
getProxyId()
Deprecated.Returns the proxy id associated with thisViolation
if the object associated with the violation is anEntityProxy
.
-
-
-
Method Detail
-
getInvalidProxy
BaseProxy getInvalidProxy()
Deprecated.If the ConstraintViolation occurred while validating a object, this method will return a BaseProxy that contains the invalid values.- Returns:
- the BaseProxy that caused the ConstraintViolation
-
getMessage
java.lang.String getMessage()
Deprecated.Returns the message associated with thisViolation
.- Returns:
- a String message
-
getOriginalProxy
BaseProxy getOriginalProxy()
Deprecated.If the ConstraintViolation occurred while validating a value object that originated from the server, this method will return a BaseProxy that contains the original values.- Returns:
- the BaseProxy originally sent by the server or
null
if the BaseProxy was created on the client.
-
getPath
java.lang.String getPath()
Deprecated.Returns the path associated with thisViolation
.- Returns:
- a String path
-
getProxyId
EntityProxyId<?> getProxyId()
Deprecated.Returns the proxy id associated with thisViolation
if the object associated with the violation is anEntityProxy
.- Returns:
- an
EntityProxyId
instance ornull
if the object is a ValueProxy.
-
-