JeeWiz Home  
The Model-Driven System Builder

JeeWiz Architect's Guide
 
Contents  >   13.  'Java' Reference
 


13.5 InterfaceMethod Object

Used on
interface
Subclassed By
method
DescriptionA method on an interface
ImplementsCallableMember
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'
 13.5.2  Property 'returnType'
 13.5.3  Property 'annotation'
 13.5.4  Property 'description'
 13.5.5  Property 'template'
 13.5.6  Property 'text'

13.5.1  Property 'name'
Description Specifies the name of the method.
TypeString
Requiredtrue

13.5.2  Property 'returnType'
DescriptionSpecifies 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.
TypeString
Defaultvoid

13.5.3  Property 'annotation'
DescriptionAn optional list, comma-separated, of Java annotations.
TypeString

13.5.4  Property 'description'
DescriptionOptional description.

Use this to
  1. document the meaning of a particular item
  2. specify functionality at the design stage for implementation later.
TypeString
Support Element Inputstrue

13.5.5  Property 'template'
DescriptionThe 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.
TypeString

13.5.6  Property 'text'
TypeString
Hiddentrue
 


Copyright (c) 2001-2008 New Technology/enterprise Ltd.