public abstract class CachedCategory extends Object implements Category
| 限定符和类型 | 字段和说明 |
|---|---|
protected List<Category> |
childCategorys
子包列表
|
protected String |
name
包名称
|
protected Category |
parent
父包
|
protected boolean |
refreshed
是否已经刷新过
|
protected List<ThingIndex> |
thingIndexs
事物索引列表
|
protected ThingManager |
thingManager
事物管理器
|
| 构造器和说明 |
|---|
CachedCategory(ThingManager thingManager,
Category parent,
String name) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addCategory(Category category)
添加子包。
|
void |
addThingIndex(ThingIndex thingIndex)
添加事物索引。
|
Category |
getCategory(String name)
通过名称返回指定的下级目录。
|
List<Category> |
getCategorys()
获取下一级的目录的列表。
|
String |
getName()
返回当前目录的名称。
|
Category |
getParent()
返回上级目录。
|
String |
getSimpleName()
返回目录的简写。
|
Thing |
getThing(String thingName)
通过事物的名称获得当前目录下的事物。
|
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)
通过指定的描述者名称遍历当前目录下的所有事物。
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFilePath, refresh, refreshprotected List<ThingIndex> thingIndexs
protected Category parent
protected String name
protected ThingManager thingManager
protected boolean refreshed
public CachedCategory(ThingManager thingManager, Category parent, String name)
public Category getCategory(String name)
CategorygetCategory 在接口中 Categoryname - 下级目录的名称public List<Category> getCategorys()
CategorygetCategorys 在接口中 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 addCategory(Category category)
category - 包public void addThingIndex(ThingIndex thingIndex)
thingIndex - 事物索引Copyright © 2016 xworker.org. All rights reserved.