Class ReadOnlyReason

java.lang.Object
ro.sync.exml.workspace.api.editor.ReadOnlyReason

@API(type=EXTENDABLE, src=PUBLIC) public class ReadOnlyReason extends Object
An object describing the cause for which an editor is read-only.
Since:
19.1
  • Constructor Details

    • ReadOnlyReason

      public ReadOnlyReason(String message, String code)
      Constructor.
      Parameters:
      message - The message that explains why the editor is read-only.
      code - The code of the cause for which the editor is read-only. It will be only accessible through the API.
    • ReadOnlyReason

      public ReadOnlyReason(String message)
      Constructor.
      Parameters:
      message - The message that explains why the editor is read-only.
  • Method Details

    • getMessage

      public String getMessage()
      Returns:
      The message that explains why the editor is read-only.
    • getCode

      public String getCode()
      Returns:
      The code of the cause for which the editor is read-only. It will be only accessible through the API.