|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.iscreen.mvel.MvelPropertyMapping
public class MvelPropertyMapping
Instances of this class are used to set MVEL properties on objects with a particular value. The "property" is actually an MVEL expression. The value can be set and used later, or it can be passed in to a map() method. The object instance that contains the property (and will have its "property" set) is passed in dynamically as part of the map() method. This class is used to set constraints, failure objects and services.
Field Summary | |
---|---|
protected java.lang.String |
property
|
protected java.lang.Object |
value
|
Constructor Summary | |
---|---|
MvelPropertyMapping(java.lang.String theProperty)
Construct with given property. |
|
MvelPropertyMapping(java.lang.String theProperty,
java.lang.Object theValue)
Construct with both a property and the property's value. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Implemented so that instances can be stored in sets/maps. |
int |
hashCode()
|
void |
map(java.lang.Object obj)
Sets a property on the object with the previously set value (from calling the setValue() method). |
void |
map(java.lang.Object obj,
java.lang.Object theValue)
Sets a property on the object with the given value (any value set using the setValue() method is ignored in this case). |
void |
setValue(java.lang.Object theValue)
Sets the value the property will be set to. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String property
protected java.lang.Object value
Constructor Detail |
---|
public MvelPropertyMapping(java.lang.String theProperty)
theProperty
- The property that will be set.public MvelPropertyMapping(java.lang.String theProperty, java.lang.Object theValue)
theProperty
- The property that will be set.theValue
- The value the property will be set to.Method Detail |
---|
public void setValue(java.lang.Object theValue)
theValue
- The value the property will be set to.public void map(java.lang.Object obj, java.lang.Object theValue)
obj
- The object that will have its property set.theValue
- The value to set the property to.public void map(java.lang.Object obj)
obj
- The object that will have its property set.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The object to compare to
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |