Class MockEditorError

  • All Implemented Interfaces:
    EditorError

    public class MockEditorError
    extends java.lang.Object
    implements EditorError
    A trivial implementation of EditorError. Most methods return null.
    • Constructor Detail

      • MockEditorError

        public MockEditorError()
    • Method Detail

      • getAbsolutePath

        public java.lang.String 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 interface EditorError
        Returns:
        the absolute path as a String
      • getEditor

        public Editor<?> getEditor()
        Description copied from interface: EditorError
        Returns the Editor that holds the invalid value.
        Specified by:
        getEditor in interface EditorError
        Returns:
        the Editor instance
      • getMessage

        public java.lang.String getMessage()
        Description copied from interface: EditorError
        Returns a message associated with the error.
        Specified by:
        getMessage in interface EditorError
        Returns:
        the error message as a String
      • getPath

        public java.lang.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 interface EditorError
        Returns:
        the error path as a String
      • getValue

        public java.lang.Object getValue()
        Description copied from interface: EditorError
        Returns the value that triggered the error.
        Specified by:
        getValue in interface EditorError
        Returns:
        the error value Object