note description: "Extended02 message. GENERATED DO NOT MODIFY" author: "Origo Team " date: "$Date$" revision: "$Revision$" class TEST_TEST2_NAMESPACE_EXTENDED02_MESSAGE inherit TEST_TEST_EXTENDED01_MESSAGE rename make as make_test_test_extended01_message redefine handle, namespace, parse_tag, serialization_list, type end TEST_TEST2_NAMESPACE_CONSTANTS undefine is_equal, out end create make, make_from_tokenizer create {TEST_MESSAGE_FACTORY} make_from_ems_message feature {NONE} -- Initialization make (a_value0: like value0; a_value1: like value1; a_value2: like value2) -- Create do make_test_test_extended01_message (a_value0, a_value1) value2 := a_value2 ensure value0_set: value0 = a_value0 value1_set: value1 = a_value1 value2_set: value2 = a_value2 end feature -- Message handling handle (a_handler: TEST_TEST2_NAMESPACE_EXTENDED02_MESSAGE_HANDLER) -- do a_handler.handle_extended02 (Current) end feature -- Access namespace: STRING -- Namespace of the message type. once Result := test2_namespace_namespace end type: STRING -- Type of the message. once Result := test2_namespace_extended02_type end value2: A_BOOLEAN_VALUE feature {NONE} -- Implementation serialization_list: attached STRING -- Lists the fields to serialize, and under which name do Result := precursor if Result.is_empty then create Result.make_empty else Result.append (",") end check Result /= Void end if (value2 /= Void) then Result.append ("%"" + value2_argument + "%":") Result.append (value2.serialize) end end parse_tag (a_tag: STRING; a_tokenizer: A_JSON_TOKENIZER) do precursor(a_tag, a_tokenizer) if a_tag.is_equal (value2_argument) then create value2.make_from_tokenizer (a_tokenizer) end end value2_argument: STRING = "value2" end