org.objectweb.jorm.mapper.mem.generator
Class MemMappingMOP

java.lang.Object
  extended byTypeHelper
      extended byorg.objectweb.jorm.generator.lib.CommonHelper
          extended byorg.objectweb.jorm.mapper.mem.generator.MemMappingMOP
All Implemented Interfaces:
Loggable, MOP

public class MemMappingMOP
extends CommonHelper
implements MOP

This class implements the BindingMOP interface in order to specialize the generation of the PClassMapping for the memory mapping.

Author:
P. Dechamboux
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jorm.generator.lib.CommonHelper
debug, logger, loggerFactory, PN_GET_TYPES
 
Constructor Summary
MemMappingMOP()
           
 
Method Summary
 java.lang.String[] getTemplateLibraries()
           
 void initContext(Context ctx, Class clazz, java.lang.String projectName, java.lang.String mapperName)
          Initializes a velocity context
 
Methods inherited from class org.objectweb.jorm.generator.lib.CommonHelper
buildPemList, canBeNullValue, comparePE, containsCharArrayField, containsCompositeName, containsFieldWhichCanBeNull, containsGenClassRef, containsReference, containsSerializedField, debug, getCNPackageName, getCoderName, getCompositeNameDefEntries, getCompositeReferences, getCTDeclaration, getFQNOfCompositeName, getInheritedClasses, getLogger, getLoggerFactory, getPaGetMethod, getPaSetMethod, getPemPos, getPNameDecodeFunction, getPNameEncodeFunction, getPNameGetterGetFunction, getPNGTypes, getPrimitiveElement, getPrimitiveElement, getProjectionField, getPType, getPTypeBigDecimal, getPTypeBigInteger, getPTypeBoolean, getPTypeByte, getPTypeByteArray, getPTypeChar, getPTypeCharArray, getPTypeDate, getPTypeDouble, getPTypeFloat, getPTypeInt, getPTypeLong, getPTypeOboolean, getPTypeObyte, getPTypeOchar, getPTypeOdouble, getPTypeOfloat, getPTypeOint, getPTypeOlong, getPTypeOshort, getPTypeReference, getPTypeSerialized, getPTypeShort, getPTypeSpaceFieldName, getPTypeString, getRefNameDef, getTupleDecoding, getTupleDecoding, getTupleGetter, isCharArrayType, isClass, isClassRef, isCompositeName, isFieldName, isGenClassRef, isHiddenField, isNull, isPrimitiveElement, isReference, isSerializedField, isSerializedType, isValidString, log, not, setLogger, setLoggerFactory, upperFL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemMappingMOP

public MemMappingMOP()
Method Detail

initContext

public void initContext(Context ctx,
                        Class clazz,
                        java.lang.String projectName,
                        java.lang.String mapperName)
                 throws PException
Description copied from interface: MOP
Initializes a velocity context

Specified by:
initContext in interface MOP
Parameters:
ctx - is the context to initialize
Throws:
PException

getTemplateLibraries

public java.lang.String[] getTemplateLibraries()
Specified by:
getTemplateLibraries in interface MOP
Returns:
the list of .vm which contains velocity macros