public class

MockEditorError

extends Object
implements EditorError
java.lang.Object
   ↳ com.google.gwt.editor.client.testing.MockEditorError

Class Overview

A trivial implementation of EditorError. Most methods return null.

Summary

Public Constructors
MockEditorError()
Public Methods
String getAbsolutePath()
Returns the absolute path location of the error, relative to the object that was passed into the EditorDriver.
Editor<?> getEditor()
Returns the Editor that holds the invalid value.
String getMessage()
Returns a message associated with the error.
String getPath()
Returns the path of the error relative to the Editor receiving the error.
Object getUserData()
Returns the object passed into recordError(String, Object, Object).
Object getValue()
Returns the value that triggered the error.
boolean isConsumed()
Always returns false.
void setConsumed(boolean consumed)
No-op.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.gwt.editor.client.EditorError

Public Constructors

public MockEditorError ()

Public Methods

public String getAbsolutePath ()

Returns the absolute path location of the error, relative to the object that was passed into the EditorDriver.

Returns
  • the absolute path as a String

public Editor<?> getEditor ()

Returns the Editor that holds the invalid value.

Returns
  • the Editor instance

public String getMessage ()

Returns a message associated with the error.

Returns
  • the error message as a String

public String getPath ()

Returns the path of the error relative to the Editor receiving the error. If the error concerns the Editor that is receiving the error, this method will return an empty string.

Returns
  • the error path as a String

public Object getUserData ()

Returns the object passed into recordError(String, Object, Object).

Returns
  • the user data Object

public Object getValue ()

Returns the value that triggered the error.

Returns
  • the error value Object

public boolean isConsumed ()

Always returns false.

Returns
  • true if the error will not be propagated

public void setConsumed (boolean consumed)

No-op.

Parameters
consumed true if the error will not be propagated