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()
EditorError
getAbsolutePath
in interface EditorError
public Editor<?> getEditor()
EditorError
getEditor
in interface EditorError
public java.lang.String getMessage()
EditorError
getMessage
in interface EditorError
public java.lang.String getPath()
EditorError
getPath
in interface EditorError
public java.lang.Object getUserData()
EditorError
EditorDelegate.recordError(java.lang.String, java.lang.Object, java.lang.Object)
.getUserData
in interface EditorError
public java.lang.Object getValue()
EditorError
getValue
in interface EditorError
public boolean isConsumed()
false
.isConsumed
in interface EditorError
true
if the error will not be propagatedEditorError.setConsumed(boolean)
public void setConsumed(boolean consumed)
setConsumed
in interface EditorError
consumed
- true
if the error will not be propagatedEditorError.isConsumed()