ValidityEvent

Supported only by WrapperFactory , represents a check to determine whether a proposed change is valid.

Multiple subclasses, including:

  • modifying a property

  • adding to/removing from a collection

  • checking a single argument for an action invocation

  • checking all arguments for an action invocation

  • checking all properties for an object before saving

If #getReason() is null , then is usable; otherwise is disabled.

API

ValidityEvent.java
class ValidityEvent {
  ValidityEvent(Object source, Identifier identifier)
  Object getSource()
  String getReasonMessage()
}