|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.levelonelabs.aim.AIMBuddy
Represents and AIM Buddy
Constructor Summary | |
AIMBuddy(java.lang.String name)
Constructor for the AIMBuddy object |
|
AIMBuddy(java.lang.String name,
java.lang.String group)
Constructor for the AIMBuddy object |
Method Summary | |
void |
addMessage(java.lang.String message)
Adds a feature to the Message attribute of the AIMBuddy object |
void |
addRole(java.lang.String role)
Adds a feature to the Role attribute of the AIMBuddy object |
void |
clearMessages()
Remove all messages |
java.lang.String |
getGroup()
The name of the group this buddy belongs to, in the buddylist |
java.util.ArrayList |
getMessages()
Gets the messages attribute of the AIMBuddy object |
java.lang.String |
getName()
Gets the name attribute of the AIMBuddy object |
java.lang.String |
getPreference(java.lang.String pref)
Gets the preference attribute of the AIMBuddy object |
java.util.HashMap |
getPreferences()
Gets the preferences attribute of the AIMBuddy object |
int |
getWarningAmount()
Gets the current warning amount |
boolean |
hasMessages()
Does buddy have messages? |
boolean |
hasRole(java.lang.String role)
Do I have specified role |
boolean |
isBanned()
Returns the banned. |
boolean |
isOnline()
Gets the online attribute of the AIMBuddy object |
void |
readState(org.w3c.dom.Element fullStateElement)
Read info from the Element |
void |
setBanned(boolean banned)
Sets the banned. |
void |
setGroup(java.lang.String group)
Set the group the buddy is in, in the buddy list |
void |
setName(java.lang.String name)
Sets the name attribute of the AIMBuddy object |
void |
setOnline(boolean online)
Sets the online attribute of the AIMBuddy object |
void |
setPreference(java.lang.String pref,
java.lang.String val)
Sets the preference attribute of the AIMBuddy object |
void |
setWarningAmount(int amount)
Sets the current warning amount |
void |
writeState(org.w3c.dom.Element emptyStateElement)
Write current into the Element |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AIMBuddy(java.lang.String name)
name
- public AIMBuddy(java.lang.String name, java.lang.String group)
name
- group
- buddy group in buddylistMethod Detail |
public void setName(java.lang.String name)
name
- The new name valuepublic void setOnline(boolean online)
online
- The new online valuepublic void setPreference(java.lang.String pref, java.lang.String val)
pref
- The new preference valueval
- The new preference valuepublic java.lang.String getName()
public boolean isOnline()
public java.lang.String getPreference(java.lang.String pref)
pref
-
public java.util.HashMap getPreferences()
public void addRole(java.lang.String role)
role
- The feature to be added to the Role attributepublic java.util.ArrayList getMessages()
public void addMessage(java.lang.String message)
message
- The feature to be added to the Message attributepublic void clearMessages()
public boolean hasMessages()
public boolean hasRole(java.lang.String role)
role
-
public boolean isBanned()
public void setBanned(boolean banned)
banned
- The banned to setpublic void readState(org.w3c.dom.Element fullStateElement)
XMLizable
readState
in interface XMLizable
fullStateElement
- DOM element to read fromXMLizable.readState(Element)
public void writeState(org.w3c.dom.Element emptyStateElement)
XMLizable
writeState
in interface XMLizable
emptyStateElement
- DOM element to write toXMLizable.writeState(Element)
public int getWarningAmount()
public void setWarningAmount(int amount)
amount
- public void setGroup(java.lang.String group)
group
- The name of the group this buddy belongs to.public java.lang.String getGroup()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |