org.jdesktop.wonderland.common.modules
Class ModuleArt

java.lang.Object
  extended by org.jdesktop.wonderland.common.modules.ModuleArt
All Implemented Interfaces:
java.io.Serializable

public class ModuleArt
extends java.lang.Object
implements java.io.Serializable

The ModuleArt class represents a piece of artwork within a module.

This class is annotation with JAXB XML elements and supports encoding and decoding to/from XML via the encode() and decode() methods, respectively.

Author:
Jordan Slott
See Also:
Serialized Form

Constructor Summary
ModuleArt()
          Default constructor
ModuleArt(java.lang.String path)
          Constructor which takes relative art resource path name
 
Method Summary
static ModuleArt decode(java.io.Reader r)
          Takes the input reader of the XML file and instantiates an instance of the ModuleInfo class
 void encode(java.io.Writer w)
          Writes the ModuleInfo class to an output writer.
 java.lang.String getPath()
           
 void setPath(java.lang.String path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModuleArt

public ModuleArt()
Default constructor


ModuleArt

public ModuleArt(java.lang.String path)
Constructor which takes relative art resource path name

Method Detail

getPath

public java.lang.String getPath()

setPath

public void setPath(java.lang.String path)

decode

public static ModuleArt decode(java.io.Reader r)
                        throws javax.xml.bind.JAXBException
Takes the input reader of the XML file and instantiates an instance of the ModuleInfo class

Parameters:
r - The input reader of the version XML file
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 writer.

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


Open Wonderland - http://openwonderland.org