| java.lang.Object org.iscreen.mvel.MvelPropertyMapping
MvelPropertyMapping | public class MvelPropertyMapping (Code) | | 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.
author: Shellman, Dan |
Method Summary | |
public boolean | equals(Object obj) Implemented so that instances can be stored in sets/maps. | public int | hashCode() | public void | map(Object obj, Object theValue) Sets a property on the object with the given value (any value set
using the setValue() method is ignored in this case). | public void | map(Object obj) Sets a property on the object with the previously set value (from
calling the setValue() method). | public void | setValue(Object theValue) Sets the value the property will be set to. |
MvelPropertyMapping | public MvelPropertyMapping(String theProperty)(Code) | | Construct with given property. No value is defined (value of the property).
Parameters: theProperty - The property that will be set. |
MvelPropertyMapping | public MvelPropertyMapping(String theProperty, Object theValue)(Code) | | Construct with both a property and the property's value.
Parameters: theProperty - The property that will be set. Parameters: theValue - The value the property will be set to. |
equals | public boolean equals(Object obj)(Code) | | Implemented so that instances can be stored in sets/maps. Two instances
are considered equal if they have the same property.
Parameters: obj - The object to compare to Returns true if both have the same property. |
hashCode | public int hashCode()(Code) | | |
map | public void map(Object obj, Object theValue)(Code) | | Sets a property on the object with the given value (any value set
using the setValue() method is ignored in this case).
Parameters: obj - The object that will have its property set. Parameters: theValue - The value to set the property to. |
map | public void map(Object obj)(Code) | | Sets a property on the object with the previously set value (from
calling the setValue() method).
Parameters: obj - The object that will have its property set. |
setValue | public void setValue(Object theValue)(Code) | | Sets the value the property will be set to.
Parameters: theValue - The value the property will be set to. |
|
|