note description: "nested_message message. GENERATED DO NOT MODIFY" author: "Origo Team " date: "$Date$" revision: "$Revision$" class A_EXAMPLE_NESTED_MESSAGE_MESSAGE inherit A_PARSABLE_MESSAGE A_EXAMPLE_CONSTANTS undefine is_equal, out end create make, make_from_tokenizer feature {NONE} -- Initialization make (a_open: like open; a_closed: like closed) -- Create do open := a_open closed := a_closed ensure open_set: open = a_open closed_set: closed = a_closed end feature -- Message handling handle (a_handler: A_EXAMPLE_NESTED_MESSAGE_MESSAGE_HANDLER) -- do a_handler.handle_nested_message (Current) end feature -- Access namespace: STRING -- Namespace of the message type. once Result := example_namespace end type: STRING -- Type of the message. once Result := example_nested_message_type end open: A_INTEGER_MESSAGE closed: A_INTEGER_MESSAGE feature {NONE} -- Implementation serialization_list: attached STRING -- Lists the fields to serialize, and under which name do create Result.make_empty Result.append ("%"" + open_argument + "%":") Result.append (open.serialize) Result.append (",") Result.append ("%"" + closed_argument + "%":") Result.append (closed.serialize) end parse_tag (a_tag: STRING; a_tokenizer: A_JSON_TOKENIZER) do if a_tag.is_equal (open_argument) then create open.make_from_tokenizer (a_tokenizer) elseif a_tag.is_equal (closed_argument) then create closed.make_from_tokenizer (a_tokenizer) end end open_argument: STRING = "open" closed_argument: STRING = "closed" end