The <method> Element

Purpose

The <method> element invokes a method. The method name is specified by the mandatory name attribute. Arguments may be given by nested <arg> elements.

A string argument value will be automatically converted to the formal method argument type using de.odysseus.calyxo.base.util.ParseUtils. This will work for all primitive types, their wrapper classes and java.util.Date, provided the string argument is given in standard notation. For other argument types, the argument value must be an instance of that type.

<method> elements may appear inside <use> and <object> elements. A single <method> element may appear inside a <member> element.

Attributes

NameTypeDescription
name NMTOKEN Required - The method name.

Body

The body of the <method> element is defined by the following sequence:

(arg*)

Related elements

<use>, <object>, <member>, <arg>