<set>

Purpose/Function

Invoke the set[OgreScript:Property] method on the putative bean object. Bean object should be dereferenced from the environment.

Attributes

NAME

TYPE

DEFAULT VALUE

DESCRIPTION

bean

java.lang.Object

required

bean on which to invoke method

property

java.lang.String

required

name of property for which value should be set

See also note below.

Elements

See note below.

ReturnValues

None.

NOTE:

This class subclasses <assign>, so the latter's attributes (excepting name and global) may be applied; the default value for configured here is true. Child elements also function as they do for <assign>.

Examples

<set bean="${bean1}" property="addSomeValue" object="${someValue}"/>

<set bean="${bean2}" property="addSomeValue">
    <deserialized>${someXML}</deserialized>
</set>

<!-- etc. -->
  • No labels