lexx.utils
Class XML2Object

java.lang.Object
  |
  +--lexx.utils.XML2Object

public final class XML2Object
extends java.lang.Object

Static Factory class which converts serilizable objects/components to XML code and back.

This is used in debugging, to allow serilizable components to be displayed in the logger (Apache Log4J)

Copyright (c) 2002-2003

Since:
20/03/2003
Version:
1.0
Author:
Mohammed Imran

Constructor Summary
XML2Object()
           
 
Method Summary
static java.lang.Object getObject(java.lang.String xmlCode)
           
static java.lang.String getXMLCode(java.awt.Component obj)
           
static java.lang.String getXMLCode(java.awt.Image obj)
           
static java.lang.String getXMLCode(javax.swing.ImageIcon obj)
           
static java.lang.String getXMLCode(java.lang.Object obj)
           
static java.lang.String toString(java.util.List list)
           
static java.lang.String toString(java.lang.Object[] obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XML2Object

public XML2Object()
Method Detail

getObject

public static java.lang.Object getObject(java.lang.String xmlCode)

getXMLCode

public static java.lang.String getXMLCode(java.awt.Component obj)

getXMLCode

public static java.lang.String getXMLCode(java.lang.Object obj)

toString

public static java.lang.String toString(java.util.List list)

toString

public static java.lang.String toString(java.lang.Object[] obj)

getXMLCode

public static java.lang.String getXMLCode(java.awt.Image obj)

getXMLCode

public static java.lang.String getXMLCode(javax.swing.ImageIcon obj)