«IMPORT messageDsl» «EXTENSION ch::ethz::origo::aranea::validation::MessageDslExtensions» «REM»template of the message handler class«ENDREM» «DEFINE handlerTemplate FOR Message-» «LET properties.restrictions AS restrictions-» «FILE (namespace().name).toLowerCase() + "/" + fullName().camelCaseToUnderscore().toLowerCase()+"_message_handler.e"-» note description: "[ «name» message handler. Inherit from this class if you want to handle «fullName().toUpperCase()» messages. GENERATED DO NOT MODIFY! ]" author: "Origo Team " date: "$Date: $" revision: "$Revision: $" deferred class «fullName().toUpperCase()»_MESSAGE_HANDLER inherit «IF this.extends != null -» «this.extends.fullName().toUpperCase()»_MESSAGE_HANDLER «ELSE -» A_MESSAGE_HANDLER «ENDIF» feature -- Message handler handle_«name.camelCaseToUnderscore().toLowerCase()» (a_message: «fullName().toUpperCase()»_MESSAGE) -- This is the actual message handler that you have to specify -- It is called by the actual message, so assignment attempts are not necessary deferred end «name.camelCaseToUnderscore().toLowerCase()»_message_handler_register (a_message: A_MESSAGE) -- This is the message handler that you need to register. It will call do a_message.handle (Current) end end «ENDFILE-» «ENDLET-» «ENDDEFINE»