public class MockEditorError extends Object implements EditorError
EditorError
. Most methods return
null
.Constructor and Description |
---|
MockEditorError() |
Modifier and Type | Method and Description |
---|---|
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
EditorDelegate.recordError(java.lang.String, java.lang.Object, java.lang.Object) . |
Object |
getValue()
Returns the value that triggered the error.
|
boolean |
isConsumed()
Always returns
false . |
void |
setConsumed(boolean consumed)
No-op.
|
public String getAbsolutePath()
EditorError
getAbsolutePath
in interface EditorError
public Editor<?> getEditor()
EditorError
getEditor
in interface EditorError
public String getMessage()
EditorError
getMessage
in interface EditorError
public String getPath()
EditorError
getPath
in interface EditorError
public Object getUserData()
EditorError
EditorDelegate.recordError(java.lang.String, java.lang.Object, java.lang.Object)
.getUserData
in interface EditorError
public 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()
Copyright © 2018. All rights reserved.