org.objectweb.jorm.generator.lib
Class AccessorGenerator
java.lang.Object
TypeHelper
org.objectweb.jorm.generator.lib.CommonHelper
org.objectweb.jorm.generator.lib.CommonJVMHelper
org.objectweb.jorm.generator.lib.CommonGenerator
org.objectweb.jorm.generator.lib.AccessorGenerator
- All Implemented Interfaces:
- Loggable
- public class AccessorGenerator
- extends CommonGenerator
This class is a generator of XXXAccessor objects. It is generic either the
mapper type. This generator use the velocity tools. The used template is
Accessor.vm . Associated to this template this generator builds a velocity
context which contains the following information:
Key | Value |
"class" | The reference to the Class meta object |
"tools" |
The reference to the CommonHelper |
"header" |
The file name of the common template which contains the header of
the generate files. |
- See Also:
- Serialized Form
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, 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, upperFL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AccessorGenerator
public AccessorGenerator()
generate
public void generate(Class clazz,
TargetHolder holder,
JormCompilerParameter cp)
throws PException
- This method generates a XAccessor file corresponding to the pod
parameter in the directory parameter.
- Parameters:
holder
- The target holder which allows to create files.cp
- This parameter permits to reach the compilation parameters.
- Throws:
PException
getAccessorItfName
public java.lang.String getAccessorItfName(java.lang.Class clazz)
getAccessorItfName
public java.lang.String getAccessorItfName(Class clazz)
getAccessorItfName
public java.lang.String getAccessorItfName(java.lang.String className)