Class JSONOptions


public class JSONOptions extends AbstractLockable<JSONOptions>
Options for converting other information to JSON data.
Since:
1.0
Author:
nicklas
  • Field Details

  • Constructor Details

    • JSONOptions

      public JSONOptions()
      Create a new options instance.
    • JSONOptions

      public JSONOptions(DbControl dc)
      Create a new options instance with the possibility to access the BASE database.
  • Method Details

    • getDbControl

      public DbControl getDbControl()
      Get a DbControl which can be used to retreive information from the BASE database. Can be null.
    • isEnabled

      public boolean isEnabled(JSONOption option)
      Checks if the given option has been enabled.
    • enable

      public void enable(JSONOption option)
      Enable the given option.
      Throws:
      IllegalStateException - If this instance has been locked
    • disable

      public void disable(JSONOption option)
      Disable the given option.
      Throws:
      IllegalStateException - If this instance has been locked