package com.test.test.domain;

import com.test.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.test.common.annotation.Excel;

/**
 * ui元素对象 ui_element
 * 
 * @author test
 * @date 2025-04-22
 */
public class UiElement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 组id */
    @Excel(name = "组id")
    private Long groupId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 定位类型 id name className tagName linkText partialLinkText css xpath label value index */
    @Excel(name = "定位类型 id name className tagName linkText partialLinkText css xpath label value index")
    private String locType;

    /** 元素定位 */
    @Excel(name = "元素定位")
    private String elementLoc;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 状态 0正常 1删除 */
    private String delFlag;

    /** 组路径名称（如"全部元素/测试"） */
    private String groupNamePath;

    // getter和setter
    public String getGroupNamePath() {
        return groupNamePath;
    }

    public void setGroupNamePath(String groupNamePath) {
        this.groupNamePath = groupNamePath;
    }

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGroupId(Long elementGroupId)
    {
        this.groupId = elementGroupId;
    }

    public Long getGroupId()
    {
        return groupId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setLocType(String locType) 
    {
        this.locType = locType;
    }

    public String getLocType() 
    {
        return locType;
    }
    public void setElementLoc(String elementLoc) 
    {
        this.elementLoc = elementLoc;
    }

    public String getElementLoc() 
    {
        return elementLoc;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("groupId", getGroupId())
            .append("name", getName())
            .append("locType", getLocType())
            .append("elementLoc", getElementLoc())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
