net.sf.omap.compiler
Class MappingDefinitionCompiler

java.lang.Object
  extended bynet.sf.omap.compiler.MappingDefinitionCompiler

public class MappingDefinitionCompiler
extends java.lang.Object


Constructor Summary
MappingDefinitionCompiler(MapperCreator creator)
           
 
Method Summary
 ObjectMapper compile(java.lang.Class type, java.lang.String definition, java.lang.Class toType)
          Returns a ObjectMapper object, defined by the given definition
 java.util.List compile(java.lang.String definition)
          Returns a list of mappers (ObjectMapper) defined by the given definition
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MappingDefinitionCompiler

public MappingDefinitionCompiler(MapperCreator creator)
Method Detail

compile

public java.util.List compile(java.lang.String definition)
Returns a list of mappers (ObjectMapper) defined by the given definition

Parameters:
definition - a String giving the mapping definition
Returns:
a List of ObjectMapper

compile

public ObjectMapper compile(java.lang.Class type,
                            java.lang.String definition,
                            java.lang.Class toType)
Returns a ObjectMapper object, defined by the given definition

Parameters:
type - the Class that is mapped
definition - the mapping definition
toType - the Class to map to
Returns:
a ObjectMapper