Class

A class is an abstract description of a set of objects of the application domain. A class must have a valid name. It can contain attributes and operations.

By default in Netsilon, a class is persistent because the state of its instances must be preserved during page invocations. However transient classes can be defined whose lifetime does not extend beyond the execution period of the invocated page. Such a class should have the stereotype transient. A transient class can not specialize or generalize a persistent class. An association-class can not be transient and can not link transient classes together.

Properties
Name Name of the class. It is mandatory.
Visibility Public visibility is the only option.
Keywords none: normal class
abstract: prevents the instanciation of objects of this class. This class should be subclassed.
final: normal class (this keyword is ignored)
Stereotype If this classifier is a class, it must not be enumeration or interface.
By default, a class is persistent. A transient class should have the stereotype transient.
Specializes A list of classes that this class specializes. This class is a subclass of those classes. Because of the limitations of the target languages, multiple inheritance is not allowed. However, a class may specialize a superclass AND an interface because interfaces have special meanings in Netsilon.
 
TOC ] Previous ] Next ]