类 ClassCategory
- java.lang.Object
-
- org.xmeta.thingManagers.ClassCategory
-
-
构造器概要
构造器 构造器 说明 ClassCategory(ClassThingManager thingManager, String name)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 CategorygetCategory(String name)通过名称返回指定的下级目录。List<Category>getCategorys()获取下一级的目录的列表。ThingClassLoadergetClassLoader()返回Category对应的ClassLoader。StringgetFilePath()返回文件所在的位置。StringgetName()返回当前目录的名称。CategorygetParent()返回上级目录。StringgetSimpleName()返回目录的简写。ThinggetThing(String name)通过模型的名称获得当前目录下的模型。List<ThingIndex>getThingIndexs()返回当前目录下的所有模型的索引列表,不包含子目录。List<ThingIndex>getThingIndexs(String descriptor)根据描述返回模型索引列表。ThingManagergetThingManager()返回此目录所属的模型管理者。List<Thing>getThings()获得当前目录下的模型列表。List<Thing>getThings(String descriptor)返回指定模型的列表。Iterator<Thing>iterator(boolean includeChildCategory)遍历当前目录下的所有模型。Iterator<Thing>iterator(String descriptorPath, boolean includeChildCategory)通过指定的描述者名称遍历当前目录下的所有模型。voidrefresh()刷新。voidrefresh(boolean includeChild)刷新。voidsetClassLoader(ThingClassLoader classLoader)设置当前Category的类加载器。
-
-
-
构造器详细资料
-
ClassCategory
public ClassCategory(ClassThingManager thingManager, String name)
-
-
方法详细资料
-
getCategory
public Category getCategory(String name)
从接口复制的说明:Category通过名称返回指定的下级目录。- 指定者:
getCategory在接口中Category- 参数:
name- 下级目录的名称- 返回:
- 下级目录,如果不存在返回null
-
getCategorys
public List<Category> getCategorys()
从接口复制的说明:Category获取下一级的目录的列表。- 指定者:
getCategorys在接口中Category- 返回:
- 下一级目录的列表
-
getFilePath
public String getFilePath()
从接口复制的说明:Category返回文件所在的位置。- 指定者:
getFilePath在接口中Category- 返回:
- 文件路径
-
getSimpleName
public String getSimpleName()
从接口复制的说明:Category返回目录的简写。- 指定者:
getSimpleName在接口中Category- 返回:
- 目录名
-
getThingIndexs
public List<ThingIndex> getThingIndexs()
从接口复制的说明:Category返回当前目录下的所有模型的索引列表,不包含子目录。- 指定者:
getThingIndexs在接口中Category- 返回:
- 模型的索引列表
-
getThingIndexs
public List<ThingIndex> getThingIndexs(String descriptor)
从接口复制的说明:Category根据描述返回模型索引列表。- 指定者:
getThingIndexs在接口中Category- 参数:
descriptor- 描述者- 返回:
- 模型索引列表
-
getThingManager
public ThingManager getThingManager()
从接口复制的说明:Category返回此目录所属的模型管理者。- 指定者:
getThingManager在接口中Category- 返回:
- 模型管理者
-
getThings
public List<Thing> getThings(String descriptor)
从接口复制的说明:Category返回指定模型的列表。 取具体模型是请用World,World负责缓存。
-
iterator
public Iterator<Thing> iterator(boolean includeChildCategory)
从接口复制的说明:Category遍历当前目录下的所有模型。 取具体模型是请用World,World负责缓存。
-
iterator
public Iterator<Thing> iterator(String descriptorPath, boolean includeChildCategory)
从接口复制的说明:Category通过指定的描述者名称遍历当前目录下的所有模型。 取具体模型是请用World,World负责缓存。
-
refresh
public void refresh(boolean includeChild)
从接口复制的说明:Category刷新。
-
getClassLoader
public ThingClassLoader getClassLoader()
从接口复制的说明:Category返回Category对应的ClassLoader。如果当前classLoader为null一般使用父级的classLoader。- 指定者:
getClassLoader在接口中Category- 返回:
-
setClassLoader
public void setClassLoader(ThingClassLoader classLoader)
从接口复制的说明:Category设置当前Category的类加载器。- 指定者:
setClassLoader在接口中Category
-
-