function Command(component, name, schema, func) {
        if (name == null)
            throw new Error("Command name is not set");
        if (func == null)
            throw new Error("Command function is not set");
        this._component = component;
        this._name = name;
        this._schema = schema;
        this._function = func;
    }
/**
     * Creates a command instance
     * @param component a component this command belongs to
     * @param name the name of the command
     * @param schema a validation schema for command arguments
     * @param function an execution function to be wrapped into this command.
     */
Creates a command instance
@param component a component this command belongs to
@param name the name of the command
@param schema a validation schema for command arguments
@param function an execution function to be wrapped into this command.
Creates a command instance @param component a component this command belongs to @param name the name of the command @param schema a validation schema for command arguments @param function an execution function to be wrapped into this command .
function Command(component, name, schema, func) {
        if (name == null)
            throw new Error("Command name is not set");
        if (func == null)
            throw new Error("Command function is not set");
        this._component = component;
        this._name = name;
        this._schema = schema;
        this._function = func;
    }
function Command ( component , name , schema , func ) { if ( name == null ) throw new Error ( "Command name is not set" ) ; if ( func == null ) throw new Error ( "Command function is not set" ) ; this . _component = component ; this . _name = name ; this . _schema = schema ; this . _function = func ; }
Creates a command instance
 @param component a component this command belongs to
 @param name the name of the command
 @param schema a validation schema for command arguments
 @param function an execution function to be wrapped into this command.
Creates a command instance @param component a component this command belongs to @param name the name of the command @param schema a validation schema for command arguments @param function an execution function to be wrapped into this command .