You use the General page of the New
Pattern Parameter window, to add a parameter to a pattern.
- Name
- The parameter name identifies the parameter for the pattern applier. It
is used to create the pattern's Java™ class and other files that support
the pattern. You can change the default name to provide a name that is more
descriptive of the parameter's purpose in the pattern.
- Class Name
- The class name identifies the Java class for the parameter. A default
name is created based on the parameter name with the following character exceptions:
spaces and special characters are deleted and the initial character is capitalized.
Accept the default name or create a new one.
- Short Description
- Type a brief explanation of the purpose of the parameter. You can include
a prompt to guide the user to specify appropriate arguments for this parameter.
This description is visible in the Short Description page of
the Pattern Explorer view in addition to the online help
files if they are generated for the pattern. It also appears as a tooltip
on the diagram view when the user hovers over the parameter in the pattern
instance.
- Type
- Specify a UML 2.0 type for the parameter.
- Multiplicity
- Select the value or range that describes the allowable number of argument
values that can be specified for the template parameter during pattern application.