程序包 org.xmeta
类 Index
java.lang.Object
org.xmeta.Index
- 直接已知子类:
CategoryIndex,FileIndex,ParentIndex,ThingIndexIndex,ThingManagerIndex,WorkingSetIndex,WorldIndex
项目、模型管理器、目录或模型的索引,用于编辑器的目录显示或模型的一般索引。
- 作者:
- zyx
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static Index查找目录的索引。static Index查找指定模型的索引。static IndexfindIndex(ThingManager thingManager) 查找模型管理器的索引。取子索引列表。abstract String取描述。static Indexstatic Indexstatic IndexgetIndexById(String id) 通过标识获取索引。static StringgetIndexId(Index index) 通过Index生成一个ID,使用这个ID可以通过getIndexById方法获取。abstract Object返回被索引的模型。static Index取实例。abstract StringgetLabel()取标签。longabstract StringgetName()取名称。abstract Index取索引的父索引。abstract StringgetPath()取路径,这个路径是通过World.get(path)可以获取的那个参数路径。abstract StringgetType()返回索引的模型的类型。static Stringabstract booleanrefresh()刷新子索引。static voidsetWorkingSetThing(String workingSetThing)
-
字段详细资料
-
构造器详细资料
-
Index
public Index()
-
-
方法详细资料
-
getInstance
取实例。- 返回:
- 索引实例
-
getIndexId
通过Index生成一个ID,使用这个ID可以通过getIndexById方法获取。- 参数:
index- 索引- 返回:
- ID
-
getIndexById
通过标识获取索引。- 参数:
id- 索引ID- 返回:
- 索引
-
getIndex
-
getIndex
-
getIndexObject
返回被索引的模型。- 返回:
- 索引模型
-
getParent
取索引的父索引。- 返回:
- 父索引
-
getChilds
取子索引列表。- 返回:
- 子索引列表
-
getDescription
取描述。- 返回:
- 描述
-
getLabel
取标签。- 返回:
- 标签
-
getName
取名称。- 返回:
- 名称
-
getPath
取路径,这个路径是通过World.get(path)可以获取的那个参数路径。- 返回:
- 路径
-
getType
返回索引的模型的类型。- 返回:
- 索引的模型的类型
-
refresh
public abstract boolean refresh()刷新子索引。- 返回:
- 是否刷新成功
-
getLastModified
public long getLastModified() -
getLastDate
-
getWorkingSetThing
-
setWorkingSetThing
-
findIndex
查找指定模型的索引。- 参数:
thing- 模型- 返回:
- 模型的索引
-
findIndex
查找模型管理器的索引。- 参数:
thingManager- 模型管理器- 返回:
- 模型管理器索引
-
findIndex
查找目录的索引。- 参数:
category- 目录- 返回:
- 目录对应的索引
-