wox.serial
Class SimpleReader

java.lang.Object
  extended by wox.serial.TypeMapping
      extended by wox.serial.SimpleReader
All Implemented Interfaces:
ObjectReader, Serial

public class SimpleReader
extends TypeMapping
implements ObjectReader

This is a simple XML to object de-serializer. The SimpleReader class implements ObjectReader. It reads an object from a JDOM element and puts it back to a live Java object. The XML representation of the object is a standard WOX representation. For more information about the XML representation please visit: http://woxserializer.sourceforge.net/

Version:
SimpleReader.java - 1.0
Author:
Simon M. Lucas
Carlos R. Jaimez Gonzalez

Field Summary
 
Fields inherited from class wox.serial.TypeMapping
mapArrayJavaToWOX, mapArrayWOXToJava, mapJavaToWOX, mapWOXToJava
 
Fields inherited from interface wox.serial.Serial
ARRAY, ARRAYLIST, DECLARED, ELEMENT_TYPE, ENTRY, FIELD, ID, IDREF, KEY, KEY_TYPE, LENGTH, MAP, NAME, OBJECT, primitiveArrays, primitiveArraysWOX, primitives, primitiveWrappers, TYPE, VALUE, VALUE_TYPE
 
Constructor Summary
SimpleReader()
          Default constructor.
 
Method Summary
 java.lang.Object read(org.jdom.Element xob)
          This is the only public method of SimpleReader.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleReader

public SimpleReader()
Default constructor. Initializes the map for object references.

Method Detail

read

public java.lang.Object read(org.jdom.Element xob)
This is the only public method of SimpleReader. This method reads a JDOM element (which represents the object), and returns a live java object. The JDOM element is the object in a standard XML representation defined by WOX. This is the low level entry point of the WOX de-serializer.

Specified by:
read in interface ObjectReader
Parameters:
xob - The JDOM element that represents the object.
Returns:
A live java object.