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
Constructors -
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.booleanAlways returnsfalse.voidsetConsumed(boolean consumed) No-op.
-
Constructor Details
-
MockEditorError
public MockEditorError()
-
-
Method Details
-
getAbsolutePath
Description copied from interface:EditorErrorReturns the absolute path location of the error, relative to the object that was passed into the EditorDriver.- Specified by:
getAbsolutePathin interfaceEditorError- Returns:
- the absolute path as a String
-
getEditor
Description copied from interface:EditorErrorReturns the Editor that holds the invalid value.- Specified by:
getEditorin interfaceEditorError- Returns:
- the Editor instance
-
getMessage
Description copied from interface:EditorErrorReturns a message associated with the error.- Specified by:
getMessagein interfaceEditorError- Returns:
- the error message as a String
-
getPath
Description copied from interface:EditorErrorReturns 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:
getPathin interfaceEditorError- Returns:
- the error path as a String
-
getUserData
Description copied from interface:EditorErrorReturns the object passed intoEditorDelegate.recordError(java.lang.String, java.lang.Object, java.lang.Object).- Specified by:
getUserDatain interfaceEditorError- Returns:
- the user data Object
-
getValue
Description copied from interface:EditorErrorReturns the value that triggered the error.- Specified by:
getValuein interfaceEditorError- Returns:
- the error value Object
-
isConsumed
public boolean isConsumed()Always returnsfalse.- Specified by:
isConsumedin interfaceEditorError- Returns:
trueif the error will not be propagated- See Also:
-
setConsumed
public void setConsumed(boolean consumed) No-op.- Specified by:
setConsumedin interfaceEditorError- Parameters:
consumed-trueif the error will not be propagated- See Also:
-