org.apache.hupa.shared.data
Class IMAPFolder

java.lang.Object
  extended by org.apache.hupa.shared.data.IMAPFolder
All Implemented Interfaces:
Serializable

public class IMAPFolder
extends Object
implements Serializable

IMAPFolder

See Also:
Serialized Form

Constructor Summary
IMAPFolder()
           
IMAPFolder(String fullName)
           
 
Method Summary
 boolean equals(Object o)
           
 ArrayList<IMAPFolder> getChildIMAPFolders()
          Return the childs of this folder
 String getDelimiter()
          Return the delimiter
 String getFullName()
          Return the full name of the folder.
 int getMessageCount()
          Return the total message count of the messages that exists within this folder
 String getName()
          Get the name of the folder
 boolean getSubscribed()
           
 int getUnseeMessageCount()
          Return the unseen message count
 int hashCode()
           
 void setChildIMAPFolders(ArrayList<IMAPFolder> childs)
          Set the child folders
 void setDelimiter(String delimiter)
          Set the delimiter which is used to seperate folders
 void setFullName(String fullName)
          Set the full name of the folder
 void setMessageCount(int msgCount)
          Set total message count
 void setSubscribed(boolean subscribed)
           
 void setUnseenMessageCount(int unseenMsgCount)
          Set the count of all unseen messages within this folder
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

IMAPFolder

public IMAPFolder()

IMAPFolder

public IMAPFolder(String fullName)
Method Detail

setSubscribed

public void setSubscribed(boolean subscribed)

getSubscribed

public boolean getSubscribed()

getName

public String getName()
Get the name of the folder

Returns:
name

setChildIMAPFolders

public void setChildIMAPFolders(ArrayList<IMAPFolder> childs)
Set the child folders

Parameters:
childs -

getChildIMAPFolders

public ArrayList<IMAPFolder> getChildIMAPFolders()
Return the childs of this folder

Returns:
childs

getFullName

public String getFullName()
Return the full name of the folder. This include the full path

Returns:
Full name of the folder

setFullName

public void setFullName(String fullName)
Set the full name of the folder

Parameters:
fullName -

setDelimiter

public void setDelimiter(String delimiter)
Set the delimiter which is used to seperate folders

Parameters:
delimiter -

getDelimiter

public String getDelimiter()
Return the delimiter

Returns:
delimiter

getMessageCount

public int getMessageCount()
Return the total message count of the messages that exists within this folder

Returns:
msgCount

setMessageCount

public void setMessageCount(int msgCount)
Set total message count

Parameters:
msgCount -

setUnseenMessageCount

public void setUnseenMessageCount(int unseenMsgCount)
Set the count of all unseen messages within this folder

Parameters:
unseenMsgCount -

getUnseeMessageCount

public int getUnseeMessageCount()
Return the unseen message count

Returns:
unseenMsgCount

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.