|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.iscreen.mvel.MvelObjectMapping
public class MvelObjectMapping
This class handles the mapping of data from one object to another. It uses the MVEL API to perform the actual mapping.
| Field Summary | |
|---|---|
protected java.lang.Object |
getterAST
|
protected java.lang.String |
getterExp
|
protected java.lang.String |
setterExp
|
| Constructor Summary | |
|---|---|
MvelObjectMapping(java.lang.String getter,
java.lang.String setter)
Default constructor taking the 'getter' MVEL expression and the 'setter' MVEL expression. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
Equality is based upon the 'setter' MVEL expression (not the 'getter' expression). |
java.lang.String |
getGetter()
Retrieves the 'getter' MVEL expression that this mapper is configured to use. |
java.lang.String |
getSetter()
Retrieves the 'setter' MVEL expression that this mapper is configured to use. |
int |
hashCode()
The hash code is based upon the 'setter' MVEL expression. |
void |
map(java.lang.Object fromBean,
java.lang.Object toBean)
Maps a property from the fromBean to the toBean using the configured OGNL getter/setter expressions. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String getterExp
protected java.lang.String setterExp
protected java.lang.Object getterAST
| Constructor Detail |
|---|
public MvelObjectMapping(java.lang.String getter,
java.lang.String setter)
getter - The 'getter' OGNL expression.setter - The 'setter' OGNL expression.| Method Detail |
|---|
public void map(java.lang.Object fromBean,
java.lang.Object toBean)
fromBean - The object to copy the property from (the source).toBean - The object to copy the property to (the destination).public java.lang.String getGetter()
public java.lang.String getSetter()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - The mapper to compare to
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||