|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.iscreen.ognl.OgnlObjectMapping
public class OgnlObjectMapping
This class provides mapping data from one object to another via two sets of OGNL expressions: one to get the value from one object; and one to set that value on another object.
Field Summary | |
---|---|
protected java.lang.Object |
getterAST
|
protected java.lang.String |
getterExp
|
protected java.lang.Object |
setterAST
|
protected java.lang.String |
setterExp
|
Constructor Summary | |
---|---|
OgnlObjectMapping(java.lang.String getter,
java.lang.String setter)
Default constructor taking the 'getter' OGNL expression and the 'setter' OGNL expression. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Equality is based upon the 'setter' OGNL expression (not the 'getter' expression). |
java.lang.String |
getGetter()
Retrieves the 'getter' OGNL expression that this mapper is configured to use. |
java.lang.String |
getSetter()
Retrieves the 'setter' OGNL expression that this mapper is configured to use. |
int |
hashCode()
The hash code is based upon the 'setter' OGNL 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
protected java.lang.Object setterAST
Constructor Detail |
---|
public OgnlObjectMapping(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.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The mapper to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |