|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.tools.MappingTool
A tool which uses the introspector to automatically create mappings for a given set of classes.
Constructor Summary | |
MappingTool()
|
Method Summary | |
void |
addClass(java.lang.Class cls)
Adds the given Class to the mapping file |
void |
addClass(java.lang.Class cls,
boolean deep)
Adds the given Class to the mapping file. |
void |
addClass(java.lang.String name)
Adds the Class, specified by the given name, to the mapping file |
void |
addClass(java.lang.String name,
boolean deep)
Adds the Class, specified by the given name, to the mapping file |
static void |
main(java.lang.String[] args)
Command line method |
void |
setForceIntrospection(boolean force)
Enables or disables the forcing of introspection when a ClassDescriptor already exists. |
void |
write(java.io.Writer writer)
Serializes the mapping to the given writer |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MappingTool()
Method Detail |
public static void main(java.lang.String[] args)
public void addClass(java.lang.String name) throws MappingException
name
- the name of the Class to add
MappingException
public void addClass(java.lang.String name, boolean deep) throws MappingException
name
- the name of the Class to add
MappingException
public void addClass(java.lang.Class cls) throws MappingException
cls
- the Class to add
MappingException
public void addClass(java.lang.Class cls, boolean deep) throws MappingException
cls
- the Class to add
MappingException
public void setForceIntrospection(boolean force)
force
- when true will cause the MappingTool to
always use introspection regardless of whether or not
a ClassDescriptor exists for a given Class.public void write(java.io.Writer writer) throws MappingException
MappingException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |