Interface Violation


@Deprecated public interface Violation
Deprecated.
users should upgrade to the full ConstraintViolation type by switching their Receiver implementations to use Receiver.onConstraintViolation(java.util.Set) instead of Receiver.onViolation(java.util.Set).
A lightweight representation of a ConstraintViolation.
  • Method Summary

    Modifier and Type
    Method
    Description
    Deprecated.
    If the ConstraintViolation occurred while validating a object, this method will return a BaseProxy that contains the invalid values.
    Deprecated.
    Returns the message associated with this Violation.
    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.
    Deprecated.
    Returns the path associated with this Violation.
    Deprecated.
    Returns the proxy id associated with this Violation if the object associated with the violation is an EntityProxy.
  • Method Details

    • 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

      String getMessage()
      Deprecated.
      Returns the message associated with this Violation.
      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

      String getPath()
      Deprecated.
      Returns the path associated with this Violation.
      Returns:
      a String path
    • getProxyId

      EntityProxyId<?> getProxyId()
      Deprecated.
      Returns the proxy id associated with this Violation if the object associated with the violation is an EntityProxy.
      Returns:
      an EntityProxyId instance or null if the object is a ValueProxy.