程序包 org.xmeta
类 Index
- java.lang.Object
-
- org.xmeta.Index
-
- 直接已知子类:
CategoryIndex,FileIndex,ParentIndex,ThingIndexIndex,ThingManagerIndex,WorkingSetIndex,WorldIndex
public abstract class Index extends Object
项目、事物管理器、目录或事物的索引,用于编辑器的目录显示或事物的一般索引。- 作者:
- zyx
-
-
字段概要
字段 修饰符和类型 字段 说明 protected booleanindexed是否已创建索引static StringTYPE_CATEGORYstatic StringTYPE_CHILDWORLDSstatic StringTYPE_FILEstatic StringTYPE_PLUGINSstatic StringTYPE_PROJECTstatic StringTYPE_PROJECTSstatic StringTYPE_THINGstatic StringTYPE_THINGMANAGERstatic StringTYPE_WORKING_SETstatic StringTYPE_WORLD
-
构造器概要
构造器 构造器 说明 Index()
-
方法概要
所有方法 静态方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 abstract List<Index>getChilds()取子索引列表。abstract StringgetDescription()取描述。static IndexgetIndex(String type, String path)static IndexgetIndex(Index index, String type, String path)static IndexgetIndexById(String id)通过标识获取索引。static StringgetIndexId(Index index)通过Index生成一个ID,使用这个ID可以通过getIndexById方法获取。abstract ObjectgetIndexObject()返回被索引的事物。static IndexgetInstance()取实例。abstract StringgetLabel()取标签。StringgetLastDate()longgetLastModified()abstract StringgetName()取名称。abstract IndexgetParent()取索引的父索引。abstract StringgetPath()取路径,这个路径是通过World.get(path)可以获取的那个参数路径。abstract StringgetType()返回索引的事物的类型。abstract booleanrefresh()刷新子索引。
-
-
-
方法详细资料
-
getInstance
public static Index getInstance()
取实例。- 返回:
- 索引实例
-
getIndexId
public static String getIndexId(Index index)
通过Index生成一个ID,使用这个ID可以通过getIndexById方法获取。- 参数:
index- 索引- 返回:
- ID
-
getIndexObject
public abstract Object getIndexObject()
返回被索引的事物。- 返回:
- 索引事物
-
getParent
public abstract Index getParent()
取索引的父索引。- 返回:
- 父索引
-
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()
-
-