de.knup.jedi.jayshare
Class UserList
java.lang.Object
|
+--de.knup.jedi.jayshare.UserList
- public class UserList
- extends java.lang.Object
- implements XMLOutput
UserList represents the global list of file lists.
It contains file lists of all users (therefore <userlist>).
- Version:
- 0.1 $Revision: 1.6 $
- Author:
- B. Pietsch
Field Summary |
private java.util.Vector |
lists
Vector of file lists. |
private static java.lang.String |
nameSpace
The XML namespace. |
Constructor Summary |
UserList()
Create an empty <userlist>. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
lists
private java.util.Vector lists
- Vector of file lists.
nameSpace
private static final java.lang.String nameSpace
- The XML namespace.
UserList
public UserList()
- Create an empty <userlist>.
replaceList
public void replaceList(OwnedFileList fl)
- Replace a user's file list.
- Parameters:
fl
- is the updated list.
addList
public void addList(OwnedFileList fl)
- Add a file list.
getList
public OwnedFileList getList(java.lang.String hashedID)
- Parameters:
hashedID
- is the owner's hashed Jabber ID.- Returns:
- the owner's file list.
getLists
public java.util.Vector getLists()
toXML
public java.lang.String toXML()
- Description copied from interface: XMLOutput
- Create an XML representation of the object.
- Specified by:
- toXML in interface XMLOutput
- Tags copied from interface: XMLOutput
- Returns:
- an XML conforming String object.