Interface ItemMandatoryHandler

All Superinterfaces:
Serializable
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ItemMandatoryHandler extends Serializable
  • Method Summary

    Modifier and Type
    Method
    Description
    default boolean
    In some cases while executing a validation check of mandatory option, the validation can be skipped (e.g. when mandatory item is a part of an empty container, see ticket #10210).
    boolean
    isMandatory(ItemWrapper<?,?> itemWrapper)
     
  • Method Details

    • isMandatory

      boolean isMandatory(ItemWrapper<?,?> itemWrapper)
    • forceValidation

      default boolean forceValidation()
      In some cases while executing a validation check of mandatory option, the validation can be skipped (e.g. when mandatory item is a part of an empty container, see ticket #10210). But there are also cases when the item should be forced to be checked for mandatory option (e.g. when comment is set to be mandatory while approving cert. item, see ticket #10974). The default return value of the method is false which means that additional checks can be executed to resolve the final value of mandatory option. If forceValidation is overridden to return true value, mandatory option will be taken as it is, without possibility to re-analyze it.
      Returns: