// Path: src/com/kk/binding/command/UrlNavCommand.java
// public class UrlNavCommand implements ICommand {
//     @Override
//     public void execute(View view, Object... args) {
//         if (args.length > 0 && args[0] instanceof String) {
//             Intent intent = new Intent(Intent.ACTION_VIEW);
//             intent.setData(Uri.parse((String) args[0]));
//             if (BindEngine.instance().getContext() != null) {
//                 try {
//                     BindEngine.instance().getContext().startActivity(intent);
//                 } catch (Exception e) {
//                     BindLog.e("UrlNavCommand execute exception ", e.toString());
//                 }
//             }
//         }
//     }
// }
// 
// Path: src/com/kk/binding/command/ICommand.java
// public interface ICommand {
// 	public void execute(View view, Object... args);
// }
// 
// Path: src/com/kk/binding/util/StringUtil.java
// public class StringUtil {
//     public static boolean isNullOrEmpty(String str) {
//         return str == null || str.isEmpty();
//     }
// 
//     public static boolean compare(String str1, String str2) {
//         return (str1 == null || str2 == null) ? str1 == str2 : str1.equals(str2);
//     }
// }


import com.kk.binding.command.UrlNavCommand;
import com.kk.binding.command.ICommand;
import com.kk.binding.util.StringUtil;
import java.util.HashMap;
/*
 * Copyright (C) 2014 kk-team.com.
 *
 * 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 com.kk.binding.register;



/**
 * Created by xj on 14-1-1.
 */
public class CommandRegister {
    private static final String TAG = "Binding-CommandRegister";
// Path: src/com/kk/binding/command/UrlNavCommand.java
// public class UrlNavCommand implements ICommand {
//     @Override
//     public void execute(View view, Object... args) {
//         if (args.length > 0 && args[0] instanceof String) {
//             Intent intent = new Intent(Intent.ACTION_VIEW);
//             intent.setData(Uri.parse((String) args[0]));
//             if (BindEngine.instance().getContext() != null) {
//                 try {
//                     BindEngine.instance().getContext().startActivity(intent);
//                 } catch (Exception e) {
//                     BindLog.e("UrlNavCommand execute exception ", e.toString());
//                 }
//             }
//         }
//     }
// }
// 
// Path: src/com/kk/binding/command/ICommand.java
// public interface ICommand {
// 	public void execute(View view, Object... args);
// }
// 
// Path: src/com/kk/binding/util/StringUtil.java
// public class StringUtil {
//     public static boolean isNullOrEmpty(String str) {
//         return str == null || str.isEmpty();
//     }
// 
//     public static boolean compare(String str1, String str2) {
//         return (str1 == null || str2 == null) ? str1 == str2 : str1.equals(str2);
//     }
// }


// Path: src/com/kk/binding/register/CommandRegister.java
import com.kk.binding.command.UrlNavCommand;
import com.kk.binding.command.ICommand;
import com.kk.binding.util.StringUtil;
import java.util.HashMap;

/*
 * Copyright (C) 2014 kk-team.com.
 *
 * 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 com.kk.binding.register;



/**
 * Created by xj on 14-1-1.
 */
public class CommandRegister {
    private static final String TAG = "Binding-CommandRegister";
    private static HashMap<String, Class<? extends ICommand>> commands;