Package org.spiderwiz.admin.data
Class FolderList
java.lang.Object
org.spiderwiz.admin.data.FolderList
@WizSerializable public class FolderList extends Object
Holds data that describes file folder content for the use of SpiderAdmin.
The class is used internally by the SpiderAdmin agent and is rarely accessed explicitly. It is documented here for those rare cases.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FolderList.FolderEntry
Holds data that describes one entry in a file folder content list. -
Constructor Summary
Constructors Constructor Description FolderList()
-
Method Summary
Modifier and Type Method Description FolderList
addFolderEntry(String name, boolean type, String modified, int size, double download)
Adds one entry to the list of entries that describes all the files and sub-folders in this folder.List<FolderList.FolderEntry>
getFolderEntry()
Gets the value of the folderEntry property.
-
Constructor Details
-
FolderList
public FolderList()
-
-
Method Details
-
getFolderEntry
Gets the value of the folderEntry property.The
folderEntry
property is a list of entries that describes all the files and sub-folders in this folder.- Returns:
- the folderEntry property
-
addFolderEntry
public FolderList addFolderEntry(String name, boolean type, String modified, int size, double download)Adds one entry to the list of entries that describes all the files and sub-folders in this folder.- Parameters:
name
- file or sub-folder name.type
- true if this is a sub-folder, false if this is a file.modified
- a String representing the date and time the file or sub-folder was last modified.size
- size of the file in bytes.download
- the estimated download time in seconds of the file. Zero in case this is a sub-folder entry.- Returns:
- this object.
-