类 TransientCategory

  • 所有已实现的接口:
    Category

    public class TransientCategory
    extends Object
    implements Category
    瞬态事物管理者下的目录。
    作者:
    zyx
    • 方法详细资料

      • getCategory

        public Category getCategory​(String name)
        从接口复制的说明: Category
        通过名称返回指定的下级目录。
        指定者:
        getCategory 在接口中 Category
        参数:
        name - 下级目录的名称
        返回:
        下级目录,如果不存在返回null
      • getCategorys

        public List<Category> getCategorys()
        从接口复制的说明: Category
        获取下一级的目录的列表。
        指定者:
        getCategorys 在接口中 Category
        返回:
        下一级目录的列表
      • getParent

        public Category getParent()
        从接口复制的说明: Category
        返回上级目录。
        指定者:
        getParent 在接口中 Category
        返回:
        上级目录,如果不存在返回null
      • getThing

        public Thing getThing​(String name)
        从接口复制的说明: Category
        通过事物的名称获得当前目录下的事物。
        指定者:
        getThing 在接口中 Category
        参数:
        name - 事物名称
        返回:
        事物,如果不存在返回null
      • getName

        public String getName()
        从接口复制的说明: Category
        返回当前目录的名称。
        指定者:
        getName 在接口中 Category
        返回:
        目录的名称
      • getSimpleName

        public String getSimpleName()
        从接口复制的说明: Category
        返回目录的简写。
        指定者:
        getSimpleName 在接口中 Category
        返回:
        目录名
      • getThingIndexs

        public List<ThingIndex> getThingIndexs​(String descriptorPath)
        从接口复制的说明: Category
        根据描述返回事物索引列表。
        指定者:
        getThingIndexs 在接口中 Category
        参数:
        descriptorPath - 描述者
        返回:
        事物索引列表
      • getThings

        public List<Thing> getThings​(String descriptorPath)
        从接口复制的说明: Category
        返回指定事物的列表。 取具体事物是请用World,World负责缓存。
        指定者:
        getThings 在接口中 Category
        参数:
        descriptorPath - 描述者
        返回:
        事物列表
      • iterator

        public Iterator<Thing> iterator​(boolean includeChildCategory)
        从接口复制的说明: Category
        遍历当前目录下的所有事物。 取具体事物是请用World,World负责缓存。
        指定者:
        iterator 在接口中 Category
        参数:
        includeChildCategory - 是否包含子目录
        返回:
        事物遍历器
      • iterator

        public Iterator<Thing> iterator​(String descriptorPath,
                                        boolean includeChildCategory)
        从接口复制的说明: Category
        通过指定的描述者名称遍历当前目录下的所有事物。 取具体事物是请用World,World负责缓存。
        指定者:
        iterator 在接口中 Category
        参数:
        descriptorPath - 描述者的路径
        includeChildCategory - 是否包含子目录
        返回:
        事物遍历器
      • getThingIndexs

        public List<ThingIndex> getThingIndexs()
        从接口复制的说明: Category
        返回当前目录下的所有事物的索引列表,不包含子目录。
        指定者:
        getThingIndexs 在接口中 Category
        返回:
        事物的索引列表
      • getThings

        public List<Thing> getThings()
        从接口复制的说明: Category
        获得当前目录下的事物列表。 取具体事物是请用World,World负责缓存。
        指定者:
        getThings 在接口中 Category
        返回:
        事物列表
      • refresh

        public void refresh()
        从接口复制的说明: Category
        刷新。
        指定者:
        refresh 在接口中 Category
      • refresh

        public void refresh​(boolean includeChild)
        从接口复制的说明: Category
        刷新。
        指定者:
        refresh 在接口中 Category
        参数:
        includeChild - 是否包含子目录
      • getFilePath

        public String getFilePath()
        从接口复制的说明: Category
        返回文件所在的位置。
        指定者:
        getFilePath 在接口中 Category
        返回:
        文件路径
      • getClassLoader

        public ThingClassLoader getClassLoader()
        从接口复制的说明: Category
        返回Category对应的ClassLoader。如果当前classLoader为null一般使用父级的classLoader。
        指定者:
        getClassLoader 在接口中 Category
        返回: