| java.lang.Object pnuts.xml.DigestAction pnuts.xml.action.BeanPropertyAction
BeanPropertyAction | public class BeanPropertyAction extends DigestAction (Code) | | This action sets a Bean property of the object on the stack top,
using keyword and the content of the element.
- If a List object is on the stack top, it creates an instance of
the class passed to the constructor, and push it onto the stack.
- Regardless of the type of the stack top object, if
the element has non-empty content, this action assigns the content's
value to the Bean property whose name is the keyword. If the
Bean property is of a primitive type, the content's value is
automatically converted to the appropriate value.
|
BeanPropertyAction | protected BeanPropertyAction()(Code) | | |
BeanPropertyAction | public BeanPropertyAction(Class cls)(Code) | | |
setBeanProperty | protected void setBeanProperty(Object bean, String key, String text) throws Exception(Code) | | Sets the bean property "key".
A subclass may override this method to convert the string to an appropriate type.
Parameters: bean - the target object Parameters: key - the property name Parameters: text - the value |
|
|