|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.kilim.model.mapping.JavaRuntimeMapper
This mapper
Field Summary | |
(package private) java.io.FileWriter |
fW
|
(package private) java.io.PrintWriter |
pW
|
Constructor Summary | |
JavaRuntimeMapper()
|
Method Summary | |
void |
enterContext(MappingContext aContext)
Method enterContext. |
void |
executeConstructor(java.lang.Class aClass,
java.lang.Object[] paramObjects,
java.lang.String[] typeNames,
MappingContext aContext)
Method executeConstructor. |
void |
executeMethod(java.lang.Object aSupport,
boolean isStatic,
java.lang.String aMethodName,
java.lang.Object[] paramObjects,
java.lang.String[] typeNames,
MappingContext aContext)
Method executeMethod. |
void |
executeNullElement(MappingContext aContext)
Method executeNullElement. |
void |
executeSetter(java.lang.Object aSupport,
boolean isStatic,
java.lang.String fieldName,
java.lang.Object toBeSet,
MappingContext aContext)
Method executeSetter. |
java.lang.Object |
getClassValue(java.lang.String aClassName,
MappingContext aContext)
Method getClassSourceValue. |
java.lang.Object |
getConstructorValue(java.lang.Class aClass,
java.lang.Object[] paramObjects,
java.lang.String[] typeNames,
MappingContext aContext)
Method getConstructorValue. |
java.lang.Object |
getEventSourceValue(MappingContext aContext)
Method getEventSourceValue..... |
java.lang.Object |
getExternalValue(java.lang.Object value,
MappingContext aContext)
Method getExternalValue. |
java.lang.Object |
getGetterValue(java.lang.Object aSupport,
boolean isStatic,
java.lang.String fieldName,
MappingContext aContext)
Method getGetterValue. |
java.lang.Object |
getMethodValue(java.lang.Object aSupport,
boolean isStatic,
java.lang.String aMethodName,
java.lang.Object[] paramObjects,
java.lang.String[] typeNames,
MappingContext aContext)
Method getMethodValue. |
java.lang.Object |
getNullElementValue(MappingContext aContext)
Method getNullElementValue. |
java.lang.Object |
getPropertyValue(java.lang.Object aValue,
MappingContext aContext)
Method getPropertyValue. |
void |
leaveContext(MappingContext aContext)
Method leaveContext. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.io.PrintWriter pW
java.io.FileWriter fW
Constructor Detail |
public JavaRuntimeMapper()
Method Detail |
public void enterContext(MappingContext aContext) throws KilimException
Mapper
enterContext
in interface Mapper
aContext
- : the mapping context
KilimException
- : generated by a specific mapper to indicate a (specific problem).This method is empty.
public void leaveContext(MappingContext aContext) throws KilimException
Mapper
leaveContext
in interface Mapper
aContext
- : the mapping context.
KilimException
- : generated by a specific mapper to indicate a (specific problem).This method is empty.
public java.lang.Object getGetterValue(java.lang.Object aSupport, boolean isStatic, java.lang.String fieldName, MappingContext aContext) throws KilimException
Mapper
getGetterValue
in interface Mapper
aSupport
- : the support of the getterisStatic
- : true if the getter is staticfieldName
- : the name of the field to be accessedaContext
- : the mapping context
KilimException
- : generated if aSupport is null, if fieldName is null or if no getter corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).This method returns
the value of the field "filedName" of the class (if isStatic is true) or object (if isStatic is false) referenced by aSupport. The KilimException
is here a wrapper to all exceptions generated by the java reflexive API when trying to perform the task.
public void executeSetter(java.lang.Object aSupport, boolean isStatic, java.lang.String fieldName, java.lang.Object toBeSet, MappingContext aContext) throws KilimException
Mapper
executeSetter
in interface Mapper
aSupport
- : the support of the getterisStatic
- : true if the getter is staticfieldName
- : the name of the field to be accessedtoBeSet
- : the value to be set.aContext
- : the mapping context
KilimException
- : generated if aSupport is null, if fieldName is null or if no getter corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).This method sets
a value in the field "filedName" of the class (if isStatic is true) or object (if isStatic is false) referenced by aSupport. The KilimException
is here a wrapper to all exceptions generated by the java reflexive API when trying to perform the task.
public java.lang.Object getMethodValue(java.lang.Object aSupport, boolean isStatic, java.lang.String aMethodName, java.lang.Object[] paramObjects, java.lang.String[] typeNames, MappingContext aContext) throws KilimException
Mapper
getMethodValue
in interface Mapper
aSupport
- : the support of the methodisStatic
- : true if the method is staticaMethodName
- : the name of the methodparamObjects
- : the ordered values of the method parameterstypeNames
- : the ordered types of the method parameters.aContext
- : the mapping context.
KilimException
- :generated if aSupport is null, if methodName is null or if no method corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).This method returns
the value returned by the execution of the method "methodName" of the class (if isStatic is true) or object (if isStatic is false) referenced by aSupport.
The KilimException is here a wrapper to all exceptions generated by the java reflexive API when trying to perform the task.
public void executeMethod(java.lang.Object aSupport, boolean isStatic, java.lang.String aMethodName, java.lang.Object[] paramObjects, java.lang.String[] typeNames, MappingContext aContext) throws KilimException
Mapper
executeMethod
in interface Mapper
aSupport
- : the support of the methodisStatic
- : true if the method is staticaMethodName
- : the name of the methodparamObjects
- : the ordered values of the method parameterstypeNames
- : the ordered types of the method parameters.aContext
- : the mapping context.
KilimException
- :generated if aSupport is null, if methodName is null or if no method corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).org.objectweb.kilim.model.mapping.KilimMapper#executeMethod(Object, boolean, String, Object[], String[], MappingContext)
public java.lang.Object getConstructorValue(java.lang.Class aClass, java.lang.Object[] paramObjects, java.lang.String[] typeNames, MappingContext aContext) throws KilimException
Mapper
getConstructorValue
in interface Mapper
aClass
- : the class for the constructorparamObjects
- : the ordered values of the method parameterstypeNames
- : the ordered types of the method parameters.aContext
- : the mapping context.
KilimException
- :generated if aSupport is null, if methodName is null or if no method corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).org.objectweb.kilim.model.mapping.KilimMapper#getConstructorValue(Class, Object[], String[], MappingContext)
public void executeConstructor(java.lang.Class aClass, java.lang.Object[] paramObjects, java.lang.String[] typeNames, MappingContext aContext) throws KilimException
Mapper
executeConstructor
in interface Mapper
aClass
- : the class for the constructorparamObjects
- : the ordered values of the method parameterstypeNames
- : the ordered types of the method parameters.aContext
- : the mapping context.
KilimException
- :generated if aSupport is null, if methodName is null or if no method corresponding to the signature exists.
Also generated by a specific mapper to indicate a (specific problem).org.objectweb.kilim.model.mapping.KilimMapper#executeConstructor(Class, Object[], String[], MappingContext)
public java.lang.Object getExternalValue(java.lang.Object value, MappingContext aContext)
Mapper
getExternalValue
in interface Mapper
value
- : the external reference identifier.aContext
- : the mapping context.
org.objectweb.kilim.model.mapping.KilimMapper#getExternalValue(Object, MappingContext)
public java.lang.Object getPropertyValue(java.lang.Object aValue, MappingContext aContext)
Mapper
getPropertyValue
in interface Mapper
aValue
- : the property identifier.aContext
- : the mapping context.
org.objectweb.kilim.model.mapping.KilimMapper#getPropertyValue(Object, MappingContext)
public java.lang.Object getClassValue(java.lang.String aClassName, MappingContext aContext) throws KilimException
Mapper
getClassValue
in interface Mapper
aClassName
- : the name of the classaContext
- : the mapping context
KilimException
- : generated if aClassName is null or if no Class object can be found.
Also generated by a specific mapper to indicate a (specific problem).org.objectweb.kilim.model.mapping.KilimMapper#getClassValue(String, MappingContext)
public java.lang.Object getEventSourceValue(MappingContext aContext) throws KilimException
Mapper
getEventSourceValue
in interface Mapper
aContext
- : the mapping context.
KilimException
- : generated by a specific mapper to indicate a (specific problem).org.objectweb.kilim.model.mapping.KilimMapper#getEventSourceValue(MappingContext)
public java.lang.Object getNullElementValue(MappingContext aContext)
Mapper
getNullElementValue
in interface Mapper
aContext
- : the mapping context.
org.objectweb.kilim.model.mapping.KilimMapper#getNullElementValue(MappingContext)
public void executeNullElement(MappingContext aContext)
Mapper
executeNullElement
in interface Mapper
aContext
- : the mapping contextorg.objectweb.kilim.model.mapping.KilimMapper#executeNullElement(MappingContext)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |