org.jdesktop.wonderland.common.modules
Class ModuleArtList

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

public class ModuleArtList
extends java.lang.Object

The ModuleArtList class represents a collection of ModuleArt 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
ModuleArtList()
          Default constructor
ModuleArtList(ModuleArt[] moduleArt)
          Constructor, takes the names of the modules
 
Method Summary
static ModuleArtList 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.
 ModuleArt[] getModuleArt()
          Returns the array of module names.
 void setModuleArt(ModuleArt[] moduleArt)
          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

ModuleArtList

public ModuleArtList()
Default constructor


ModuleArtList

public ModuleArtList(ModuleArt[] moduleArt)
Constructor, takes the names of the modules

Method Detail

getModuleArt

public ModuleArt[] getModuleArt()
Returns the array of module names.

Returns:
An array of module names

setModuleArt

public void setModuleArt(ModuleArt[] moduleArt)
Sets the list of module info objects

Parameters:
moduleInfo - An array of module info objects

decode

public static ModuleArtList 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