Java Doc for FilesystemContainer.java in  » Web-Framework » Millstone » org » millstone » base » data » util » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Web Framework » Millstone » org.millstone.base.data.util 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.millstone.base.data.util.FilesystemContainer

FilesystemContainer
public class FilesystemContainer implements Container.Hierarchical(Code)
A hierarchical container wrapper for a filesystem.
author:
   IT Mill Ltd.
version:
   3.1.1
since:
   3.0

Inner Class :public class FileItem implements Item
Inner Class :public class FileExtensionFilter implements FilenameFilter

Field Summary
public static  CollectionFILE_PROPERTIES
    
public static  StringPROPERTY_ICON
     String identifier of a file's "icon" property.
public static  StringPROPERTY_LASTMODIFIED
     String identifier of a file's "last modified" property.
public static  StringPROPERTY_NAME
     String identifier of a file's "name" property.
public static  StringPROPERTY_SIZE
     String identifier of a file's "size" property.

Constructor Summary
public  FilesystemContainer(File root)
     Construct a new FileSystemContainer with the specified file as the root of the filesystem.
public  FilesystemContainer(File root, boolean recursive)
     Construct a new FileSystemContainer with the specified file as the root of the filesystem.
public  FilesystemContainer(File root, String extension, boolean recursive)
     Construct a new FileSystemContainer with the specified file as the root of the filesystem.
public  FilesystemContainer(File root, FilenameFilter filter, boolean recursive)
     Construct a new FileSystemContainer with the specified root and recursivity status.

Method Summary
public  booleanaddContainerProperty(Object propertyId, Class type, Object defaultValue)
    
public  ObjectaddItem()
    
public  ItemaddItem(Object itemId)
    
public  voidaddRoot(File root)
     Add new root file directory.
public  booleanareChildrenAllowed(Object itemId)
     Tests if the specified Item in the container may have children.
public  booleancontainsId(Object itemId)
    
public  CollectiongetChildren(Object itemId)
    
public  PropertygetContainerProperty(Object itemId, Object propertyId)
     Gets the specified property of the specified file Item.
public  CollectiongetContainerPropertyIds()
     Gets the collection of available file properties.
public  FilenameFiltergetFilter()
     Returns the file filter used to limit the files in this container.
public  ItemgetItem(Object itemId)
    
public  CollectiongetItemIds()
    
public  ObjectgetParent(Object itemId)
    
public  ClassgetType(Object propertyId)
     Gets the specified property's data type.
public  booleanhasChildren(Object itemId)
    
public  booleanisRecursive()
     Is this container recursive filesystem.
public  booleanisRoot(Object itemId)
    
public  booleanremoveAllItems()
    
public  booleanremoveContainerProperty(Object propertyId)
    
public  booleanremoveItem(Object itemId)
    
public  CollectionrootItemIds()
    
public  booleansetChildrenAllowed(Object itemId, boolean areChildrenAllowed)
     Return false - conversion from files to directories is not supported.
public  voidsetFilter(FilenameFilter filter)
     Sets the file filter used to limit the files in this container.
Parameters:
  filter - The filter to set.
public  voidsetFilter(String extension)
     Sets the file filter used to limit the files in this container.
public  booleansetParent(Object itemId, Object newParentId)
     Return false - moving files around in the filesystem is not supported.
public  voidsetRecursive(boolean recursive)
     Sets the container recursive property.
public  intsize()
     Gets the number of Items in the container.

Field Detail
FILE_PROPERTIES
public static Collection FILE_PROPERTIES(Code)
List of the string identifiers for the available properties



PROPERTY_ICON
public static String PROPERTY_ICON(Code)
String identifier of a file's "icon" property.



PROPERTY_LASTMODIFIED
public static String PROPERTY_LASTMODIFIED(Code)
String identifier of a file's "last modified" property.



PROPERTY_NAME
public static String PROPERTY_NAME(Code)
String identifier of a file's "name" property.



PROPERTY_SIZE
public static String PROPERTY_SIZE(Code)
String identifier of a file's "size" property.




Constructor Detail
FilesystemContainer
public FilesystemContainer(File root)(Code)
Construct a new FileSystemContainer with the specified file as the root of the filesystem. The files are included recursively.
Parameters:
  root - root file for the new file-system container. Null values are ignored.



FilesystemContainer
public FilesystemContainer(File root, boolean recursive)(Code)
Construct a new FileSystemContainer with the specified file as the root of the filesystem. The files are included recursively.
Parameters:
  root - root file for the new file-system container
Parameters:
  recursive - should the container recursively contain subdirectories.



FilesystemContainer
public FilesystemContainer(File root, String extension, boolean recursive)(Code)
Construct a new FileSystemContainer with the specified file as the root of the filesystem.
Parameters:
  root - root file for the new file-system container
Parameters:
  extension - Filename extension (w/o separator) to limit the files in container.
Parameters:
  recursive - should the container recursively contain subdirectories.



FilesystemContainer
public FilesystemContainer(File root, FilenameFilter filter, boolean recursive)(Code)
Construct a new FileSystemContainer with the specified root and recursivity status.
Parameters:
  root - root file for the new file-system container
Parameters:
  filter - Filename filter to limit the files in container.
Parameters:
  recursive - should the container recursively contain subdirectories.




Method Detail
addContainerProperty
public boolean addContainerProperty(Object propertyId, Class type, Object defaultValue) throws UnsupportedOperationException(Code)

See Also:   org.millstone.base.data.Container.addContainerProperty(ObjectClassObject)



addItem
public Object addItem() throws UnsupportedOperationException(Code)

See Also:   org.millstone.base.data.Container.addItem



addItem
public Item addItem(Object itemId) throws UnsupportedOperationException(Code)

See Also:   org.millstone.base.data.Container.addItem(Object)



addRoot
public void addRoot(File root)(Code)
Add new root file directory. Adds a file to be included as root file directory in the FilesystemContainer.
Parameters:
  root - File to be added as root directory. Null values are ignored.



areChildrenAllowed
public boolean areChildrenAllowed(Object itemId)(Code)
Tests if the specified Item in the container may have children. Since a FileSystemContainer contains files and directories, this method returns true for directory Items only. true if the specified Item is a directory,false otherwise.



containsId
public boolean containsId(Object itemId)(Code)



getChildren
public Collection getChildren(Object itemId)(Code)



getContainerProperty
public Property getContainerProperty(Object itemId, Object propertyId)(Code)
Gets the specified property of the specified file Item. The available file properties are "Name", "Size" and "Last Modified". If propertyId is not one of those, null is returned.
Parameters:
  itemId - ID of the file whose property is requested
Parameters:
  propertyId - The property's ID the requested property's value, or null



getContainerPropertyIds
public Collection getContainerPropertyIds()(Code)
Gets the collection of available file properties. Unmodifiable collection containing all available fileproperties.



getFilter
public FilenameFilter getFilter()(Code)
Returns the file filter used to limit the files in this container. Used filter instance or null if no filter is assigned.



getItem
public Item getItem(Object itemId)(Code)



getItemIds
public Collection getItemIds()(Code)



getParent
public Object getParent(Object itemId)(Code)



getType
public Class getType(Object propertyId)(Code)
Gets the specified property's data type. "Name" is a String, "Size" is a Long, "Last Modified" is a Date. If propertyId is not one of those, null is returned.
Parameters:
  propertyId - ID of the property whose type is requested. data type of the requested property, or null



hasChildren
public boolean hasChildren(Object itemId)(Code)



isRecursive
public boolean isRecursive()(Code)
Is this container recursive filesystem. true if container is recursive, false otherwise.



isRoot
public boolean isRoot(Object itemId)(Code)



removeAllItems
public boolean removeAllItems() throws UnsupportedOperationException(Code)

See Also:   org.millstone.base.data.Container.removeAllItems



removeContainerProperty
public boolean removeContainerProperty(Object propertyId) throws UnsupportedOperationException(Code)

See Also:   org.millstone.base.data.Container.removeContainerProperty(Object)



removeItem
public boolean removeItem(Object itemId) throws UnsupportedOperationException(Code)

See Also:   org.millstone.base.data.Container.removeItem(Object)



rootItemIds
public Collection rootItemIds()(Code)



setChildrenAllowed
public boolean setChildrenAllowed(Object itemId, boolean areChildrenAllowed) throws UnsupportedOperationException(Code)
Return false - conversion from files to directories is not supported. false



setFilter
public void setFilter(FilenameFilter filter)(Code)
Sets the file filter used to limit the files in this container.
Parameters:
  filter - The filter to set. null disables filtering.



setFilter
public void setFilter(String extension)(Code)
Sets the file filter used to limit the files in this container.
Parameters:
  extension - Filename extension (w/o separator) to limit the files in container.



setParent
public boolean setParent(Object itemId, Object newParentId) throws UnsupportedOperationException(Code)
Return false - moving files around in the filesystem is not supported. false



setRecursive
public void setRecursive(boolean recursive)(Code)
Sets the container recursive property. Set this to false to limit the files directly under the root file. Note, that this is meaningful only if the root really is a directory.
Parameters:
  New - value for recursive property.



size
public int size()(Code)
Gets the number of Items in the container. In effect, this is the combined amount of files and directories. Number of Items in the container.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.