|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectwox.serial.TypeMapping
wox.serial.SimpleWriter
public class SimpleWriter
This is a simple object to XML serializer. The SimpleWriter
class
implements ObjectWriter
. It writes (converts) an object
to a JDOM element. The JDOM element represents the object in standard XML
defined by WOX. The resulting XML (JDOM element) can be used to be
stored in an XML file, or other storage media. For more information about
the XML representation please visit: http://woxserializer.sourceforge.net/
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 | |
---|---|
SimpleWriter()
Default constructor. |
Method Summary | |
---|---|
org.jdom.Element |
write(java.lang.Object ob)
This is the only public method of SimpleWriter . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleWriter()
Method Detail |
---|
public org.jdom.Element write(java.lang.Object ob)
SimpleWriter
.
This method is the etry point to write an object to XML. It actually
returns a JDOM Element representing the object passed as parameter.
The JDOM element is a standard XML representation defined by WOX. It
can be used to be stored in an XML file, or any other storage media.
write
in interface ObjectWriter
ob
- The java object to be serialized.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |