/*
 * Copyright 2015-2017 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package javax.application.action;

/**
 * @author Andres Almiray
 */
public interface Action {
    String KEY_ENABLED = "enabled";

    /**
     * Returns the metadata associated with this action.
     *
     * @return a non-null value.
     */
    ActionMetadata getActionMetadata();

    /**
     * Returns thes owner of this action, this will typically be a (@code Controller} or {@code Presenter}.
     *
     * @return a non-null value.
     */
    Object getOwner();

    /**
     * Finds ouf if this action si enabled or not.
     *
     * @return {@code true} if the action is enabled, {@code false} otherwise.
     */
    boolean isEnabled();

    /**
     * Toggles the enabled tate of this action.
     *
     * @param enabled {@code true} to enabled, {@code false} to disable.
     */
    void setEnabled(boolean enabled);

    /**
     * Executes the action with the given arguments.
     * Executing an action in this way will trigger all {@code ActionHandler}s that may be registered with the application.
     *
     * @param args a set of arguments. Mey be {@code null}.
     */
    void execute(Object... args);
}

@@ -925,17 +925,16 @@
 urns the
-s
  owner o

Fix typo