org.jdesktop.wonderland.common.wfs
Class WorldRoot

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

public class WorldRoot
extends java.lang.Object

Represents a wfs world 'root', the base directory of a wfs, whether it is a world definition or a snapshot (backup) of the world. Using this, the web services knows which wfs to write to or read from.

Author:
Jordan Slott

Constructor Summary
WorldRoot()
          Default constructor
WorldRoot(java.lang.String rootPath)
          Constructor, takes the root path
 
Method Summary
static WorldRoot decode(java.io.Reader r)
          Takes a reader for the XML stream and returns an instance of this class
 void encode(java.io.Writer w)
          Writes the XML representation of this class to a writer.
 java.lang.String getRootPath()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WorldRoot

public WorldRoot()
Default constructor


WorldRoot

public WorldRoot(java.lang.String rootPath)
Constructor, takes the root path

Method Detail

getRootPath

public java.lang.String getRootPath()

decode

public static WorldRoot decode(java.io.Reader r)
                        throws javax.xml.bind.JAXBException
Takes a reader for the XML stream and returns an instance of this class

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

encode

public void encode(java.io.Writer w)
            throws javax.xml.bind.JAXBException
Writes the XML representation of this class to a writer.

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Open Wonderland - http://openwonderland.org