| 构造器和说明 |
|---|
ClassCategory(ClassThingManager thingManager,
String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
Category |
getCategory(String name)
通过名称返回指定的下级目录。
|
List<Category> |
getCategorys()
获取下一级的目录的列表。
|
ThingClassLoader |
getClassLoader()
返回Category对应的ClassLoader。
|
String |
getFilePath()
返回文件所在的位置。
|
String |
getName()
返回当前目录的名称。
|
Category |
getParent()
返回上级目录。
|
String |
getSimpleName()
返回目录的简写。
|
Thing |
getThing(String name)
通过事物的名称获得当前目录下的事物。
|
List<ThingIndex> |
getThingIndexs()
返回当前目录下的所有事物的索引列表,不包含子目录。
|
List<ThingIndex> |
getThingIndexs(String descriptor)
根据描述返回事物索引列表。
|
ThingManager |
getThingManager()
返回此目录所属的事物管理者。
|
List<Thing> |
getThings()
获得当前目录下的事物列表。
|
List<Thing> |
getThings(String descriptor)
返回指定事物的列表。
|
Iterator<Thing> |
iterator(boolean includeChildCategory)
遍历当前目录下的所有事物。
|
Iterator<Thing> |
iterator(String descriptorPath,
boolean includeChildCategory)
通过指定的描述者名称遍历当前目录下的所有事物。
|
void |
refresh()
刷新。
|
void |
refresh(boolean includeChild)
刷新。
|
void |
setClassLoader(ThingClassLoader classLoader)
设置当前Category的类加载器。
|
public ClassCategory(ClassThingManager thingManager, String name)
public Category getCategory(String name)
CategorygetCategory 在接口中 Categoryname - 下级目录的名称public List<Category> getCategorys()
CategorygetCategorys 在接口中 Categorypublic String getFilePath()
CategorygetFilePath 在接口中 Categorypublic String getSimpleName()
CategorygetSimpleName 在接口中 Categorypublic List<ThingIndex> getThingIndexs()
CategorygetThingIndexs 在接口中 Categorypublic List<ThingIndex> getThingIndexs(String descriptor)
CategorygetThingIndexs 在接口中 Categorydescriptor - 描述者public ThingManager getThingManager()
CategorygetThingManager 在接口中 Categorypublic List<Thing> getThings(String descriptor)
Categorypublic Iterator<Thing> iterator(boolean includeChildCategory)
Categorypublic Iterator<Thing> iterator(String descriptorPath, boolean includeChildCategory)
Categorypublic void refresh(boolean includeChild)
Categorypublic ThingClassLoader getClassLoader()
CategorygetClassLoader 在接口中 Categorypublic void setClassLoader(ThingClassLoader classLoader)
CategorysetClassLoader 在接口中 CategoryCopyright © 2022 xworker.org. All rights reserved.