001    package org.nakedobjects.applib.events;
002    
003    import org.nakedobjects.applib.Identifier;
004    
005    
006    /**
007     * Represents a check as to whether a particular argument for an action is valid or not.
008     * 
009     * <p>
010     * If {@link #getReason()} is not <tt>null</tt> then provides the reason why the set of arguments are
011     * invalid; otherwise the arguments are valid.
012     * 
013     * <p>
014     * Called after each of the {@link ActionArgumentEvent}s.
015     */
016    public class ActionInvocationEvent extends ValidityEvent {
017    
018        private static final long serialVersionUID = 1L;
019    
020        public ActionInvocationEvent(final Object source, final Identifier actionIdentifier, final Object[] args) {
021            super(source, actionIdentifier);
022            this.args = args;
023        }
024    
025        private Object[] args;
026    
027        public Object[] getArgs() {
028            return args;
029        }
030    
031        public void setArgs(final Object[] args) {
032            this.args = args;
033        }
034    
035    }