Class AbstractBooleanElementType

All Implemented Interfaces:
ElementType<Boolean>, ModelItemType, LogEnabled, PluginAware, Component, Serviceable
Direct Known Subclasses:
BooleanRepositoryElementType, BooleanXMLElementType

Abstract class for boolean element types
  • Constructor Details

  • Method Details

    • convertValue

      public Boolean convertValue(Object value)
      Description copied from class: AbstractElementType
      Try to convert the given value.
      Overrides:
      convertValue in class AbstractElementType<Boolean>
      Parameters:
      value - the value to convert
      Returns:
      the converted value or null if it's not possible.
    • fromJSONForClient

      Description copied from interface: ElementType
      Convert the given client side JSON object to the types value
      Parameters:
      json - the JSON object to convert
      Returns:
      the typed value corresponding to the JSON object
    • isSimple

      public boolean isSimple()
      Description copied from interface: ElementType
      Determines if this type is simple or not. A simple element type is a type of elements that can be edited in a grid
      Returns:
      true if the type is simple, false otherwise
    • isCompatible

      public boolean isCompatible(Object value)
      Description copied from interface: ElementType
      Checks if the value is compatible with the element type
      Specified by:
      isCompatible in interface ElementType<Boolean>
      Overrides:
      isCompatible in class AbstractElementType<Boolean>
      Parameters:
      value - the value to check
      Returns:
      true if the value matches the current type, false otherwise