| java.lang.Object pnuts.xml.DigestAction pnuts.xml.action.BeanAction
BeanAction | public class BeanAction extends DigestAction (Code) | | This action creates an instance of the class, which was passed to the
constructor, and adds it to the object on the stack top, in a way that
depends on the type of the object. Then it pushes the object on the stack.
- If a List object is on the stack top, the created object is added to the List.
- If a Map object is on the stack top, a map entry of {keyword => the
created object} is added to the Map.
- Otherwise, this action assigns the created object to the Bean property whose name
is the keyword. The type of the Bean property must match the type of the created object.
If the element has one or more attributes, this action assigns the
attribute's value to the Bean property, whose name is the name of the
attribute. If the Bean property is of a primitive type, the attribute's
value is automatically converted to the appropriate value.
|
BeanAction | protected BeanAction()(Code) | | |
setAttributes | protected void setAttributes(Object bean, Map attributeMap) throws Exception(Code) | | Defines bean properties from the [qName->value] mapping in the specified Attibutes.
Parameters: bean - the target object Parameters: attributeMap - a [qName->value] mapping. |
setBeanProperty | protected void setBeanProperty(Object bean, String name, String text) throws Exception(Code) | | Defines a bean property
Parameters: bean - the target object Parameters: name - the property name Parameters: text - a string |
|
|