<input-symbol> element

Appears in: <script>

Defines an input symbol for the script. Input symbols can be thought of as parameters to the script. As the script executes, it uses the input symbols to create new output symbols, redefine input symbols (not a recommended practice) and define the body and initialization.

This element allows the script to make input symbols required and to restrict their type. Invalid input symbols (missing when required, or not of the correct type) will result in runtime exceptions.

Figure C.10. <input-symbol> Attributes

NameTypeRequired ?Default ValueDescription
keystringyes The input symbol to be checked.
classstringno If specified, this is the complete, qualified class name for the symbol. The provided symbol must be assignable to this class (be a subclass, or implement the specified class if the specified class is actually an interface).
requiredyes | nononoIf yes, then a non-null value must be specified for the symbol.