Prototype of a function or source
Description
List of variable declarations, which can be passed when calling a function or adding a source.
Attributes
- no-comment - Don't allow editing of comment for the variables in this prototype in Admin Tool.
- proto-order (May only be: proto-order)
Children
- Choose any number of these in any order.
- description: (Zero or more) - A (possibly long) description associated with a prototype or a declare in the admin interface.
- label: (Zero or more) - A short description associated with a variable declaration in the admin interface
- declare: (Zero or more) - Variable declaration
- returns: (Zero or more)
Attributes:
- type (Any of: int, boolean, number, password, string, nodeset, enum, flag, positive-int, separated-set, string-area, url, xml-escaped, xpath, date, email, image, nmtoken, separated-enum-set, user-set, re, replacement-pair-list)
- throws: (Zero or more)
- proto-section: (Zero or more) - Prototype section
- available: (Zero or more) - After this version, Watson Explorer begins supporting this node.
- deprecated: (Zero or more) - After this version, Watson Explorer is no longer formally supporting this node, but it will still work.
- unavailable: (Zero or more) - After this version, Watson Explorer no longer supports this node.
Examples
Input Example:
<function name="f">
<prototype>
<declare name="v" type="string"/>
</prototype>
<_xml_/>
<value-of-var name="v"/>
</function>
<call-function name="f">
<with name="v" value="ok"/>
</call-function>
Output Example:
<function name="f">
<prototype>
<declare name="v" type="string"/>
</prototype>
<_xml_/>
<value-of-var name="v"/>
</function>
<_xml_/>ok