org.jdesktop.wonderland.common.modules
Class ModuleList

java.lang.Object
  extended by org.jdesktop.wonderland.common.modules.ModuleList

public class ModuleList
extends java.lang.Object

The ModuleList class represents a collection of ModuleInfo classes serialized to XML. This is useful to send across a collection of module info's or store a list of disk. It is used, for example, for the list of modules to remove or uninstall.

Author:
Jordan Slott

Constructor Summary
ModuleList()
          Default constructor
ModuleList(ModuleInfo[] moduleInfos)
          Constructor, takes the names of the modules
 
Method Summary
static ModuleList decode(java.io.Reader r)
          Takes the input stream of the XML and instantiates an instance of the ModuleInfoList class
 void encode(java.io.Writer w)
          Writes the ModuleInfoList class to an output writer.
 ModuleInfo[] getModuleInfos()
          Returns the array of module names.
 void setModuleInfos(ModuleInfo[] moduleInfos)
          Sets the list of module info objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleList

public ModuleList()
Default constructor


ModuleList

public ModuleList(ModuleInfo[] moduleInfos)
Constructor, takes the names of the modules

Method Detail

getModuleInfos

public ModuleInfo[] getModuleInfos()
Returns the array of module names.

Returns:
An array of module names

setModuleInfos

public void setModuleInfos(ModuleInfo[] moduleInfos)
Sets the list of module info objects

Parameters:
moduleInfo - An array of module info objects

decode

public static ModuleList decode(java.io.Reader r)
                         throws javax.xml.bind.JAXBException
Takes the input stream of the XML and instantiates an instance of the ModuleInfoList class

Parameters:
r - The input reader of the XML representation
Throws:
javax.xml.bind.JAXBException

encode

public void encode(java.io.Writer w)
            throws javax.xml.bind.JAXBException
Writes the ModuleInfoList class to an output writer.

Parameters:
w - The output writer to write to
Throws:
javax.xml.bind.JAXBException


Open Wonderland - http://openwonderland.org