|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectlocal.tomas.common.xml.XMLSerializer
public class XMLSerializer
This pure static class is used to create XML descriptions for instances of standard and user defined classes.
| Method Summary | |
|---|---|
static Class |
findType(String name)
Find class with the given name. |
static XMLTypeHandler |
getTypeHandler(Class type)
Get a type handler for a class. |
static XMLTypeHandler |
getTypeHandler(String name)
Find a type handler for the class with the given name. |
static void |
marshall(String name,
Class type,
Object src,
XMLTokenGenerator gen)
Create XML description for an object. |
static void |
marshall(String name,
int index,
Class type,
Object src,
XMLTokenGenerator gen)
Create XML description for an object. |
static void |
marshall(String name,
int index,
Object src,
XMLTokenGenerator gen)
Create XML description for an object. |
static void |
marshall(String name,
Object src,
XMLTokenGenerator gen)
Create XML description for an object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static XMLTypeHandler getTypeHandler(Class type)
type - - the class
public static XMLTypeHandler getTypeHandler(String name)
name - - class name
public static Class findType(String name)
name - - name of the class or type
public static void marshall(String name,
int index,
Class type,
Object src,
XMLTokenGenerator gen)
throws XMLException
name - - XML tag name usedindex - - index attribute used on XML tag, must be negative to omit indextype - - type of objectsrc - - the objectgen - - used to generate XML tokens
XMLException
public static void marshall(String name,
int index,
Object src,
XMLTokenGenerator gen)
throws XMLException
name - - XML tag name usedindex - - index attribute used on XML tag, must be negative to omit indexsrc - - the objectgen - - used to generate XML tokens
XMLException
public static void marshall(String name,
Class type,
Object src,
XMLTokenGenerator gen)
throws XMLException
name - - XML tag name usedtype - - type of objectsrc - - the objectgen - - used to generate XML tokens
XMLException
public static void marshall(String name,
Object src,
XMLTokenGenerator gen)
throws XMLException
name - - XML tag name usedsrc - - the objectgen - - used to generate XML tokens
XMLException
|
common-util | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||