public interface

Violation

com.google.gwt.requestfactory.shared.Violation

Class Overview

A lightweight representation of a javax.validation.ConstraintViolation.

Summary

Public Methods
abstract BaseProxy getInvalidProxy()
If the ConstraintViolation occurred while validating a object, this method will return a BaseProxy that contains the invalid values.
abstract String getMessage()
Returns the message associated with this Violation.
abstract BaseProxy getOriginalProxy()
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.
abstract String getPath()
Returns the path associated with this Violation.
abstract EntityProxyId<?> getProxyId()
Returns the proxy id associated with this Violation if the object associated with the violation is an EntityProxy.

Public Methods

public abstract BaseProxy getInvalidProxy ()

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

public abstract String getMessage ()

Returns the message associated with this Violation.

Returns
  • a String message

public abstract BaseProxy getOriginalProxy ()

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.

public abstract String getPath ()

Returns the path associated with this Violation.

Returns
  • a String path

public abstract EntityProxyId<?> getProxyId ()

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.