Package com.uc4.util
Class FolderImpl
java.lang.Object
com.uc4.util.FolderImpl
- All Implemented Interfaces:
IFolder
Implementation of the folder interface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(FolderImpl folder) Adds a child to this folderboolean
fullPath()
Returns the full path of this folder.getId()
Returns the ID of the folder.getName()
Returns the name of the folder.Returns the parent folder of this folder.Returns the ID of the parent folder.getSubFolder
(String folderName, boolean recursive) Returns a subfolder with the specified name.getTitle()
Returns the title of the folder.getType()
Returns the type of this folder CLNT ...int
hashCode()
void
Sets the parent folderReturns an iterator for subfolders Each object in the list implements theIFolder
interface.toString()
-
Constructor Details
-
FolderImpl
Constructs a new folder using the specified name, id and parent id.- Parameters:
name
- Name of the foldertitle
- Title of the folderid
- String containing the ID of the folderparentId
- String containing the ID of the parent foldertype
- Type of the folder
-
-
Method Details
-
addChild
Adds a child to this folder- Parameters:
folder
- Folder which should be added as child
-
getId
Description copied from interface:IFolder
Returns the ID of the folder. -
getName
Description copied from interface:IFolder
Returns the name of the folder. -
getTitle
Description copied from interface:IFolder
Returns the title of the folder. -
getParentId
Returns the ID of the parent folder.- Returns:
- String containing the ID of the parent folder
-
setParent
Sets the parent folder- Parameters:
parent
- Parent folder
-
equals
-
hashCode
public int hashCode() -
getSubFolder
Description copied from interface:IFolder
Returns a subfolder with the specified name.- Specified by:
getSubFolder
in interfaceIFolder
- Parameters:
folderName
- Name of the subfolderrecursive
-true
if recursivefalse
otherwise- Returns:
- object which implements
IFolder
-
subfolder
Description copied from interface:IFolder
Returns an iterator for subfolders Each object in the list implements theIFolder
interface. If there are no subfolders this method returnsnull
. -
getParent
Description copied from interface:IFolder
Returns the parent folder of this folder. -
fullPath
Description copied from interface:IFolder
Returns the full path of this folder. Each folder is separated by a / -
toString
-
getType
Description copied from interface:IFolder
Returns the type of this folder- CLNT ... Client, Root folder, exists only once
- NFOLD ... No Folder, exists only once
- FAV ... Favorites folder, exists only once
- USERF ... User favorites
- USRGF ... User Group favorites
- TRANSCASE ... Transport folder
- VERSCONTROL ... Version Management folder
- RCNT ... Recent Objects
- TRASH ... Recycle Bin
- FOLD ... Normal folder
-