wt.clients.vc
Class VersionList

java.lang.Object
  extended bywt.clients.vc.VersionList

public class VersionList
extends Object

VersionList is a model class for constructing a list of the versions of a master object.

See Also:
wt.vc.version.Mastered, wt.vc.version.Versioned

Field Summary
private  Mastered master
           
private  Hashtable versions
           
 
Constructor Summary
VersionList()
          Create an empty version list
VersionList(Mastered master)
          Create a version list for the specified master object.
 
Method Summary
 Mastered getMaster()
          Get the master object for the list.
 Versioned getVersion(Object key)
          Get the versioned object for the specified key.
protected  void populate()
          Populate the list for the contained master object.
 void setMaster(Mastered master)
          Set the master object for the list.
 String[] toMultiList()
          Return a string array representation of the list formatted for use in a wt.clients.util.WTMultiList.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

master

private Mastered master

versions

private Hashtable versions
Constructor Detail

VersionList

public VersionList()
Create an empty version list


VersionList

public VersionList(Mastered master)
            throws WTException
Create a version list for the specified master object.

Parameters:
master - the master object for the list
Throws:
WTException
Method Detail

setMaster

public void setMaster(Mastered master)
               throws WTException
Set the master object for the list.

This will populate the list of versions for the specified master.

Parameters:
master - the master object for the list
Throws:
WTException

getMaster

public Mastered getMaster()
Get the master object for the list.

Returns:
the master object for the list

toMultiList

public String[] toMultiList()
Return a string array representation of the list formatted for use in a wt.clients.util.WTMultiList.

Each string changes the following values

all separated by semi-colons.

Returns:
a string array representation of the list

getVersion

public Versioned getVersion(Object key)
Get the versioned object for the specified key.

Parameters:
key - the identifying key for the object.
Returns:
the versioned object for the specified key

populate

protected void populate()
                 throws WTException
Populate the list for the contained master object.

Throws:
WTException