Class MockEditorError
java.lang.Object
com.google.gwt.editor.client.testing.MockEditorError
- All Implemented Interfaces:
EditorError
A trivial implementation of
EditorError
. Most methods return
null
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the absolute path location of the error, relative to the object that was passed into the EditorDriver.Editor
<?> Returns the Editor that holds the invalid value.Returns a message associated with the error.getPath()
Returns the path of the error relative to the Editor receiving the error.Returns the object passed intoEditorDelegate.recordError(java.lang.String, java.lang.Object, java.lang.Object)
.getValue()
Returns the value that triggered the error.boolean
Always returnsfalse
.void
setConsumed
(boolean consumed) No-op.
-
Constructor Details
-
MockEditorError
public MockEditorError()
-
-
Method Details
-
getAbsolutePath
Description copied from interface:EditorError
Returns the absolute path location of the error, relative to the object that was passed into the EditorDriver.- Specified by:
getAbsolutePath
in interfaceEditorError
- Returns:
- the absolute path as a String
-
getEditor
Description copied from interface:EditorError
Returns the Editor that holds the invalid value.- Specified by:
getEditor
in interfaceEditorError
- Returns:
- the Editor instance
-
getMessage
Description copied from interface:EditorError
Returns a message associated with the error.- Specified by:
getMessage
in interfaceEditorError
- Returns:
- the error message as a String
-
getPath
Description copied from interface:EditorError
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.- Specified by:
getPath
in interfaceEditorError
- Returns:
- the error path as a String
-
getUserData
Description copied from interface:EditorError
Returns the object passed intoEditorDelegate.recordError(java.lang.String, java.lang.Object, java.lang.Object)
.- Specified by:
getUserData
in interfaceEditorError
- Returns:
- the user data Object
-
getValue
Description copied from interface:EditorError
Returns the value that triggered the error.- Specified by:
getValue
in interfaceEditorError
- Returns:
- the error value Object
-
isConsumed
public boolean isConsumed()Always returnsfalse
.- Specified by:
isConsumed
in interfaceEditorError
- Returns:
true
if the error will not be propagated- See Also:
-
setConsumed
public void setConsumed(boolean consumed) No-op.- Specified by:
setConsumed
in interfaceEditorError
- Parameters:
consumed
-true
if the error will not be propagated- See Also:
-