org.nakedobjects.applib.events.ValidityEvent Maven / Gradle / Ivy
The newest version!
package org.nakedobjects.applib.events;
import org.nakedobjects.applib.Identifier;
/**
* 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 {@link #getReason()} is null, then is usable; otherwise is disabled.
*
* @see AccessEvent
* @see VisibilityEvent
* @see UsabilityEvent
*/
public abstract class ValidityEvent extends InteractionEvent {
private static final long serialVersionUID = 1L;
public ValidityEvent(final Object source, final Identifier identifier) {
super(source, identifier);
}
@Override
public Object getSource() {
return super.getSource();
}
}