文件名称:Composite
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:88.54kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
组合模式,完整代码及运行结果截图
题目:
文件系统中有文件, 也有文件夹(其实是特殊的文件), 文件和文件夹组合在一起, 可以成为一个更大的文件夹. 在用户看来,不管是文件, 还是文件夹, 还是更目录, 对它们的操作都是一致的(当然试图把一个文件夹放到文件下面是不容许的). 这就是说整体和部分具有一致的接口.
要求应用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
FileStructure/.project
FileStructure/bin/Client.class
FileStructure/bin/File.class
FileStructure/bin/Folder.class
FileStructure/bin/IFile.class
FileStructure/src/Client.java
FileStructure/src/File.java
FileStructure/src/Folder.java
FileStructure/src/IFile.java
QQ截图未命名.png
FileStructure/bin
FileStructure/src
FileStructure
FileStructure/.project
FileStructure/bin/Client.class
FileStructure/bin/File.class
FileStructure/bin/Folder.class
FileStructure/bin/IFile.class
FileStructure/src/Client.java
FileStructure/src/File.java
FileStructure/src/Folder.java
FileStructure/src/IFile.java
QQ截图未命名.png
FileStructure/bin
FileStructure/src
FileStructure
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.