org.exolab.castor.tools
public class MappingTool extends Object
Version: $Revision: 1.4 $ $Date: 2005/03/01 00:54:25 $
Nested Class Summary | |
---|---|
class | MappingTool.InternalLoader |
Constructor Summary | |
---|---|
MappingTool() |
Method Summary | |
---|---|
void | addClass(String name)
Adds the Class, specified by the given name, to the mapping file
|
void | addClass(String name, boolean deep)
Adds the Class, specified by the given name, to the mapping file
|
void | addClass(Class cls)
Adds the given Class to the mapping file
|
void | addClass(Class cls, boolean deep)
Adds the given Class to the mapping file. |
static void | main(String[] args)
Command line method
|
void | setForceIntrospection(boolean force)
Enables or disables the forcing of introspection when
a ClassDescriptor already exists. |
void | write(Writer writer)
Serializes the mapping to the given writer
|
Parameters: name the name of the Class to add
Parameters: name the name of the Class to add deep, a flag to indicate that recursive processing should take place and all classes used by the given class should also be added to the mapping file. This flag is true by default.
Parameters: cls the Class to add
Parameters: cls the Class to add deep, a flag to indicate that recursive processing should take place and all classes used by the given class should also be added to the mapping file. This flag is true by default.
Parameters: force when true will cause the MappingTool to always use introspection regardless of whether or not a ClassDescriptor exists for a given Class.
Parameters: writer, the Writer to serialize the mapping to