public class MockEditorError extends java.lang.Object implements EditorError
EditorError. Most methods return
null.| Constructor and Description |
|---|
MockEditorError() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.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.
|
java.lang.String |
getMessage()
Returns a message associated with the error.
|
java.lang.String |
getPath()
Returns the path of the error relative to the Editor receiving the error.
|
java.lang.Object |
getUserData()
Returns the object passed into
EditorDelegate.recordError(java.lang.String, java.lang.Object, java.lang.Object). |
java.lang.Object |
getValue()
Returns the value that triggered the error.
|
boolean |
isConsumed()
Always returns
false. |
void |
setConsumed(boolean consumed)
No-op.
|
public java.lang.String getAbsolutePath()
EditorErrorgetAbsolutePath in interface EditorErrorpublic Editor<?> getEditor()
EditorErrorgetEditor in interface EditorErrorpublic java.lang.String getMessage()
EditorErrorgetMessage in interface EditorErrorpublic java.lang.String getPath()
EditorErrorgetPath in interface EditorErrorpublic java.lang.Object getUserData()
EditorErrorEditorDelegate.recordError(java.lang.String, java.lang.Object, java.lang.Object).getUserData in interface EditorErrorpublic java.lang.Object getValue()
EditorErrorgetValue in interface EditorErrorpublic boolean isConsumed()
false.isConsumed in interface EditorErrortrue if the error will not be propagatedEditorError.setConsumed(boolean)public void setConsumed(boolean consumed)
setConsumed in interface EditorErrorconsumed - true if the error will not be propagatedEditorError.isConsumed()