de.knup.jedi.jayshare
Class FileList

java.lang.Object
  |
  +--de.knup.jedi.jayshare.FileList
Direct Known Subclasses:
OwnedFileList

public class FileList
extends java.lang.Object
implements XMLOutput

Represents a list of file items.

Version:
0.1 $Revision: 1.8 $
Author:
B. Pietsch

Field Summary
private  MDate date
          Modification time of the list.
private  java.util.Vector files
          Vector of file items.
private  java.lang.String version
          List version.
static java.lang.String VERSION
          File list version (currently 0.0).
 
Constructor Summary
FileList()
          Create a new file list.
FileList(FileList list)
          Create a copy of a file list.
 
Method Summary
 void addFile(FileItem fi)
          Add file item to the vector.
protected  java.lang.String getContent()
           
 MDate getDate()
           
 java.util.Vector getFiles()
           
 java.lang.String getVersion()
           
 void setDate(MDate date)
          Set modification time.
 void setFiles(java.util.Vector v)
          Set file item vector.
 void setVersion(java.lang.String ver)
          Set version.
 java.lang.String toXML()
          Create an XML representation of the object.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

VERSION

public static final java.lang.String VERSION
File list version (currently 0.0).

files

private java.util.Vector files
Vector of file items.

date

private MDate date
Modification time of the list.

version

private java.lang.String version
List version.
Constructor Detail

FileList

public FileList()
Create a new file list.

FileList

public FileList(FileList list)
Create a copy of a file list.
Method Detail

setDate

public void setDate(MDate date)
Set modification time.

getDate

public MDate getDate()
Returns:
modification time.

setVersion

public void setVersion(java.lang.String ver)
Set version.

getVersion

public java.lang.String getVersion()
Returns:
list version.

setFiles

public void setFiles(java.util.Vector v)
Set file item vector.

addFile

public void addFile(FileItem fi)
Add file item to the vector.

getFiles

public java.util.Vector getFiles()
Returns:
file item vector.

getContent

protected java.lang.String getContent()
Returns:
an xml string representing the file list and its items.

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.