|
|
|
The Model-Driven System Builder
|
|
JeeWiz Architect's Guide
|
|
|
|
Contents >
13. 'Java' Reference
|
|
|
13.5 InterfaceMethod Object
| Used on |
|
| Subclassed By |
|
| Description | A method on an interface
|
| Implements | CallableMember |
Contained Lists |
| 1 |
| Name | parameter |
| Type | parameter |
| Description | Defines the parameters for the method. Parameter names must be unique.
|
| Indexed property | name |
|
| |
| 2 |
| Name | exception |
| Type | String |
| Description | Defines the exception(s) thrown by the method.
In the JeeWiz editor, multiple thrown exceptions may be specified in the 'exception' property using a comma separated list.
In XML, you can use one or more nested elements as an alternative to the 'exception=' property.
Any duplicate exceptions are ignored.
|
| Unique | false |
|
|
Inherited properties |
| jwpattern |
(base property)
| |
|
13.5.1 Property 'name'
|
| Description | Specifies the name of the method.
|
| Type | String |
| Required | true |
13.5.2 Property 'returnType'
|
| Description | Specifies the method's return type. The default is 'void'.
For value-returning methods, the return type may be any primitive type or interface/class name,
whether alone or qualified by a package name.
|
| Type | String |
| Default | void |
13.5.3 Property 'annotation'
|
| Description | An optional list, comma-separated, of Java annotations.
|
| Type | String |
13.5.4 Property 'description'
|
| Description | Optional description.
Use this to
- document the meaning of a particular item
- specify functionality at the design stage for implementation later.
|
| Type | String |
| Support Element Inputs | true |
13.5.5 Property 'template'
|
| Description | The template property is a hint to the code-generation scripts.
If the object has a number of variants in a particular rendering, this value can be used to select the variant.
There is currently no special support in the generator for template scripts and this feature is not used in any JeeWiz-provided scripts. However, if you are writing local variants of the scripts, you can use it to give minor variations of functionality.
If you are used to 'stereotypes' in UML modelling, this interacts with JeeWiz as follows:
- some well-known stereotypes (entity or EJBEntityBean / boundary) translate directly to JeeWiz objects, producing / in the XML specification
- in addition, any steretype from UML is added to the JeeWiz object as the template property.
|
| Type | String |
13.5.6 Property 'text'
|
Copyright (c) 2001-2008 New Technology/enterprise Ltd.
| |