文件名称:Composite
- 所属分类:
- JSP源码/Java
- 资源属性:
- [Java] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 89kb
- 下载次数:
- 0次
- 提 供 者:
- h**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
组合模式,完整代码及运行结果截图
题目:
文件系统中有文件, 也有文件夹(其实是特殊的文件), 文件和文件夹组合在一起, 可以成为一个更大的文件夹. 在用户看来,不管是文件, 还是文件夹, 还是更目录, 对它们的操作都是一致的(当然试图把一个文件夹放到文件下面是不容许的). 这就是说整体和部分具有一致的接口.
要求应用Composite模式来实现文件系统的文件/目录结构.-Combination mode of operation results capture the full code and title: the file system to file, there are folders (in fact, a special file), files and folders together, can become a bigger folder. In the user view, Whether the file or folder, or more directory operations on them are the same (of course tried to put a folder in the file the following is not allowed). This means that the whole and part with a consistent interface. requires the application of Composite model for file system file/directory structure.
题目:
文件系统中有文件, 也有文件夹(其实是特殊的文件), 文件和文件夹组合在一起, 可以成为一个更大的文件夹. 在用户看来,不管是文件, 还是文件夹, 还是更目录, 对它们的操作都是一致的(当然试图把一个文件夹放到文件下面是不容许的). 这就是说整体和部分具有一致的接口.
要求应用Composite模式来实现文件系统的文件/目录结构.-Combination mode of operation results capture the full code and title: the file system to file, there are folders (in fact, a special file), files and folders together, can become a bigger folder. In the user view, Whether the file or folder, or more directory operations on them are the same (of course tried to put a folder in the file the following is not allowed). This means that the whole and part with a consistent interface. requires the application of Composite model for file system file/directory structure.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
FileStructure\.classpath
.............\.project
.............\bin\Client.class
.............\...\File.class
.............\...\Folder.class
.............\...\IFile.class
.............\src\Client.java
.............\...\File.java
.............\...\Folder.java
.............\...\IFile.java
QQ截图未命名.png
FileStructure\bin
.............\src
FileStructure
.............\.project
.............\bin\Client.class
.............\...\File.class
.............\...\Folder.class
.............\...\IFile.class
.............\src\Client.java
.............\...\File.java
.............\...\Folder.java
.............\...\IFile.java
QQ截图未命名.png
FileStructure\bin
.............\src
FileStructure