程序包 org.xmeta

类 Index

    • 构造器详细资料

      • Index

        public Index()
    • 方法详细资料

      • getInstance

        public static Index getInstance()
        取实例。
        返回:
        索引实例
      • getIndexId

        public static String getIndexId​(Index index)
        通过Index生成一个ID,使用这个ID可以通过getIndexById方法获取。
        参数:
        index - 索引
        返回:
        ID
      • getIndexById

        public static Index getIndexById​(String id)
        通过标识获取索引。
        参数:
        id - 索引ID
        返回:
        索引
      • getIndexObject

        public abstract Object getIndexObject()
        返回被索引的模型。
        返回:
        索引模型
      • getParent

        public abstract Index getParent()
        取索引的父索引。
        返回:
        父索引
      • getChilds

        public abstract List<Index> getChilds()
        取子索引列表。
        返回:
        子索引列表
      • getDescription

        public abstract String getDescription()
        取描述。
        返回:
        描述
      • getLabel

        public abstract String getLabel()
        取标签。
        返回:
        标签
      • getName

        public abstract String getName()
        取名称。
        返回:
        名称
      • getPath

        public abstract String getPath()
        取路径,这个路径是通过World.get(path)可以获取的那个参数路径。
        返回:
        路径
      • getType

        public abstract String getType()
        返回索引的模型的类型。
        返回:
        索引的模型的类型
      • refresh

        public abstract boolean refresh()
        刷新子索引。
        返回:
        是否刷新成功
      • getLastModified

        public long getLastModified()
      • getLastDate

        public String getLastDate()
      • getWorkingSetThing

        public static String getWorkingSetThing()
      • setWorkingSetThing

        public static void setWorkingSetThing​(String workingSetThing)
      • findIndex

        public static Index findIndex​(Thing thing)
        查找指定模型的索引。
        参数:
        thing - 模型
        返回:
        模型的索引
      • findIndex

        public static Index findIndex​(ThingManager thingManager)
        查找模型管理器的索引。
        参数:
        thingManager - 模型管理器
        返回:
        模型管理器索引
      • findIndex

        public static Index findIndex​(Category category)
        查找目录的索引。
        参数:
        category - 目录
        返回:
        目录对应的索引