Constructor and Description |
---|
FolderImpl(java.lang.String name,
java.lang.String title,
java.lang.String id,
java.lang.String parentId,
java.lang.String type)
Constructs a new folder using the specified name, id and parent id.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(FolderImpl folder)
Adds a child to this folder
|
boolean |
equals(java.lang.Object other) |
java.lang.String |
fullPath()
Returns the full path of this folder.
|
java.lang.String |
getId()
Returns the ID of the folder.
|
java.lang.String |
getName()
Returns the name of the folder.
|
IFolder |
getParent()
Returns the parent folder of this folder.
|
java.lang.String |
getParentId()
Returns the ID of the parent folder.
|
IFolder |
getSubFolder(java.lang.String folderName,
boolean recursive)
Returns a subfolder with the specified name.
|
java.lang.String |
getTitle()
Returns the title of the folder.
|
java.lang.String |
getType()
Returns the type of this folder
CLNT ...
|
int |
hashCode() |
void |
setParent(IFolder parent)
Sets the parent folder
|
java.util.Iterator<IFolder> |
subfolder()
Returns an iterator for subfolders
Each object in the list implements the
IFolder interface. |
java.lang.String |
toString() |
public FolderImpl(java.lang.String name, java.lang.String title, java.lang.String id, java.lang.String parentId, java.lang.String type)
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 folderpublic void addChild(FolderImpl folder)
folder
- Folder which sould be added as childpublic java.lang.String getId()
IFolder
public java.lang.String getName()
IFolder
public java.lang.String getTitle()
IFolder
public java.lang.String getParentId()
public void setParent(IFolder parent)
parent
- Parent folderpublic boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public IFolder getSubFolder(java.lang.String folderName, boolean recursive)
IFolder
getSubFolder
in interface IFolder
folderName
- Name of the subfolderrecursive
- true
if recursive false
otherwiseIFolder
public java.util.Iterator<IFolder> subfolder()
IFolder
IFolder
interface.
If there are no subfolders this method returns null
.public IFolder getParent()
IFolder
public java.lang.String fullPath()
IFolder
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getType()
IFolder