Home » Castor-1.3-src » org.exolab.castor » tools » [javadoc | source]
org.exolab.castor.tools
public class: MappingTool [javadoc | source]
java.lang.Object
   org.exolab.castor.tools.MappingTool
A tool which uses the introspector to automatically create mappings for a given set of classes.
Constructor:
 public MappingTool() 
Method from org.exolab.castor.tools.MappingTool Summary:
addClass,   addClass,   addClass,   addClass,   main,   setForceIntrospection,   setInternalContext,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.exolab.castor.tools.MappingTool Detail:
 public  void addClass(String name) throws MappingException 
    Adds the Class, specified by the given name, to the mapping file.
 public  void addClass(Class cls) throws MappingException 
    Adds the given Class to the mapping file.
 public  void addClass(String name,
    boolean deep) throws MappingException 
    Adds the Class, specified by the given name, to the mapping file.
 public  void addClass(Class cls,
    boolean deep) throws MappingException 
    Adds the given Class to the mapping file. If the deep flag is true, all mappings for Classes used by the given Class will also be added to the mapping file.
 public static  void main(String[] args) 
    Command line method.
 public  void setForceIntrospection(boolean force) 
    Enables or disables the forcing of introspection when a ClassDescriptor already exists. This is false by default.
 public  void setInternalContext(InternalContext internalContext) 
    To set the XMLContext to be used.
 public  void write(Writer writer) throws MappingException 
    Serializes the mapping to the given writer.