UML Modeling Guide

Stereotype «DefaultOperation»

Stereotype «DefaultOperation»

Stereotype «DefaultOperation» can be used to mark operations of a «JEAFService» to have a default implementation.


Stereotype «DefaultOperation»  
Applicable Elements Operation  
Tagged Values    
Name Type Description
operationType DefaultOperationType Type of default implementation that should be used.

The following types of default operations are supported:
* THROW_NOT_YET_IMPLMENTED_EXCEPTION: a default implementation that throws an NotYetImplementedException will be generated
* DO_NOTHING: An empty operation will be implemented. If method has a return value then true, 0 or null will be returned depending on the return type.
* UML_MODEL_DEFAULT_VALUE: Default value as defined in the UML model will be returned by default implementation.
* CUSTOM_GENERATOR_TEMPLATE: Code should be generated using a custom generator template (jeafgenerator::api::ServiceInterfaceHook::ProvideDefaultImplementation).

Default value is UML_MODEL_DEFAULT_VALUE.


Generated by JEAF Generator