package com.videogo.widget.testlist;

/**
 * 测试功能项数据模型
 * 用于配置测试列表中的功能项
 */
public class TestItem {
    
    private String title;           // 显示标题
    private String className;       // 目标Activity类名或特殊功能标识
    
    public TestItem(String title, String className) {
        this.title = title;
        this.className = className;
    }
    
    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
    
    public String getClassName() {
        return className;
    }
    
    public void setClassName(String className) {
        this.className = className;
    }
    
    /**
     * 判断是否为特殊功能项
     * 特殊功能项以"SPECIAL_"开头
     */
    public boolean isSpecialItem() {
        return className != null && className.startsWith("SPECIAL_");
    }
    
    /**
     * 判断是否为普通Activity跳转
     */
    public boolean isActivityItem() {
        return className != null && !className.isEmpty() && !isSpecialItem();
    }
}
