org.jdesktop.wonderland.common.wfs
Class CellList

java.lang.Object
  extended by org.jdesktop.wonderland.common.wfs.CellList

public class CellList
extends java.lang.Object

The CellList class simply represent an array of child names for a given cell. It is used to serialize this list across a network in XML form or out to disk. It also contains the date the cell was last modified, so that the cell loading and reloading scheme in Wonderland can check whether a cell has been updated or not.

Author:
Jordan Slott

Nested Class Summary
static class CellList.Cell
          The Child inner class simply stores the name of the cell child and the date it was last modified.
 
Constructor Summary
CellList()
          Default constructor
CellList(java.lang.String relativePath, CellList.Cell[] children)
          Constructor, takes the relative path and names of the children
 
Method Summary
static CellList decode(java.lang.String relativePath, java.io.InputStream is)
          Takes the input stream of the XML and instantiates an instance of the CellList class
 void encode(java.io.Writer w)
          Writes the ModuleInfo class to an output stream.
 CellList.Cell[] getChildren()
          Returns the array of cell child names
 java.lang.String getRelativePath()
          Returns the relative path of these children.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellList

public CellList()
Default constructor


CellList

public CellList(java.lang.String relativePath,
                CellList.Cell[] children)
Constructor, takes the relative path and names of the children

Method Detail

getChildren

public CellList.Cell[] getChildren()
Returns the array of cell child names

Returns:
An array of cell child names

getRelativePath

public java.lang.String getRelativePath()
Returns the relative path of these children.

Returns:
The relative path

decode

public static CellList decode(java.lang.String relativePath,
                              java.io.InputStream is)
                       throws javax.xml.bind.JAXBException
Takes the input stream of the XML and instantiates an instance of the CellList class

Parameters:
is - The input stream of the XML representation
Throws:
javax.xml.bind.JAXBException

encode

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

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


Open Wonderland - http://openwonderland.org