@abaplint/transpiler-cli 2.3.110 → 2.3.112
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/bundle.js +74715 -1517
- package/output/#ui2#cl_json.clas.locals.mjs +207 -0
- package/output/#ui2#cl_json.clas.locals.mjs.map +10 -0
- package/output/#ui2#cl_json.clas.mjs +160 -0
- package/output/#ui2#cl_json.clas.mjs.map +10 -0
- package/output/_init.mjs +8964 -0
- package/output/_top.mjs +2 -0
- package/output/_unit_open.mjs +25 -0
- package/output/abap_boolean.dtel.mjs +6 -0
- package/output/abap_callstack.ttyp.mjs +4 -0
- package/output/abap_callstack_line.tabl.mjs +5 -0
- package/output/abap_encod.dtel.mjs +6 -0
- package/output/balmnr.dtel.mjs +6 -0
- package/output/balognr.dtel.mjs +6 -0
- package/output/bapi_fld.dtel.mjs +6 -0
- package/output/bapi_line.dtel.mjs +6 -0
- package/output/bapi_msg.dtel.mjs +6 -0
- package/output/bapi_mtype.dtel.mjs +6 -0
- package/output/bapi_param.dtel.mjs +6 -0
- package/output/bapi_rcode.dtel.mjs +6 -0
- package/output/bapilogsys.dtel.mjs +6 -0
- package/output/bapioption.dtel.mjs +6 -0
- package/output/bapiret2.tabl.mjs +5 -0
- package/output/bapireturn.tabl.mjs +5 -0
- package/output/bapisign.dtel.mjs +6 -0
- package/output/boolean.dtel.mjs +6 -0
- package/output/char1.dtel.mjs +6 -0
- package/output/char10.dtel.mjs +6 -0
- package/output/char15.dtel.mjs +6 -0
- package/output/char25.dtel.mjs +6 -0
- package/output/char32.dtel.mjs +6 -0
- package/output/char4.dtel.mjs +6 -0
- package/output/cl_abap_char_utilities.clas.mjs +72 -0
- package/output/cl_abap_char_utilities.clas.mjs.map +10 -0
- package/output/cl_abap_classdescr.clas.mjs +31 -0
- package/output/cl_abap_classdescr.clas.mjs.map +10 -0
- package/output/cl_abap_codepage.clas.mjs +54 -0
- package/output/cl_abap_codepage.clas.mjs.map +10 -0
- package/output/cl_abap_complexdescr.clas.mjs +16 -0
- package/output/cl_abap_complexdescr.clas.mjs.map +10 -0
- package/output/cl_abap_conv_codepage.clas.locals.mjs +42 -0
- package/output/cl_abap_conv_codepage.clas.locals.mjs.map +10 -0
- package/output/cl_abap_conv_codepage.clas.mjs +31 -0
- package/output/cl_abap_conv_codepage.clas.mjs.map +10 -0
- package/output/cl_abap_conv_in_ce.clas.mjs +118 -0
- package/output/cl_abap_conv_in_ce.clas.mjs.map +10 -0
- package/output/cl_abap_conv_out_ce.clas.mjs +82 -0
- package/output/cl_abap_conv_out_ce.clas.mjs.map +10 -0
- package/output/cl_abap_datadescr.clas.mjs +35 -0
- package/output/cl_abap_datadescr.clas.mjs.map +10 -0
- package/output/cl_abap_elemdescr.clas.mjs +148 -0
- package/output/cl_abap_elemdescr.clas.mjs.map +10 -0
- package/output/cl_abap_enumdescr.clas.mjs +19 -0
- package/output/cl_abap_enumdescr.clas.mjs.map +10 -0
- package/output/cl_abap_exceptional_values.clas.mjs +65 -0
- package/output/cl_abap_exceptional_values.clas.mjs.map +10 -0
- package/output/cl_abap_format.clas.mjs +26 -0
- package/output/cl_abap_format.clas.mjs.map +10 -0
- package/output/cl_abap_gzip.clas.mjs +87 -0
- package/output/cl_abap_gzip.clas.mjs.map +10 -0
- package/output/cl_abap_hmac.clas.mjs +64 -0
- package/output/cl_abap_hmac.clas.mjs.map +10 -0
- package/output/cl_abap_intfdescr.clas.mjs +16 -0
- package/output/cl_abap_intfdescr.clas.mjs.map +10 -0
- package/output/cl_abap_matcher.clas.mjs +76 -0
- package/output/cl_abap_matcher.clas.mjs.map +10 -0
- package/output/cl_abap_math.clas.mjs +41 -0
- package/output/cl_abap_math.clas.mjs.map +10 -0
- package/output/cl_abap_objectdescr.clas.mjs +76 -0
- package/output/cl_abap_objectdescr.clas.mjs.map +10 -0
- package/output/cl_abap_random.clas.mjs +52 -0
- package/output/cl_abap_random.clas.mjs.map +10 -0
- package/output/cl_abap_random_int.clas.mjs +35 -0
- package/output/cl_abap_random_int.clas.mjs.map +10 -0
- package/output/cl_abap_refdescr.clas.mjs +35 -0
- package/output/cl_abap_refdescr.clas.mjs.map +10 -0
- package/output/cl_abap_regex.clas.mjs +43 -0
- package/output/cl_abap_regex.clas.mjs.map +10 -0
- package/output/cl_abap_structdescr.clas.mjs +180 -0
- package/output/cl_abap_structdescr.clas.mjs.map +10 -0
- package/output/cl_abap_tabledescr.clas.mjs +152 -0
- package/output/cl_abap_tabledescr.clas.mjs.map +10 -0
- package/output/cl_abap_tstmp.clas.mjs +99 -0
- package/output/cl_abap_tstmp.clas.mjs.map +10 -0
- package/output/cl_abap_typedescr.clas.mjs +368 -0
- package/output/cl_abap_typedescr.clas.mjs.map +10 -0
- package/output/cl_abap_unit_assert.clas.locals.mjs +57 -0
- package/output/cl_abap_unit_assert.clas.locals.mjs.map +10 -0
- package/output/cl_abap_unit_assert.clas.mjs +323 -0
- package/output/cl_abap_unit_assert.clas.mjs.map +10 -0
- package/output/cl_abap_zip.clas.locals.mjs +115 -0
- package/output/cl_abap_zip.clas.locals.mjs.map +10 -0
- package/output/cl_abap_zip.clas.mjs +95 -0
- package/output/cl_abap_zip.clas.mjs.map +10 -0
- package/output/cl_apc_tcp_client_manager.clas.locals.mjs +86 -0
- package/output/cl_apc_tcp_client_manager.clas.locals.mjs.map +10 -0
- package/output/cl_apc_tcp_client_manager.clas.mjs +31 -0
- package/output/cl_apc_tcp_client_manager.clas.mjs.map +10 -0
- package/output/cl_apc_wsp_ext_stateless_base.clas.mjs +30 -0
- package/output/cl_apc_wsp_ext_stateless_base.clas.mjs.map +10 -0
- package/output/cl_bcs.clas.mjs +63 -0
- package/output/cl_bcs.clas.mjs.map +10 -0
- package/output/cl_bcs_convert.clas.mjs +34 -0
- package/output/cl_bcs_convert.clas.mjs.map +10 -0
- package/output/cl_cam_address_bcs.clas.mjs +28 -0
- package/output/cl_cam_address_bcs.clas.mjs.map +10 -0
- package/output/cl_demo_output.clas.mjs +40 -0
- package/output/cl_demo_output.clas.mjs.map +10 -0
- package/output/cl_document_bcs.clas.mjs +45 -0
- package/output/cl_document_bcs.clas.mjs.map +10 -0
- package/output/cl_gdt_conversion.clas.mjs +122 -0
- package/output/cl_gdt_conversion.clas.mjs.map +10 -0
- package/output/cl_gui_cfw.clas.mjs +32 -0
- package/output/cl_gui_cfw.clas.mjs.map +10 -0
- package/output/cl_gui_container.clas.mjs +22 -0
- package/output/cl_gui_container.clas.mjs.map +10 -0
- package/output/cl_gui_frontend_services.clas.mjs +273 -0
- package/output/cl_gui_frontend_services.clas.mjs.map +10 -0
- package/output/cl_http_client.clas.mjs +164 -0
- package/output/cl_http_client.clas.mjs.map +10 -0
- package/output/cl_http_entity.clas.mjs +493 -0
- package/output/cl_http_entity.clas.mjs.map +10 -0
- package/output/cl_http_server.clas.mjs +28 -0
- package/output/cl_http_server.clas.mjs.map +10 -0
- package/output/cl_http_utility.clas.mjs +178 -0
- package/output/cl_http_utility.clas.mjs.map +10 -0
- package/output/cl_i18n_languages.clas.mjs +318 -0
- package/output/cl_i18n_languages.clas.mjs.map +10 -0
- package/output/cl_ixml.clas.locals.mjs +1161 -0
- package/output/cl_ixml.clas.locals.mjs.map +10 -0
- package/output/cl_ixml.clas.mjs +62 -0
- package/output/cl_ixml.clas.mjs.map +10 -0
- package/output/cl_message_helper.clas.mjs +81 -0
- package/output/cl_message_helper.clas.mjs.map +10 -0
- package/output/cl_numberrange_runtime.clas.mjs +32 -0
- package/output/cl_numberrange_runtime.clas.mjs.map +10 -0
- package/output/cl_oo_factory.clas.mjs +38 -0
- package/output/cl_oo_factory.clas.mjs.map +10 -0
- package/output/cl_progress_indicator.clas.mjs +30 -0
- package/output/cl_progress_indicator.clas.mjs.map +10 -0
- package/output/cl_salv_aggregations.clas.mjs +14 -0
- package/output/cl_salv_aggregations.clas.mjs.map +10 -0
- package/output/cl_salv_column.clas.mjs +35 -0
- package/output/cl_salv_column.clas.mjs.map +10 -0
- package/output/cl_salv_columns_table.clas.mjs +42 -0
- package/output/cl_salv_columns_table.clas.mjs.map +10 -0
- package/output/cl_salv_events_table.clas.mjs +14 -0
- package/output/cl_salv_events_table.clas.mjs.map +10 -0
- package/output/cl_salv_functions_list.clas.mjs +19 -0
- package/output/cl_salv_functions_list.clas.mjs.map +10 -0
- package/output/cl_salv_table.clas.mjs +122 -0
- package/output/cl_salv_table.clas.mjs.map +10 -0
- package/output/cl_shm_area.clas.mjs +267 -0
- package/output/cl_shm_area.clas.mjs.map +10 -0
- package/output/cl_shm_service.clas.mjs +56 -0
- package/output/cl_shm_service.clas.mjs.map +10 -0
- package/output/cl_sxml_string_reader.clas.locals.mjs +323 -0
- package/output/cl_sxml_string_reader.clas.locals.mjs.map +10 -0
- package/output/cl_sxml_string_reader.clas.mjs +25 -0
- package/output/cl_sxml_string_reader.clas.mjs.map +10 -0
- package/output/cl_sxml_string_writer.clas.mjs +146 -0
- package/output/cl_sxml_string_writer.clas.mjs.map +10 -0
- package/output/cl_system_uuid.clas.mjs +35 -0
- package/output/cl_system_uuid.clas.mjs.map +10 -0
- package/output/cx_abap_message_digest.clas.mjs +16 -0
- package/output/cx_abap_message_digest.clas.mjs.map +10 -0
- package/output/cx_abap_random.clas.mjs +16 -0
- package/output/cx_abap_random.clas.mjs.map +10 -0
- package/output/cx_apc_error.clas.mjs +16 -0
- package/output/cx_apc_error.clas.mjs.map +10 -0
- package/output/cx_bcs.clas.mjs +16 -0
- package/output/cx_bcs.clas.mjs.map +10 -0
- package/output/cx_dynamic_check.clas.mjs +15 -0
- package/output/cx_dynamic_check.clas.mjs.map +10 -0
- package/output/cx_gdt_conversion.clas.mjs +16 -0
- package/output/cx_gdt_conversion.clas.mjs.map +10 -0
- package/output/cx_no_check.clas.mjs +17 -0
- package/output/cx_no_check.clas.mjs.map +10 -0
- package/output/cx_oo_clif_not_exists.clas.mjs +16 -0
- package/output/cx_oo_clif_not_exists.clas.mjs.map +10 -0
- package/output/cx_parameter_invalid.clas.mjs +16 -0
- package/output/cx_parameter_invalid.clas.mjs.map +10 -0
- package/output/cx_parameter_invalid_range.clas.mjs +16 -0
- package/output/cx_parameter_invalid_range.clas.mjs.map +10 -0
- package/output/cx_parameter_invalid_type.clas.mjs +16 -0
- package/output/cx_parameter_invalid_type.clas.mjs.map +10 -0
- package/output/cx_root.clas.mjs +44 -0
- package/output/cx_root.clas.mjs.map +10 -0
- package/output/cx_salv_access_error.clas.mjs +16 -0
- package/output/cx_salv_access_error.clas.mjs.map +10 -0
- package/output/cx_salv_data_error.clas.mjs +16 -0
- package/output/cx_salv_data_error.clas.mjs.map +10 -0
- package/output/cx_salv_error.clas.mjs +16 -0
- package/output/cx_salv_error.clas.mjs.map +10 -0
- package/output/cx_salv_msg.clas.mjs +16 -0
- package/output/cx_salv_msg.clas.mjs.map +10 -0
- package/output/cx_salv_not_found.clas.mjs +16 -0
- package/output/cx_salv_not_found.clas.mjs.map +10 -0
- package/output/cx_salv_static_check.clas.mjs +16 -0
- package/output/cx_salv_static_check.clas.mjs.map +10 -0
- package/output/cx_shm_already_detached.clas.mjs +16 -0
- package/output/cx_shm_already_detached.clas.mjs.map +10 -0
- package/output/cx_shm_attach_error.clas.mjs +16 -0
- package/output/cx_shm_attach_error.clas.mjs.map +10 -0
- package/output/cx_shm_build_failed.clas.mjs +16 -0
- package/output/cx_shm_build_failed.clas.mjs.map +10 -0
- package/output/cx_shm_change_lock_active.clas.mjs +16 -0
- package/output/cx_shm_change_lock_active.clas.mjs.map +10 -0
- package/output/cx_shm_completion_error.clas.mjs +16 -0
- package/output/cx_shm_completion_error.clas.mjs.map +10 -0
- package/output/cx_shm_detach_error.clas.mjs +16 -0
- package/output/cx_shm_detach_error.clas.mjs.map +10 -0
- package/output/cx_shm_error.clas.mjs +16 -0
- package/output/cx_shm_error.clas.mjs.map +10 -0
- package/output/cx_shm_event_execution_failed.clas.mjs +16 -0
- package/output/cx_shm_event_execution_failed.clas.mjs.map +10 -0
- package/output/cx_shm_exclusive_lock_active.clas.mjs +16 -0
- package/output/cx_shm_exclusive_lock_active.clas.mjs.map +10 -0
- package/output/cx_shm_general_error.clas.mjs +16 -0
- package/output/cx_shm_general_error.clas.mjs.map +10 -0
- package/output/cx_shm_inconsistent.clas.mjs +16 -0
- package/output/cx_shm_inconsistent.clas.mjs.map +10 -0
- package/output/cx_shm_initial_reference.clas.mjs +16 -0
- package/output/cx_shm_initial_reference.clas.mjs.map +10 -0
- package/output/cx_shm_no_active_version.clas.mjs +16 -0
- package/output/cx_shm_no_active_version.clas.mjs.map +10 -0
- package/output/cx_shm_parameter_error.clas.mjs +16 -0
- package/output/cx_shm_parameter_error.clas.mjs.map +10 -0
- package/output/cx_shm_pending_lock_removed.clas.mjs +16 -0
- package/output/cx_shm_pending_lock_removed.clas.mjs.map +10 -0
- package/output/cx_shm_read_lock_active.clas.mjs +16 -0
- package/output/cx_shm_read_lock_active.clas.mjs.map +10 -0
- package/output/cx_shm_secondary_commit.clas.mjs +16 -0
- package/output/cx_shm_secondary_commit.clas.mjs.map +10 -0
- package/output/cx_shm_version_limit_exceeded.clas.mjs +16 -0
- package/output/cx_shm_version_limit_exceeded.clas.mjs.map +10 -0
- package/output/cx_shm_wrong_handle.clas.mjs +16 -0
- package/output/cx_shm_wrong_handle.clas.mjs.map +10 -0
- package/output/cx_shma_dynamic.clas.mjs +16 -0
- package/output/cx_shma_dynamic.clas.mjs.map +10 -0
- package/output/cx_shma_inconsistent.clas.mjs +16 -0
- package/output/cx_shma_inconsistent.clas.mjs.map +10 -0
- package/output/cx_shma_not_configured.clas.mjs +16 -0
- package/output/cx_shma_not_configured.clas.mjs.map +10 -0
- package/output/cx_static_check.clas.mjs +27 -0
- package/output/cx_static_check.clas.mjs.map +10 -0
- package/output/cx_sxml_error.clas.mjs +16 -0
- package/output/cx_sxml_error.clas.mjs.map +10 -0
- package/output/cx_sxml_illegal_argument_error.clas.mjs +16 -0
- package/output/cx_sxml_illegal_argument_error.clas.mjs.map +10 -0
- package/output/cx_sxml_name_error.clas.mjs +16 -0
- package/output/cx_sxml_name_error.clas.mjs.map +10 -0
- package/output/cx_sxml_parse_error.clas.mjs +20 -0
- package/output/cx_sxml_parse_error.clas.mjs.map +10 -0
- package/output/cx_sxml_state_error.clas.mjs +16 -0
- package/output/cx_sxml_state_error.clas.mjs.map +10 -0
- package/output/cx_sy_arithmetic_error.clas.mjs +16 -0
- package/output/cx_sy_arithmetic_error.clas.mjs.map +10 -0
- package/output/cx_sy_buffer_overflow.clas.mjs +16 -0
- package/output/cx_sy_buffer_overflow.clas.mjs.map +10 -0
- package/output/cx_sy_codepage_converter_init.clas.mjs +16 -0
- package/output/cx_sy_codepage_converter_init.clas.mjs.map +10 -0
- package/output/cx_sy_compression_error.clas.mjs +16 -0
- package/output/cx_sy_compression_error.clas.mjs.map +10 -0
- package/output/cx_sy_conversion_codepage.clas.mjs +17 -0
- package/output/cx_sy_conversion_codepage.clas.mjs.map +10 -0
- package/output/cx_sy_conversion_data_loss.clas.mjs +16 -0
- package/output/cx_sy_conversion_data_loss.clas.mjs.map +10 -0
- package/output/cx_sy_conversion_error.clas.mjs +16 -0
- package/output/cx_sy_conversion_error.clas.mjs.map +10 -0
- package/output/cx_sy_conversion_no_number.clas.mjs +16 -0
- package/output/cx_sy_conversion_no_number.clas.mjs.map +10 -0
- package/output/cx_sy_conversion_overflow.clas.mjs +16 -0
- package/output/cx_sy_conversion_overflow.clas.mjs.map +10 -0
- package/output/cx_sy_create_data_error.clas.mjs +16 -0
- package/output/cx_sy_create_data_error.clas.mjs.map +10 -0
- package/output/cx_sy_create_object_error.clas.mjs +29 -0
- package/output/cx_sy_create_object_error.clas.mjs.map +10 -0
- package/output/cx_sy_data_access_error.clas.mjs +16 -0
- package/output/cx_sy_data_access_error.clas.mjs.map +10 -0
- package/output/cx_sy_duplicate_key.clas.mjs +16 -0
- package/output/cx_sy_duplicate_key.clas.mjs.map +10 -0
- package/output/cx_sy_dyn_call_error.clas.mjs +16 -0
- package/output/cx_sy_dyn_call_error.clas.mjs.map +10 -0
- package/output/cx_sy_dyn_call_illegal_class.clas.mjs +16 -0
- package/output/cx_sy_dyn_call_illegal_class.clas.mjs.map +10 -0
- package/output/cx_sy_dyn_call_illegal_func.clas.mjs +16 -0
- package/output/cx_sy_dyn_call_illegal_func.clas.mjs.map +10 -0
- package/output/cx_sy_dyn_call_illegal_method.clas.mjs +27 -0
- package/output/cx_sy_dyn_call_illegal_method.clas.mjs.map +10 -0
- package/output/cx_sy_dyn_call_param_not_found.clas.mjs +16 -0
- package/output/cx_sy_dyn_call_param_not_found.clas.mjs.map +10 -0
- package/output/cx_sy_dyn_call_parameter_error.clas.mjs +17 -0
- package/output/cx_sy_dyn_call_parameter_error.clas.mjs.map +10 -0
- package/output/cx_sy_dynamic_osql_error.clas.mjs +18 -0
- package/output/cx_sy_dynamic_osql_error.clas.mjs.map +10 -0
- package/output/cx_sy_dynamic_osql_semantics.clas.mjs +18 -0
- package/output/cx_sy_dynamic_osql_semantics.clas.mjs.map +10 -0
- package/output/cx_sy_itab_duplicate_key.clas.mjs +16 -0
- package/output/cx_sy_itab_duplicate_key.clas.mjs.map +10 -0
- package/output/cx_sy_itab_error.clas.mjs +16 -0
- package/output/cx_sy_itab_error.clas.mjs.map +10 -0
- package/output/cx_sy_itab_line_not_found.clas.mjs +16 -0
- package/output/cx_sy_itab_line_not_found.clas.mjs.map +10 -0
- package/output/cx_sy_message_illegal_text.clas.mjs +16 -0
- package/output/cx_sy_message_illegal_text.clas.mjs.map +10 -0
- package/output/cx_sy_move_cast_error.clas.mjs +16 -0
- package/output/cx_sy_move_cast_error.clas.mjs.map +10 -0
- package/output/cx_sy_open_sql_error.clas.mjs +18 -0
- package/output/cx_sy_open_sql_error.clas.mjs.map +10 -0
- package/output/cx_sy_range_out_of_bounds.clas.mjs +16 -0
- package/output/cx_sy_range_out_of_bounds.clas.mjs.map +10 -0
- package/output/cx_sy_ref_is_initial.clas.mjs +16 -0
- package/output/cx_sy_ref_is_initial.clas.mjs.map +10 -0
- package/output/cx_sy_sql_error.clas.mjs +20 -0
- package/output/cx_sy_sql_error.clas.mjs.map +10 -0
- package/output/cx_sy_strg_par_val.clas.mjs +16 -0
- package/output/cx_sy_strg_par_val.clas.mjs.map +10 -0
- package/output/cx_sy_struct_attributes.clas.mjs +16 -0
- package/output/cx_sy_struct_attributes.clas.mjs.map +10 -0
- package/output/cx_sy_struct_comp_name.clas.mjs +16 -0
- package/output/cx_sy_struct_comp_name.clas.mjs.map +10 -0
- package/output/cx_sy_struct_comp_type.clas.mjs +16 -0
- package/output/cx_sy_struct_comp_type.clas.mjs.map +10 -0
- package/output/cx_sy_struct_creation.clas.mjs +16 -0
- package/output/cx_sy_struct_creation.clas.mjs.map +10 -0
- package/output/cx_sy_type_creation.clas.mjs +16 -0
- package/output/cx_sy_type_creation.clas.mjs.map +10 -0
- package/output/cx_sy_zerodivide.clas.mjs +16 -0
- package/output/cx_sy_zerodivide.clas.mjs.map +10 -0
- package/output/cx_transformation_error.clas.mjs +16 -0
- package/output/cx_transformation_error.clas.mjs.map +10 -0
- package/output/cx_uuid_error.clas.mjs +16 -0
- package/output/cx_uuid_error.clas.mjs.map +10 -0
- package/output/cx_xslt_exception.clas.mjs +16 -0
- package/output/cx_xslt_exception.clas.mjs.map +10 -0
- package/output/cx_xslt_format_error.clas.mjs +16 -0
- package/output/cx_xslt_format_error.clas.mjs.map +10 -0
- package/output/cx_xslt_runtime_error.clas.mjs +16 -0
- package/output/cx_xslt_runtime_error.clas.mjs.map +10 -0
- package/output/cx_xslt_system_error.clas.mjs +16 -0
- package/output/cx_xslt_system_error.clas.mjs.map +10 -0
- package/output/dats.dtel.mjs +6 -0
- package/output/ddfields.ttyp.mjs +4 -0
- package/output/ddoption.dtel.mjs +6 -0
- package/output/ddsign.dtel.mjs +6 -0
- package/output/devclass.dtel.mjs +6 -0
- package/output/dfies.tabl.mjs +5 -0
- package/output/doku_obj.dtel.mjs +6 -0
- package/output/dynprofld.dtel.mjs +6 -0
- package/output/file_table.tabl.mjs +5 -0
- package/output/filetable.ttyp.mjs +4 -0
- package/output/flag.dtel.mjs +6 -0
- package/output/funcname.dtel.mjs +6 -0
- package/output/guid.dtel.mjs +6 -0
- package/output/if_abap_channel_types.intf.mjs +9 -0
- package/output/if_abap_channel_types.intf.mjs.map +8 -0
- package/output/if_abap_conv_in.intf.mjs +8 -0
- package/output/if_abap_conv_in.intf.mjs.map +8 -0
- package/output/if_abap_conv_out.intf.mjs +8 -0
- package/output/if_abap_conv_out.intf.mjs.map +8 -0
- package/output/if_abap_unit_constant.intf.mjs +15 -0
- package/output/if_abap_unit_constant.intf.mjs.map +8 -0
- package/output/if_apc_tcp_frame_types.intf.mjs +14 -0
- package/output/if_apc_tcp_frame_types.intf.mjs.map +8 -0
- package/output/if_apc_wsp_binding_manager.intf.mjs +8 -0
- package/output/if_apc_wsp_binding_manager.intf.mjs.map +8 -0
- package/output/if_apc_wsp_client.intf.mjs +8 -0
- package/output/if_apc_wsp_client.intf.mjs.map +8 -0
- package/output/if_apc_wsp_event_handler.intf.mjs +8 -0
- package/output/if_apc_wsp_event_handler.intf.mjs.map +8 -0
- package/output/if_apc_wsp_extension.intf.mjs +8 -0
- package/output/if_apc_wsp_extension.intf.mjs.map +8 -0
- package/output/if_apc_wsp_initial_request.intf.mjs +8 -0
- package/output/if_apc_wsp_initial_request.intf.mjs.map +8 -0
- package/output/if_apc_wsp_message.intf.mjs +8 -0
- package/output/if_apc_wsp_message.intf.mjs.map +8 -0
- package/output/if_apc_wsp_message_manager.intf.mjs +8 -0
- package/output/if_apc_wsp_message_manager.intf.mjs.map +8 -0
- package/output/if_apc_wsp_server_context.intf.mjs +8 -0
- package/output/if_apc_wsp_server_context.intf.mjs.map +8 -0
- package/output/if_aunit_constants.intf.mjs +27 -0
- package/output/if_aunit_constants.intf.mjs.map +8 -0
- package/output/if_document_bcs.intf.mjs +8 -0
- package/output/if_document_bcs.intf.mjs.map +8 -0
- package/output/if_http_client.intf.mjs +12 -0
- package/output/if_http_client.intf.mjs.map +8 -0
- package/output/if_http_entity.intf.mjs +14 -0
- package/output/if_http_entity.intf.mjs.map +8 -0
- package/output/if_http_extension.intf.mjs +12 -0
- package/output/if_http_extension.intf.mjs.map +8 -0
- package/output/if_http_request.intf.mjs +16 -0
- package/output/if_http_request.intf.mjs.map +8 -0
- package/output/if_http_response.intf.mjs +8 -0
- package/output/if_http_response.intf.mjs.map +8 -0
- package/output/if_http_server.intf.mjs +20 -0
- package/output/if_http_server.intf.mjs.map +8 -0
- package/output/if_http_utility.intf.mjs +8 -0
- package/output/if_http_utility.intf.mjs.map +8 -0
- package/output/if_ixml.intf.mjs +8 -0
- package/output/if_ixml.intf.mjs.map +8 -0
- package/output/if_ixml_attribute.intf.mjs +8 -0
- package/output/if_ixml_attribute.intf.mjs.map +8 -0
- package/output/if_ixml_document.intf.mjs +8 -0
- package/output/if_ixml_document.intf.mjs.map +8 -0
- package/output/if_ixml_element.intf.mjs +8 -0
- package/output/if_ixml_element.intf.mjs.map +8 -0
- package/output/if_ixml_encoding.intf.mjs +10 -0
- package/output/if_ixml_encoding.intf.mjs.map +8 -0
- package/output/if_ixml_istream.intf.mjs +8 -0
- package/output/if_ixml_istream.intf.mjs.map +8 -0
- package/output/if_ixml_named_node_map.intf.mjs +8 -0
- package/output/if_ixml_named_node_map.intf.mjs.map +8 -0
- package/output/if_ixml_node.intf.mjs +12 -0
- package/output/if_ixml_node.intf.mjs.map +8 -0
- package/output/if_ixml_node_iterator.intf.mjs +8 -0
- package/output/if_ixml_node_iterator.intf.mjs.map +8 -0
- package/output/if_ixml_node_list.intf.mjs +8 -0
- package/output/if_ixml_node_list.intf.mjs.map +8 -0
- package/output/if_ixml_ostream.intf.mjs +8 -0
- package/output/if_ixml_ostream.intf.mjs.map +8 -0
- package/output/if_ixml_parse_error.intf.mjs +8 -0
- package/output/if_ixml_parse_error.intf.mjs.map +8 -0
- package/output/if_ixml_parser.intf.mjs +10 -0
- package/output/if_ixml_parser.intf.mjs.map +8 -0
- package/output/if_ixml_renderer.intf.mjs +8 -0
- package/output/if_ixml_renderer.intf.mjs.map +8 -0
- package/output/if_ixml_stream_factory.intf.mjs +8 -0
- package/output/if_ixml_stream_factory.intf.mjs.map +8 -0
- package/output/if_ixml_unknown.intf.mjs +8 -0
- package/output/if_ixml_unknown.intf.mjs.map +8 -0
- package/output/if_message.intf.mjs +8 -0
- package/output/if_message.intf.mjs.map +8 -0
- package/output/if_oo_adt_classrun.intf.mjs +8 -0
- package/output/if_oo_adt_classrun.intf.mjs.map +8 -0
- package/output/if_oo_adt_classrun_out.intf.mjs +8 -0
- package/output/if_oo_adt_classrun_out.intf.mjs.map +8 -0
- package/output/if_oo_clif_source.intf.mjs +8 -0
- package/output/if_oo_clif_source.intf.mjs.map +8 -0
- package/output/if_recipient_bcs.intf.mjs +8 -0
- package/output/if_recipient_bcs.intf.mjs.map +8 -0
- package/output/if_salv_c_bool_sap.intf.mjs +12 -0
- package/output/if_salv_c_bool_sap.intf.mjs.map +8 -0
- package/output/if_salv_c_selection_mode.intf.mjs +18 -0
- package/output/if_salv_c_selection_mode.intf.mjs.map +8 -0
- package/output/if_sender_bcs.intf.mjs +8 -0
- package/output/if_sender_bcs.intf.mjs.map +8 -0
- package/output/if_serializable_object.intf.mjs +8 -0
- package/output/if_serializable_object.intf.mjs.map +8 -0
- package/output/if_shm_build_instance.intf.mjs +8 -0
- package/output/if_shm_build_instance.intf.mjs.map +8 -0
- package/output/if_shm_trace.intf.mjs +8 -0
- package/output/if_shm_trace.intf.mjs.map +8 -0
- package/output/if_sxml.intf.mjs +17 -0
- package/output/if_sxml.intf.mjs.map +8 -0
- package/output/if_sxml_attribute.intf.mjs +9 -0
- package/output/if_sxml_attribute.intf.mjs.map +8 -0
- package/output/if_sxml_close_element.intf.mjs +8 -0
- package/output/if_sxml_close_element.intf.mjs.map +8 -0
- package/output/if_sxml_node.intf.mjs +19 -0
- package/output/if_sxml_node.intf.mjs.map +8 -0
- package/output/if_sxml_open_element.intf.mjs +8 -0
- package/output/if_sxml_open_element.intf.mjs.map +8 -0
- package/output/if_sxml_reader.intf.mjs +8 -0
- package/output/if_sxml_reader.intf.mjs.map +8 -0
- package/output/if_sxml_value.intf.mjs +11 -0
- package/output/if_sxml_value.intf.mjs.map +8 -0
- package/output/if_sxml_value_node.intf.mjs +8 -0
- package/output/if_sxml_value_node.intf.mjs.map +8 -0
- package/output/if_sxml_writer.intf.mjs +26 -0
- package/output/if_sxml_writer.intf.mjs.map +8 -0
- package/output/if_sxmlp_factory.intf.mjs +8 -0
- package/output/if_sxmlp_factory.intf.mjs.map +8 -0
- package/output/if_sxmlp_list.intf.mjs +8 -0
- package/output/if_sxmlp_list.intf.mjs.map +8 -0
- package/output/if_sxmlp_part.intf.mjs +8 -0
- package/output/if_sxmlp_part.intf.mjs.map +8 -0
- package/output/if_sxmlp_simple.intf.mjs +8 -0
- package/output/if_sxmlp_simple.intf.mjs.map +8 -0
- package/output/if_system_uuid_rfc4122_static.intf.mjs +8 -0
- package/output/if_system_uuid_rfc4122_static.intf.mjs.map +8 -0
- package/output/if_system_uuid_static.intf.mjs +8 -0
- package/output/if_system_uuid_static.intf.mjs.map +8 -0
- package/output/if_t100_dyn_msg.intf.mjs +8 -0
- package/output/if_t100_dyn_msg.intf.mjs.map +8 -0
- package/output/if_t100_message.intf.mjs +15 -0
- package/output/if_t100_message.intf.mjs.map +8 -0
- package/output/ihttpnvp.tabl.mjs +5 -0
- package/output/index.mjs +35 -0
- package/output/init.mjs +8965 -0
- package/output/int1.dtel.mjs +6 -0
- package/output/int2.dtel.mjs +6 -0
- package/output/int4.dtel.mjs +6 -0
- package/output/kernel_authority_check.clas.mjs +20 -0
- package/output/kernel_authority_check.clas.mjs.map +10 -0
- package/output/kernel_call.clas.mjs +28 -0
- package/output/kernel_call.clas.mjs.map +10 -0
- package/output/kernel_call_transformation.clas.mjs +182 -0
- package/output/kernel_call_transformation.clas.mjs.map +10 -0
- package/output/kernel_create_data_handle.clas.mjs +121 -0
- package/output/kernel_create_data_handle.clas.mjs.map +10 -0
- package/output/kernel_cx_assert.clas.mjs +33 -0
- package/output/kernel_cx_assert.clas.mjs.map +10 -0
- package/output/kernel_fugr_test.clas.mjs +14 -0
- package/output/kernel_fugr_test.clas.mjs.map +10 -0
- package/output/kernel_ixml_json_to_data.clas.mjs +145 -0
- package/output/kernel_ixml_json_to_data.clas.mjs.map +10 -0
- package/output/kernel_ixml_xml_to_data.clas.mjs +96 -0
- package/output/kernel_ixml_xml_to_data.clas.mjs.map +10 -0
- package/output/kernel_json_to_ixml.clas.mjs +78 -0
- package/output/kernel_json_to_ixml.clas.mjs.map +10 -0
- package/output/kernel_lock.clas.mjs +31 -0
- package/output/kernel_lock.clas.mjs.map +10 -0
- package/output/kernel_numberrange.clas.mjs +38 -0
- package/output/kernel_numberrange.clas.mjs.map +10 -0
- package/output/kernel_push_channels.clas.mjs +20 -0
- package/output/kernel_push_channels.clas.mjs.map +10 -0
- package/output/kernel_scan_abap_source.clas.mjs +212 -0
- package/output/kernel_scan_abap_source.clas.mjs.map +10 -0
- package/output/kernel_unit_runner.clas.mjs +199 -0
- package/output/kernel_unit_runner.clas.mjs.map +10 -0
- package/output/laiso.dtel.mjs +6 -0
- package/output/land1.dtel.mjs +6 -0
- package/output/langu.dtel.mjs +6 -0
- package/output/lvc_nokeyc.dtel.mjs +6 -0
- package/output/mandt.dtel.mjs +6 -0
- package/output/match_result.tabl.mjs +5 -0
- package/output/match_result_tab.ttyp.mjs +4 -0
- package/output/msehi.dtel.mjs +6 -0
- package/output/number_get_next.fugr.number_get_next.mjs +23 -0
- package/output/number_get_next.fugr.number_get_next.mjs.map +8 -0
- package/output/number_get_next.fugr.saplnumber_get_next.mjs +5 -0
- package/output/number_get_next.fugr.saplnumber_get_next.mjs.map +8 -0
- package/output/numc4.dtel.mjs +6 -0
- package/output/openabap.fugr.conversion_exit_alpha_input.mjs +17 -0
- package/output/openabap.fugr.conversion_exit_alpha_input.mjs.map +8 -0
- package/output/openabap.fugr.conversion_exit_alpha_output.mjs +18 -0
- package/output/openabap.fugr.conversion_exit_alpha_output.mjs.map +8 -0
- package/output/openabap.fugr.conversion_exit_isola_input.mjs +20 -0
- package/output/openabap.fugr.conversion_exit_isola_input.mjs.map +8 -0
- package/output/openabap.fugr.conversion_exit_isola_output.mjs +17 -0
- package/output/openabap.fugr.conversion_exit_isola_output.mjs.map +8 -0
- package/output/openabap.fugr.convert_itf_to_stream_text.mjs +21 -0
- package/output/openabap.fugr.convert_itf_to_stream_text.mjs.map +8 -0
- package/output/openabap.fugr.docu_get.mjs +29 -0
- package/output/openabap.fugr.docu_get.mjs.map +8 -0
- package/output/openabap.fugr.generate_sec_random.mjs +19 -0
- package/output/openabap.fugr.generate_sec_random.mjs.map +8 -0
- package/output/openabap.fugr.get_system_timezone.mjs +12 -0
- package/output/openabap.fugr.get_system_timezone.mjs.map +8 -0
- package/output/openabap.fugr.saplzopenabap.mjs +5 -0
- package/output/openabap.fugr.saplzopenabap.mjs.map +8 -0
- package/output/openabap.fugr.system_callstack.mjs +16 -0
- package/output/openabap.fugr.system_callstack.mjs.map +8 -0
- package/output/openabap.fugr.system_installed_languages.mjs +13 -0
- package/output/openabap.fugr.system_installed_languages.mjs.map +8 -0
- package/output/openabap.fugr.text_split.mjs +33 -0
- package/output/openabap.fugr.text_split.mjs.map +8 -0
- package/output/reposrc.tabl.mjs +5 -0
- package/output/rfcdest.dtel.mjs +6 -0
- package/output/scrtext_l.dtel.mjs +6 -0
- package/output/scrtext_m.dtel.mjs +6 -0
- package/output/scrtext_s.dtel.mjs +6 -0
- package/output/scx_attrname.dtel.mjs +6 -0
- package/output/scx_t100key.tabl.mjs +5 -0
- package/output/seoclsname.dtel.mjs +6 -0
- package/output/shm_affect_server.dtel.mjs +6 -0
- package/output/shm_area_name.dtel.mjs +6 -0
- package/output/shm_attach_mode.dtel.mjs +6 -0
- package/output/shm_auto_build_class_name.dtel.mjs +6 -0
- package/output/shm_client.dtel.mjs +6 -0
- package/output/shm_constr_invocation_mode.dtel.mjs +6 -0
- package/output/shm_inst_infos.dtel.mjs +6 -0
- package/output/shm_inst_name.dtel.mjs +6 -0
- package/output/shm_life_context.dtel.mjs +6 -0
- package/output/shm_properties.tabl.mjs +5 -0
- package/output/shm_rc.dtel.mjs +6 -0
- package/output/shma_attributes.tabl.mjs +5 -0
- package/output/shma_client.dtel.mjs +6 -0
- package/output/shmm_trc_variant_name.dtel.mjs +6 -0
- package/output/so_raw255.dtel.mjs +6 -0
- package/output/so_text255.dtel.mjs +6 -0
- package/output/soli.tabl.mjs +5 -0
- package/output/soli_tab.ttyp.mjs +4 -0
- package/output/solix.tabl.mjs +5 -0
- package/output/solix_tab.ttyp.mjs +4 -0
- package/output/sotr_conc.dtel.mjs +6 -0
- package/output/spras.dtel.mjs +6 -0
- package/output/ssfapplssl.dtel.mjs +6 -0
- package/output/sstmnt.tabl.mjs +5 -0
- package/output/sstmnt_tab.ttyp.mjs +4 -0
- package/output/sstruc.tabl.mjs +5 -0
- package/output/sstruc_tab.ttyp.mjs +4 -0
- package/output/stokes.tabl.mjs +5 -0
- package/output/stokes_tab.ttyp.mjs +4 -0
- package/output/stokesx.tabl.mjs +5 -0
- package/output/string_table.ttyp.mjs +4 -0
- package/output/submatch_result.tabl.mjs +5 -0
- package/output/submatch_result_tab.ttyp.mjs +4 -0
- package/output/sydate.dtel.mjs +6 -0
- package/output/symsg.tabl.mjs +5 -0
- package/output/symsgid.dtel.mjs +6 -0
- package/output/symsgno.dtel.mjs +6 -0
- package/output/symsgty.dtel.mjs +6 -0
- package/output/symsgv.dtel.mjs +6 -0
- package/output/syst_host.dtel.mjs +6 -0
- package/output/sysubrc.dtel.mjs +6 -0
- package/output/sysuuid_c36.dtel.mjs +6 -0
- package/output/sysuuid_x16.dtel.mjs +6 -0
- package/output/syuname.dtel.mjs +6 -0
- package/output/t000.tabl.mjs +5 -0
- package/output/t100.tabl.mjs +5 -0
- package/output/tabfdpos.dtel.mjs +6 -0
- package/output/tabname.dtel.mjs +6 -0
- package/output/tadir.tabl.mjs +5 -0
- package/output/tdevc.tabl.mjs +5 -0
- package/output/tdline.dtel.mjs +6 -0
- package/output/text20.dtel.mjs +6 -0
- package/output/text200.dtel.mjs +6 -0
- package/output/text255.dtel.mjs +6 -0
- package/output/text30.dtel.mjs +6 -0
- package/output/text80.dtel.mjs +6 -0
- package/output/textpool.tabl.mjs +5 -0
- package/output/tfdir.tabl.mjs +5 -0
- package/output/tihttpnvp.ttyp.mjs +4 -0
- package/output/timestamp.dtel.mjs +6 -0
- package/output/timestampl.dtel.mjs +6 -0
- package/output/timezone.dtel.mjs +6 -0
- package/output/tline.tabl.mjs +5 -0
- package/output/tline_tab.ttyp.mjs +4 -0
- package/output/trfunction.dtel.mjs +6 -0
- package/output/trkorr.dtel.mjs +6 -0
- package/output/tzntstmpl.dtel.mjs +6 -0
- package/output/uname.dtel.mjs +6 -0
- package/output/w3mime.tabl.mjs +5 -0
- package/output/wwwdatatab.tabl.mjs +5 -0
- package/output/wwwparams.tabl.mjs +5 -0
- package/output/xfeld.dtel.mjs +6 -0
- package/output/xsdboolean.dtel.mjs +6 -0
- package/output/xsdtime_t.dtel.mjs +6 -0
- package/output/zw3mi.fugr.saplzw3mi.mjs +5 -0
- package/output/zw3mi.fugr.saplzw3mi.mjs.map +8 -0
- package/output/zw3mi.fugr.wwwdata_export.mjs +14 -0
- package/output/zw3mi.fugr.wwwdata_export.mjs.map +8 -0
- package/output/zw3mi.fugr.wwwdata_import.mjs +14 -0
- package/output/zw3mi.fugr.wwwdata_import.mjs.map +8 -0
- package/output/zw3mi.fugr.wwwparams_insert.mjs +12 -0
- package/output/zw3mi.fugr.wwwparams_insert.mjs.map +8 -0
- package/output/zw3mi.fugr.wwwparams_read.mjs +27 -0
- package/output/zw3mi.fugr.wwwparams_read.mjs.map +8 -0
- package/package.json +3 -3
|
@@ -0,0 +1,1161 @@
|
|
|
1
|
+
const {cx_root} = await import("./cx_root.clas.mjs");
|
|
2
|
+
// cl_ixml.clas.locals_imp.abap
|
|
3
|
+
class lcl_escape {
|
|
4
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
5
|
+
static IMPLEMENTED_INTERFACES = [];
|
|
6
|
+
async constructor_(INPUT) {
|
|
7
|
+
this.me = new abap.types.ABAPObject();
|
|
8
|
+
this.me.set(this);
|
|
9
|
+
return this;
|
|
10
|
+
}
|
|
11
|
+
async unescape_value(INPUT) {
|
|
12
|
+
return lcl_escape.unescape_value(INPUT);
|
|
13
|
+
}
|
|
14
|
+
static async unescape_value(INPUT) {
|
|
15
|
+
let rv_value = new abap.types.String({qualifiedName: "STRING"});
|
|
16
|
+
let iv_value = new abap.types.String({qualifiedName: "STRING"});
|
|
17
|
+
if (INPUT && INPUT.iv_value) {iv_value.set(INPUT.iv_value);}
|
|
18
|
+
rv_value.set(iv_value);
|
|
19
|
+
abap.statements.replace({target: rv_value, all: true, with: new abap.types.Character(1).set('&'), of: new abap.types.Character(5).set('&')});
|
|
20
|
+
abap.statements.replace({target: rv_value, all: true, with: new abap.types.Character(1).set('<'), of: new abap.types.Character(4).set('<')});
|
|
21
|
+
abap.statements.replace({target: rv_value, all: true, with: new abap.types.Character(1).set('>'), of: new abap.types.Character(4).set('>')});
|
|
22
|
+
abap.statements.replace({target: rv_value, all: true, with: new abap.types.Character(1).set('"'), of: new abap.types.Character(6).set('"')});
|
|
23
|
+
abap.statements.replace({target: rv_value, all: true, with: new abap.types.String().set(`'`), of: new abap.types.Character(6).set(''')});
|
|
24
|
+
return rv_value;
|
|
25
|
+
}
|
|
26
|
+
async escape_value(INPUT) {
|
|
27
|
+
return lcl_escape.escape_value(INPUT);
|
|
28
|
+
}
|
|
29
|
+
static async escape_value(INPUT) {
|
|
30
|
+
let rv_value = new abap.types.String({qualifiedName: "STRING"});
|
|
31
|
+
let iv_value = new abap.types.String({qualifiedName: "STRING"});
|
|
32
|
+
if (INPUT && INPUT.iv_value) {iv_value.set(INPUT.iv_value);}
|
|
33
|
+
rv_value.set(iv_value);
|
|
34
|
+
abap.statements.replace({target: rv_value, all: true, with: new abap.types.Character(5).set('&'), of: new abap.types.Character(1).set('&')});
|
|
35
|
+
abap.statements.replace({target: rv_value, all: true, with: new abap.types.Character(4).set('<'), of: new abap.types.Character(1).set('<')});
|
|
36
|
+
abap.statements.replace({target: rv_value, all: true, with: new abap.types.Character(4).set('>'), of: new abap.types.Character(1).set('>')});
|
|
37
|
+
abap.statements.replace({target: rv_value, all: true, with: new abap.types.Character(6).set('"'), of: new abap.types.Character(1).set('"')});
|
|
38
|
+
abap.statements.replace({target: rv_value, all: true, with: new abap.types.Character(6).set('''), of: new abap.types.String().set(`'`)});
|
|
39
|
+
return rv_value;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
abap.Classes['CLAS-CL_IXML-LCL_ESCAPE'] = lcl_escape;
|
|
43
|
+
class lcl_node_iterator {
|
|
44
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
45
|
+
static IMPLEMENTED_INTERFACES = ["IF_IXML_NODE_ITERATOR"];
|
|
46
|
+
async constructor_(INPUT) {
|
|
47
|
+
this.me = new abap.types.ABAPObject();
|
|
48
|
+
this.me.set(this);
|
|
49
|
+
this.mv_pointer = new abap.types.Integer({qualifiedName: "I"});
|
|
50
|
+
this.mt_list = new abap.types.Table(new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"}), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "lcl_node_iterator=>ty_list");
|
|
51
|
+
let it_list = new abap.types.Table(new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"}), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "lcl_node_iterator=>ty_list");
|
|
52
|
+
if (INPUT && INPUT.it_list) {it_list.set(INPUT.it_list);}
|
|
53
|
+
this.mt_list.set(it_list);
|
|
54
|
+
this.mv_pointer.set(new abap.types.Integer().set(1));
|
|
55
|
+
return this;
|
|
56
|
+
}
|
|
57
|
+
async if_ixml_node_iterator$reset() {
|
|
58
|
+
this.mv_pointer.set(new abap.types.Integer().set(1));
|
|
59
|
+
}
|
|
60
|
+
async if_ixml_node_iterator$get_next() {
|
|
61
|
+
let rval = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
62
|
+
abap.statements.readTable(this.mt_list,{index: this.mv_pointer,into: rval});
|
|
63
|
+
this.mv_pointer.set(abap.operators.add(this.mv_pointer,new abap.types.Integer().set(1)));
|
|
64
|
+
return rval;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
abap.Classes['CLAS-CL_IXML-LCL_NODE_ITERATOR'] = lcl_node_iterator;
|
|
68
|
+
lcl_node_iterator.ty_list = new abap.types.Table(new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"}), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "lcl_node_iterator=>ty_list");
|
|
69
|
+
class lcl_encoding {
|
|
70
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
71
|
+
static IMPLEMENTED_INTERFACES = ["IF_IXML_ENCODING"];
|
|
72
|
+
async constructor_(INPUT) {
|
|
73
|
+
this.me = new abap.types.ABAPObject();
|
|
74
|
+
this.me.set(this);
|
|
75
|
+
return this;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
abap.Classes['CLAS-CL_IXML-LCL_ENCODING'] = lcl_encoding;
|
|
79
|
+
class lcl_named_node_map {
|
|
80
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
81
|
+
static IMPLEMENTED_INTERFACES = ["IF_IXML_NAMED_NODE_MAP"];
|
|
82
|
+
async constructor_(INPUT) {
|
|
83
|
+
this.me = new abap.types.ABAPObject();
|
|
84
|
+
this.me.set(this);
|
|
85
|
+
this.mt_list = new abap.types.Table(new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"}), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");
|
|
86
|
+
return this;
|
|
87
|
+
}
|
|
88
|
+
async if_ixml_named_node_map$create_iterator() {
|
|
89
|
+
let iterator = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_ITERATOR"});
|
|
90
|
+
iterator.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NODE_ITERATOR']()).constructor_({it_list: this.mt_list}));
|
|
91
|
+
return iterator;
|
|
92
|
+
}
|
|
93
|
+
async if_ixml_named_node_map$get_length() {
|
|
94
|
+
let val = new abap.types.Integer({qualifiedName: "I"});
|
|
95
|
+
val.set(abap.builtin.lines({val: this.mt_list}));
|
|
96
|
+
return val;
|
|
97
|
+
}
|
|
98
|
+
async if_ixml_named_node_map$get_named_item_ns(INPUT) {
|
|
99
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
100
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
101
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
102
|
+
let li_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
103
|
+
for await (const unique22 of abap.statements.loop(this.mt_list)) {
|
|
104
|
+
li_node.set(unique22);
|
|
105
|
+
if (abap.compare.eq((await li_node.get().if_ixml_node$get_name()), name)) {
|
|
106
|
+
val.set(li_node);
|
|
107
|
+
return val;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
return val;
|
|
111
|
+
}
|
|
112
|
+
async if_ixml_named_node_map$get_named_item(INPUT) {
|
|
113
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
114
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
115
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
116
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
117
|
+
return val;
|
|
118
|
+
}
|
|
119
|
+
async if_ixml_named_node_map$remove_named_item(INPUT) {
|
|
120
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
121
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
122
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
123
|
+
}
|
|
124
|
+
async if_ixml_named_node_map$set_named_item_ns(INPUT) {
|
|
125
|
+
let node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
126
|
+
if (INPUT && INPUT.node) {node.set(INPUT.node);}
|
|
127
|
+
abap.statements.append({source: node, target: this.mt_list});
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
abap.Classes['CLAS-CL_IXML-LCL_NAMED_NODE_MAP'] = lcl_named_node_map;
|
|
131
|
+
class lcl_node_list {
|
|
132
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
133
|
+
static IMPLEMENTED_INTERFACES = ["IF_IXML_NODE_LIST"];
|
|
134
|
+
async constructor_(INPUT) {
|
|
135
|
+
this.me = new abap.types.ABAPObject();
|
|
136
|
+
this.me.set(this);
|
|
137
|
+
this.mt_list = new abap.types.Table(new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"}), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");
|
|
138
|
+
return this;
|
|
139
|
+
}
|
|
140
|
+
async append(INPUT) {
|
|
141
|
+
let ii_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
142
|
+
if (INPUT && INPUT.ii_node) {ii_node.set(INPUT.ii_node);}
|
|
143
|
+
abap.statements.assert(abap.compare.initial(ii_node) === false);
|
|
144
|
+
abap.statements.append({source: ii_node, target: this.mt_list});
|
|
145
|
+
}
|
|
146
|
+
async remove(INPUT) {
|
|
147
|
+
let ii_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
148
|
+
if (INPUT && INPUT.ii_node) {ii_node.set(INPUT.ii_node);}
|
|
149
|
+
abap.statements.readTable(this.mt_list,{withKey: (i) => {return abap.compare.eq(i.table_line, ii_node);}});
|
|
150
|
+
if (abap.compare.eq(abap.builtin.sy.get().subrc, new abap.types.Integer().set(0))) {
|
|
151
|
+
await abap.statements.deleteInternal(this.mt_list,{index: abap.builtin.sy.get().tabix});
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
async if_ixml_node_list$get_length() {
|
|
155
|
+
let length = new abap.types.Integer({qualifiedName: "I"});
|
|
156
|
+
length.set(abap.builtin.lines({val: this.mt_list}));
|
|
157
|
+
return length;
|
|
158
|
+
}
|
|
159
|
+
async if_ixml_node_list$create_iterator() {
|
|
160
|
+
let rval = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_ITERATOR"});
|
|
161
|
+
rval.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NODE_ITERATOR']()).constructor_({it_list: this.mt_list}));
|
|
162
|
+
return rval;
|
|
163
|
+
}
|
|
164
|
+
async if_ixml_node_list$get_item(INPUT) {
|
|
165
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
166
|
+
let index = new abap.types.Integer({qualifiedName: "I"});
|
|
167
|
+
if (INPUT && INPUT.index) {index.set(INPUT.index);}
|
|
168
|
+
abap.statements.readTable(this.mt_list,{index: index,into: val});
|
|
169
|
+
return val;
|
|
170
|
+
}
|
|
171
|
+
async if_ixml_node_list$create_rev_iterator_filtered(INPUT) {
|
|
172
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_ITERATOR"});
|
|
173
|
+
let filter = new abap.types.Character(4);
|
|
174
|
+
if (INPUT && INPUT.filter) {filter = INPUT.filter;}
|
|
175
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
176
|
+
return val;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
abap.Classes['CLAS-CL_IXML-LCL_NODE_LIST'] = lcl_node_list;
|
|
180
|
+
class lcl_node {
|
|
181
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
182
|
+
static IMPLEMENTED_INTERFACES = ["IF_IXML_ELEMENT"];
|
|
183
|
+
async constructor_(INPUT) {
|
|
184
|
+
this.me = new abap.types.ABAPObject();
|
|
185
|
+
this.me.set(this);
|
|
186
|
+
this.mv_name = new abap.types.String({qualifiedName: "STRING"});
|
|
187
|
+
this.mv_namespace = new abap.types.String({qualifiedName: "STRING"});
|
|
188
|
+
this.mv_value = new abap.types.String({qualifiedName: "STRING"});
|
|
189
|
+
this.mo_children = new abap.types.ABAPObject({qualifiedName: "LCL_NODE_LIST"});
|
|
190
|
+
this.mi_parent = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
191
|
+
this.mi_attributes = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NAMED_NODE_MAP"});
|
|
192
|
+
let ii_parent = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
193
|
+
if (INPUT && INPUT.ii_parent) {ii_parent.set(INPUT.ii_parent);}
|
|
194
|
+
this.mo_children.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NODE_LIST']()).constructor_());
|
|
195
|
+
this.mi_attributes.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NAMED_NODE_MAP']()).constructor_());
|
|
196
|
+
this.mi_parent.set(ii_parent);
|
|
197
|
+
if (abap.compare.initial(this.mi_parent) === false) {
|
|
198
|
+
await ii_parent.get().if_ixml_node$append_child({new_child: this.me});
|
|
199
|
+
}
|
|
200
|
+
return this;
|
|
201
|
+
}
|
|
202
|
+
async if_ixml_element$get_attribute_node_ns(INPUT) {
|
|
203
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ATTRIBUTE"});
|
|
204
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
205
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
206
|
+
let uri = new abap.types.String({qualifiedName: "STRING"});
|
|
207
|
+
if (INPUT && INPUT.uri) {uri.set(INPUT.uri);}
|
|
208
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
209
|
+
return val;
|
|
210
|
+
}
|
|
211
|
+
async if_ixml_node$get_next() {
|
|
212
|
+
let rval = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
213
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
214
|
+
return rval;
|
|
215
|
+
}
|
|
216
|
+
async if_ixml_node$get_namespace_prefix() {
|
|
217
|
+
let rv_prefix = new abap.types.String({qualifiedName: "STRING"});
|
|
218
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
219
|
+
return rv_prefix;
|
|
220
|
+
}
|
|
221
|
+
async if_ixml_node$get_namespace_uri() {
|
|
222
|
+
let rval = new abap.types.String({qualifiedName: "STRING"});
|
|
223
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
224
|
+
return rval;
|
|
225
|
+
}
|
|
226
|
+
async if_ixml_element$get_attributes() {
|
|
227
|
+
let attr = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NAMED_NODE_MAP"});
|
|
228
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
229
|
+
return attr;
|
|
230
|
+
}
|
|
231
|
+
async if_ixml_element$get_next() {
|
|
232
|
+
let next = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
233
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
234
|
+
return next;
|
|
235
|
+
}
|
|
236
|
+
async if_ixml_element$get_name() {
|
|
237
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
238
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
239
|
+
return name;
|
|
240
|
+
}
|
|
241
|
+
async if_ixml_element$append_child(INPUT) {
|
|
242
|
+
let rc = new abap.types.Integer({qualifiedName: "I"});
|
|
243
|
+
let new_child = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
244
|
+
if (INPUT && INPUT.new_child) {new_child.set(INPUT.new_child);}
|
|
245
|
+
let lo_node = new abap.types.ABAPObject({qualifiedName: "LCL_NODE"});
|
|
246
|
+
await abap.statements.cast(lo_node, new_child);
|
|
247
|
+
lo_node.get().mi_parent.set(this.me);
|
|
248
|
+
await this.mo_children.get().append({ii_node: new_child});
|
|
249
|
+
return rc;
|
|
250
|
+
}
|
|
251
|
+
async if_ixml_element$clone() {
|
|
252
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
253
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
254
|
+
return val;
|
|
255
|
+
}
|
|
256
|
+
async if_ixml_element$create_filter_node_type(INPUT) {
|
|
257
|
+
let val = new abap.types.DataReference(new abap.types.Character(4));
|
|
258
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
259
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
260
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
261
|
+
return val;
|
|
262
|
+
}
|
|
263
|
+
async if_ixml_element$remove_attribute_ns(INPUT) {
|
|
264
|
+
let foo = new abap.types.String({qualifiedName: "STRING"});
|
|
265
|
+
if (INPUT && INPUT.foo) {foo.set(INPUT.foo);}
|
|
266
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
267
|
+
}
|
|
268
|
+
async if_ixml_element$create_iterator() {
|
|
269
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_ITERATOR"});
|
|
270
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
271
|
+
return val;
|
|
272
|
+
}
|
|
273
|
+
async if_ixml_element$find_from_name_ns(INPUT) {
|
|
274
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
275
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
276
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
277
|
+
let namespace = new abap.types.String({qualifiedName: "STRING"});
|
|
278
|
+
if (INPUT && INPUT.namespace) {namespace.set(INPUT.namespace);}
|
|
279
|
+
let uri = new abap.types.String({qualifiedName: "STRING"});
|
|
280
|
+
if (INPUT && INPUT.uri) {uri.set(INPUT.uri);}
|
|
281
|
+
let depth = new abap.types.Integer({qualifiedName: "I"});
|
|
282
|
+
if (INPUT && INPUT.depth) {depth.set(INPUT.depth);}
|
|
283
|
+
let li_iterator = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_ITERATOR"});
|
|
284
|
+
let li_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
285
|
+
let li_children = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_LIST"});
|
|
286
|
+
let lt_nodes = new abap.types.Table(new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"}), {"withHeader":false,"primaryKey":{"name":"primary_key","type":"STANDARD","isUnique":false,"keyFields":[]},"secondary":[]}, "");
|
|
287
|
+
let li_top = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
288
|
+
abap.statements.append({source: this.me, target: lt_nodes});
|
|
289
|
+
for await (const unique23 of abap.statements.loop(lt_nodes)) {
|
|
290
|
+
li_top.set(unique23);
|
|
291
|
+
li_children.set((await li_top.get().if_ixml_node$get_children()));
|
|
292
|
+
li_iterator.set((await li_children.get().if_ixml_node_list$create_iterator()));
|
|
293
|
+
const indexBackup1 = abap.builtin.sy.get().index.get();
|
|
294
|
+
let unique24 = 1;
|
|
295
|
+
while (true) {
|
|
296
|
+
abap.builtin.sy.get().index.set(unique24++);
|
|
297
|
+
li_node.set((await li_iterator.get().if_ixml_node_iterator$get_next()));
|
|
298
|
+
if (abap.compare.initial(li_node)) {
|
|
299
|
+
break;
|
|
300
|
+
}
|
|
301
|
+
if (abap.compare.eq((await li_node.get().if_ixml_node$get_name()), name)) {
|
|
302
|
+
await abap.statements.cast(val, li_node);
|
|
303
|
+
abap.builtin.sy.get().index.set(indexBackup1);
|
|
304
|
+
return val;
|
|
305
|
+
}
|
|
306
|
+
abap.statements.append({source: li_node, target: lt_nodes});
|
|
307
|
+
}
|
|
308
|
+
abap.builtin.sy.get().index.set(indexBackup1);
|
|
309
|
+
}
|
|
310
|
+
return val;
|
|
311
|
+
}
|
|
312
|
+
async if_ixml_element$find_from_name(INPUT) {
|
|
313
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
314
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
315
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
316
|
+
let namespace = new abap.types.String({qualifiedName: "STRING"});
|
|
317
|
+
if (INPUT && INPUT.namespace) {namespace.set(INPUT.namespace);}
|
|
318
|
+
let depth = new abap.types.Integer({qualifiedName: "I"});
|
|
319
|
+
if (INPUT && INPUT.depth) {depth.set(INPUT.depth);}
|
|
320
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
321
|
+
return val;
|
|
322
|
+
}
|
|
323
|
+
async if_ixml_element$get_attribute_node(INPUT) {
|
|
324
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ATTRIBUTE"});
|
|
325
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
326
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
327
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
328
|
+
return val;
|
|
329
|
+
}
|
|
330
|
+
async if_ixml_element$get_attribute_ns(INPUT) {
|
|
331
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
332
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
333
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
334
|
+
let uri = new abap.types.String({qualifiedName: "STRING"});
|
|
335
|
+
if (INPUT && INPUT.uri) {uri.set(INPUT.uri);}
|
|
336
|
+
let li_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
337
|
+
li_node.set((await (await this.if_ixml_node$get_attributes()).get().if_ixml_named_node_map$get_named_item_ns({name: name})));
|
|
338
|
+
if (abap.compare.initial(li_node) === false) {
|
|
339
|
+
val.set((await li_node.get().if_ixml_node$get_value()));
|
|
340
|
+
}
|
|
341
|
+
return val;
|
|
342
|
+
}
|
|
343
|
+
async if_ixml_element$get_attribute(INPUT) {
|
|
344
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
345
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
346
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
347
|
+
let namespace = new abap.types.String({qualifiedName: "STRING"});
|
|
348
|
+
if (INPUT && INPUT.namespace) {namespace.set(INPUT.namespace);}
|
|
349
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
350
|
+
return val;
|
|
351
|
+
}
|
|
352
|
+
async if_ixml_element$get_children() {
|
|
353
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_LIST"});
|
|
354
|
+
val.set((await this.if_ixml_node$get_children()));
|
|
355
|
+
return val;
|
|
356
|
+
}
|
|
357
|
+
async if_ixml_element$get_elements_by_tag_name(INPUT) {
|
|
358
|
+
let val = new abap.types.Character(4);
|
|
359
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
360
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
361
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
362
|
+
return val;
|
|
363
|
+
}
|
|
364
|
+
async if_ixml_element$get_elements_by_tag_name_ns(INPUT) {
|
|
365
|
+
let val = new abap.types.Character(4);
|
|
366
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
367
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
368
|
+
let uri = new abap.types.String({qualifiedName: "STRING"});
|
|
369
|
+
if (INPUT && INPUT.uri) {uri.set(INPUT.uri);}
|
|
370
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
371
|
+
return val;
|
|
372
|
+
}
|
|
373
|
+
async if_ixml_element$get_first_child() {
|
|
374
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
375
|
+
val.set((await this.if_ixml_node$get_first_child()));
|
|
376
|
+
return val;
|
|
377
|
+
}
|
|
378
|
+
async if_ixml_element$get_value() {
|
|
379
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
380
|
+
val.set((await this.if_ixml_node$get_value()));
|
|
381
|
+
return val;
|
|
382
|
+
}
|
|
383
|
+
async if_ixml_element$remove_attribute(INPUT) {
|
|
384
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
385
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
386
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
387
|
+
}
|
|
388
|
+
async if_ixml_element$remove_node() {
|
|
389
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
390
|
+
}
|
|
391
|
+
async if_ixml_element$render(INPUT) {
|
|
392
|
+
let ostream = new abap.types.ABAPObject({qualifiedName: "IF_IXML_OSTREAM"});
|
|
393
|
+
if (INPUT && INPUT.ostream) {ostream.set(INPUT.ostream);}
|
|
394
|
+
let li_iterator = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_ITERATOR"});
|
|
395
|
+
let li_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
396
|
+
let li_element = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
397
|
+
let lv_attributes = new abap.types.String({qualifiedName: "STRING"});
|
|
398
|
+
let lv_ns = new abap.types.String({qualifiedName: "STRING"});
|
|
399
|
+
li_iterator.set((await this.mi_attributes.get().if_ixml_named_node_map$create_iterator()));
|
|
400
|
+
const indexBackup1 = abap.builtin.sy.get().index.get();
|
|
401
|
+
let unique25 = 1;
|
|
402
|
+
while (true) {
|
|
403
|
+
abap.builtin.sy.get().index.set(unique25++);
|
|
404
|
+
li_node.set((await li_iterator.get().if_ixml_node_iterator$get_next()));
|
|
405
|
+
if (abap.compare.initial(li_node)) {
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
lv_attributes.set(abap.operators.concat(lv_attributes,abap.operators.concat(new abap.types.String().set(` `),abap.operators.concat((await li_node.get().if_ixml_node$get_name()),abap.operators.concat(new abap.types.Character(2).set('="'),abap.operators.concat((await li_node.get().if_ixml_node$get_value()),new abap.types.Character(1).set('"')))))));
|
|
409
|
+
}
|
|
410
|
+
abap.builtin.sy.get().index.set(indexBackup1);
|
|
411
|
+
if (abap.compare.initial(this.mv_namespace) === false) {
|
|
412
|
+
lv_ns.set(abap.operators.concat(this.mv_namespace,new abap.types.Character(1).set(':')));
|
|
413
|
+
}
|
|
414
|
+
await ostream.get().if_ixml_ostream$write_string({string: abap.operators.concat(new abap.types.Character(1).set('<'),abap.operators.concat(lv_ns,abap.operators.concat(this.mv_name,lv_attributes)))});
|
|
415
|
+
if (abap.compare.gt((await (await this.if_ixml_node$get_children()).get().if_ixml_node_list$get_length()), new abap.types.Integer().set(0)) || abap.compare.initial(this.mv_value) === false) {
|
|
416
|
+
await ostream.get().if_ixml_ostream$write_string({string: new abap.types.Character(1).set('>')});
|
|
417
|
+
}
|
|
418
|
+
li_iterator.set((await (await this.if_ixml_node$get_children()).get().if_ixml_node_list$create_iterator()));
|
|
419
|
+
const indexBackup2 = abap.builtin.sy.get().index.get();
|
|
420
|
+
let unique26 = 1;
|
|
421
|
+
while (true) {
|
|
422
|
+
abap.builtin.sy.get().index.set(unique26++);
|
|
423
|
+
await abap.statements.cast(li_element, (await li_iterator.get().if_ixml_node_iterator$get_next()));
|
|
424
|
+
if (abap.compare.initial(li_element)) {
|
|
425
|
+
break;
|
|
426
|
+
}
|
|
427
|
+
await li_element.get().if_ixml_element$render({ostream: ostream});
|
|
428
|
+
}
|
|
429
|
+
abap.builtin.sy.get().index.set(indexBackup2);
|
|
430
|
+
if (abap.compare.gt((await (await this.if_ixml_node$get_children()).get().if_ixml_node_list$get_length()), new abap.types.Integer().set(0)) || abap.compare.initial(this.mv_value) === false) {
|
|
431
|
+
await ostream.get().if_ixml_ostream$write_string({string: abap.operators.concat((await abap.Classes['CLAS-CL_IXML-LCL_ESCAPE'].escape_value({iv_value: this.mv_value})),abap.operators.concat(new abap.types.Character(2).set('</'),abap.operators.concat(lv_ns,abap.operators.concat(this.mv_name,new abap.types.Character(1).set('>')))))});
|
|
432
|
+
} else {
|
|
433
|
+
await ostream.get().if_ixml_ostream$write_string({string: new abap.types.Character(2).set('/>')});
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
async if_ixml_element$set_attribute_node_ns(INPUT) {
|
|
437
|
+
let attr = new abap.types.Character(4);
|
|
438
|
+
if (INPUT && INPUT.attr) {attr = INPUT.attr;}
|
|
439
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
440
|
+
}
|
|
441
|
+
async if_ixml_element$set_attribute(INPUT) {
|
|
442
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
443
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
444
|
+
let namespace = new abap.types.String({qualifiedName: "STRING"});
|
|
445
|
+
if (INPUT && INPUT.namespace) {namespace.set(INPUT.namespace);}
|
|
446
|
+
let value = new abap.types.String({qualifiedName: "STRING"});
|
|
447
|
+
if (INPUT && INPUT.value) {value.set(INPUT.value);}
|
|
448
|
+
await this.if_ixml_element$set_attribute_ns({name: name, value: value});
|
|
449
|
+
}
|
|
450
|
+
async if_ixml_element$set_attribute_ns(INPUT) {
|
|
451
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
452
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
453
|
+
let prefix = new abap.types.String({qualifiedName: "STRING"});
|
|
454
|
+
if (INPUT && INPUT.prefix) {prefix.set(INPUT.prefix);}
|
|
455
|
+
let value = new abap.types.String({qualifiedName: "STRING"});
|
|
456
|
+
if (INPUT && INPUT.value) {value.set(INPUT.value);}
|
|
457
|
+
let lo_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
458
|
+
lo_node.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NODE']()).constructor_());
|
|
459
|
+
await lo_node.get().if_ixml_node$set_name({name: name});
|
|
460
|
+
await lo_node.get().if_ixml_node$set_value({value: value});
|
|
461
|
+
await this.mi_attributes.get().if_ixml_named_node_map$set_named_item_ns({node: lo_node});
|
|
462
|
+
}
|
|
463
|
+
async if_ixml_element$set_value(INPUT) {
|
|
464
|
+
let rc = new abap.types.Integer({qualifiedName: "I"});
|
|
465
|
+
let value = new abap.types.String({qualifiedName: "STRING"});
|
|
466
|
+
if (INPUT && INPUT.value) {value.set(INPUT.value);}
|
|
467
|
+
await this.if_ixml_node$set_value({value: value});
|
|
468
|
+
return rc;
|
|
469
|
+
}
|
|
470
|
+
async if_ixml_node$set_namespace_prefix(INPUT) {
|
|
471
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
472
|
+
if (INPUT && INPUT.val) {val.set(INPUT.val);}
|
|
473
|
+
this.mv_namespace.set(val);
|
|
474
|
+
}
|
|
475
|
+
async if_ixml_node$append_child(INPUT) {
|
|
476
|
+
let new_child = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
477
|
+
if (INPUT && INPUT.new_child) {new_child.set(INPUT.new_child);}
|
|
478
|
+
let lo_node = new abap.types.ABAPObject({qualifiedName: "LCL_NODE"});
|
|
479
|
+
await abap.statements.cast(lo_node, new_child);
|
|
480
|
+
lo_node.get().mi_parent.set(this.me);
|
|
481
|
+
await this.mo_children.get().append({ii_node: new_child});
|
|
482
|
+
}
|
|
483
|
+
async if_ixml_node$get_attributes() {
|
|
484
|
+
let map = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NAMED_NODE_MAP"});
|
|
485
|
+
map.set(this.mi_attributes);
|
|
486
|
+
return map;
|
|
487
|
+
}
|
|
488
|
+
async if_ixml_node$get_first_child() {
|
|
489
|
+
let node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
490
|
+
node.set((await this.mo_children.get().if_ixml_node_list$get_item({index: new abap.types.Integer().set(1)})));
|
|
491
|
+
return node;
|
|
492
|
+
}
|
|
493
|
+
async if_ixml_node$get_children() {
|
|
494
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_LIST"});
|
|
495
|
+
val.set(this.mo_children);
|
|
496
|
+
return val;
|
|
497
|
+
}
|
|
498
|
+
async if_ixml_node$query_interface(INPUT) {
|
|
499
|
+
let rval = new abap.types.ABAPObject({qualifiedName: "IF_IXML_UNKNOWN"});
|
|
500
|
+
let foo = new abap.types.String({qualifiedName: "STRING"});
|
|
501
|
+
if (INPUT && INPUT.foo) {foo.set(INPUT.foo);}
|
|
502
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
503
|
+
return rval;
|
|
504
|
+
}
|
|
505
|
+
async if_ixml_node$remove_node() {
|
|
506
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
507
|
+
}
|
|
508
|
+
async if_ixml_node$get_parent() {
|
|
509
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
510
|
+
val.set(this.mi_parent);
|
|
511
|
+
return val;
|
|
512
|
+
}
|
|
513
|
+
async if_ixml_node$replace_child(INPUT) {
|
|
514
|
+
let new_child = new abap.types.String({qualifiedName: "STRING"});
|
|
515
|
+
if (INPUT && INPUT.new_child) {new_child.set(INPUT.new_child);}
|
|
516
|
+
let old_child = new abap.types.String({qualifiedName: "STRING"});
|
|
517
|
+
if (INPUT && INPUT.old_child) {old_child.set(INPUT.old_child);}
|
|
518
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
519
|
+
}
|
|
520
|
+
async if_ixml_node$get_name() {
|
|
521
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
522
|
+
val.set(this.mv_name);
|
|
523
|
+
return val;
|
|
524
|
+
}
|
|
525
|
+
async if_ixml_node$get_depth() {
|
|
526
|
+
let val = new abap.types.Integer({qualifiedName: "I"});
|
|
527
|
+
let li_iterator = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_ITERATOR"});
|
|
528
|
+
let li_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
529
|
+
let lv_max = new abap.types.Integer({qualifiedName: "I"});
|
|
530
|
+
if (abap.compare.eq((await this.mo_children.get().if_ixml_node_list$get_length()), new abap.types.Integer().set(0))) {
|
|
531
|
+
val.set(new abap.types.Integer().set(0));
|
|
532
|
+
} else {
|
|
533
|
+
li_iterator.set((await this.mo_children.get().if_ixml_node_list$create_iterator()));
|
|
534
|
+
const indexBackup1 = abap.builtin.sy.get().index.get();
|
|
535
|
+
let unique27 = 1;
|
|
536
|
+
while (true) {
|
|
537
|
+
abap.builtin.sy.get().index.set(unique27++);
|
|
538
|
+
li_node.set((await li_iterator.get().if_ixml_node_iterator$get_next()));
|
|
539
|
+
if (abap.compare.initial(li_node)) {
|
|
540
|
+
break;
|
|
541
|
+
}
|
|
542
|
+
if (abap.compare.gt((await li_node.get().if_ixml_node$get_depth()), lv_max)) {
|
|
543
|
+
lv_max.set((await li_node.get().if_ixml_node$get_depth()));
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
abap.builtin.sy.get().index.set(indexBackup1);
|
|
547
|
+
val.set(abap.operators.add(lv_max,new abap.types.Integer().set(1)));
|
|
548
|
+
}
|
|
549
|
+
return val;
|
|
550
|
+
}
|
|
551
|
+
async if_ixml_node$is_leaf() {
|
|
552
|
+
let val = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
|
|
553
|
+
val.set(abap.builtin.boolc(abap.compare.eq((await this.mo_children.get().if_ixml_node_list$get_length()), new abap.types.Integer().set(0))));
|
|
554
|
+
return val;
|
|
555
|
+
}
|
|
556
|
+
async if_ixml_node$get_namespace() {
|
|
557
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
558
|
+
val.set(this.mv_namespace);
|
|
559
|
+
return val;
|
|
560
|
+
}
|
|
561
|
+
async if_ixml_node$get_value() {
|
|
562
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
563
|
+
let li_iterator = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_ITERATOR"});
|
|
564
|
+
let li_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
565
|
+
let lv_max = new abap.types.Integer({qualifiedName: "I"});
|
|
566
|
+
if (abap.compare.eq((await this.mo_children.get().if_ixml_node_list$get_length()), new abap.types.Integer().set(0))) {
|
|
567
|
+
val.set(this.mv_value);
|
|
568
|
+
} else {
|
|
569
|
+
li_iterator.set((await this.mo_children.get().if_ixml_node_list$create_iterator()));
|
|
570
|
+
const indexBackup1 = abap.builtin.sy.get().index.get();
|
|
571
|
+
let unique28 = 1;
|
|
572
|
+
while (true) {
|
|
573
|
+
abap.builtin.sy.get().index.set(unique28++);
|
|
574
|
+
li_node.set((await li_iterator.get().if_ixml_node_iterator$get_next()));
|
|
575
|
+
if (abap.compare.initial(li_node)) {
|
|
576
|
+
break;
|
|
577
|
+
}
|
|
578
|
+
val.set(abap.operators.concat(val,(await li_node.get().if_ixml_node$get_value())));
|
|
579
|
+
}
|
|
580
|
+
abap.builtin.sy.get().index.set(indexBackup1);
|
|
581
|
+
}
|
|
582
|
+
return val;
|
|
583
|
+
}
|
|
584
|
+
async if_ixml_node$get_type() {
|
|
585
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
586
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
587
|
+
return val;
|
|
588
|
+
}
|
|
589
|
+
async if_ixml_node$set_name(INPUT) {
|
|
590
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
591
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
592
|
+
this.mv_name.set(name);
|
|
593
|
+
}
|
|
594
|
+
async if_ixml_node$remove_child(INPUT) {
|
|
595
|
+
let child = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
596
|
+
if (INPUT && INPUT.child) {child.set(INPUT.child);}
|
|
597
|
+
await this.mo_children.get().remove({ii_node: child});
|
|
598
|
+
}
|
|
599
|
+
async if_ixml_node$set_value(INPUT) {
|
|
600
|
+
let value = new abap.types.String({qualifiedName: "STRING"});
|
|
601
|
+
if (INPUT && INPUT.value) {value.set(INPUT.value);}
|
|
602
|
+
this.mv_value.set(value);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
abap.Classes['CLAS-CL_IXML-LCL_NODE'] = lcl_node;
|
|
606
|
+
class lcl_document {
|
|
607
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
608
|
+
static IMPLEMENTED_INTERFACES = ["IF_IXML_DOCUMENT"];
|
|
609
|
+
async constructor_(INPUT) {
|
|
610
|
+
this.me = new abap.types.ABAPObject();
|
|
611
|
+
this.me.set(this);
|
|
612
|
+
this.mi_node = new abap.types.ABAPObject({qualifiedName: "LCL_NODE"});
|
|
613
|
+
this.mi_node.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NODE']()).constructor_());
|
|
614
|
+
await this.mi_node.get().if_ixml_node$set_name({name: new abap.types.Character(9).set('#document')});
|
|
615
|
+
return this;
|
|
616
|
+
}
|
|
617
|
+
async if_ixml_node$get_namespace_prefix() {
|
|
618
|
+
let rv_prefix = new abap.types.String({qualifiedName: "STRING"});
|
|
619
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
620
|
+
return rv_prefix;
|
|
621
|
+
}
|
|
622
|
+
async if_ixml_node$get_next() {
|
|
623
|
+
let rval = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
624
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
625
|
+
return rval;
|
|
626
|
+
}
|
|
627
|
+
async if_ixml_node$get_namespace_uri() {
|
|
628
|
+
let rval = new abap.types.String({qualifiedName: "STRING"});
|
|
629
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
630
|
+
return rval;
|
|
631
|
+
}
|
|
632
|
+
async if_ixml_node$append_child(INPUT) {
|
|
633
|
+
let new_child = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
634
|
+
if (INPUT && INPUT.new_child) {new_child.set(INPUT.new_child);}
|
|
635
|
+
let lo_node = new abap.types.ABAPObject({qualifiedName: "LCL_NODE"});
|
|
636
|
+
await abap.statements.cast(lo_node, new_child);
|
|
637
|
+
lo_node.get().mi_parent.set(this.me);
|
|
638
|
+
await this.mi_node.get().if_ixml_node$append_child({new_child: new_child});
|
|
639
|
+
}
|
|
640
|
+
async if_ixml_node$set_namespace_prefix(INPUT) {
|
|
641
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
642
|
+
if (INPUT && INPUT.val) {val.set(INPUT.val);}
|
|
643
|
+
await this.mi_node.get().if_ixml_node$set_namespace_prefix({val: val});
|
|
644
|
+
}
|
|
645
|
+
async if_ixml_node$get_attributes() {
|
|
646
|
+
let map = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NAMED_NODE_MAP"});
|
|
647
|
+
map.set((await this.mi_node.get().if_ixml_node$get_attributes()));
|
|
648
|
+
return map;
|
|
649
|
+
}
|
|
650
|
+
async if_ixml_node$get_first_child() {
|
|
651
|
+
let node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
652
|
+
node.set((await this.mi_node.get().if_ixml_node$get_first_child()));
|
|
653
|
+
return node;
|
|
654
|
+
}
|
|
655
|
+
async if_ixml_node$get_children() {
|
|
656
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_LIST"});
|
|
657
|
+
val.set((await this.mi_node.get().if_ixml_node$get_children()));
|
|
658
|
+
return val;
|
|
659
|
+
}
|
|
660
|
+
async if_ixml_node$query_interface(INPUT) {
|
|
661
|
+
let rval = new abap.types.ABAPObject({qualifiedName: "IF_IXML_UNKNOWN"});
|
|
662
|
+
let foo = new abap.types.String({qualifiedName: "STRING"});
|
|
663
|
+
if (INPUT && INPUT.foo) {foo.set(INPUT.foo);}
|
|
664
|
+
await this.mi_node.get().if_ixml_node$query_interface({foo: foo});
|
|
665
|
+
return rval;
|
|
666
|
+
}
|
|
667
|
+
async if_ixml_node$remove_node() {
|
|
668
|
+
await this.mi_node.get().if_ixml_node$remove_node();
|
|
669
|
+
}
|
|
670
|
+
async if_ixml_node$get_parent() {
|
|
671
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
672
|
+
val.set((await this.mi_node.get().if_ixml_node$get_parent()));
|
|
673
|
+
return val;
|
|
674
|
+
}
|
|
675
|
+
async if_ixml_node$replace_child(INPUT) {
|
|
676
|
+
let new_child = new abap.types.String({qualifiedName: "STRING"});
|
|
677
|
+
if (INPUT && INPUT.new_child) {new_child.set(INPUT.new_child);}
|
|
678
|
+
let old_child = new abap.types.String({qualifiedName: "STRING"});
|
|
679
|
+
if (INPUT && INPUT.old_child) {old_child.set(INPUT.old_child);}
|
|
680
|
+
await this.mi_node.get().if_ixml_node$replace_child({new_child: new_child, old_child: old_child});
|
|
681
|
+
}
|
|
682
|
+
async if_ixml_node$get_name() {
|
|
683
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
684
|
+
val.set((await this.mi_node.get().if_ixml_node$get_name()));
|
|
685
|
+
return val;
|
|
686
|
+
}
|
|
687
|
+
async if_ixml_node$get_depth() {
|
|
688
|
+
let val = new abap.types.Integer({qualifiedName: "I"});
|
|
689
|
+
val.set((await this.mi_node.get().if_ixml_node$get_depth()));
|
|
690
|
+
return val;
|
|
691
|
+
}
|
|
692
|
+
async if_ixml_node$is_leaf() {
|
|
693
|
+
let val = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
|
|
694
|
+
val.set((await this.mi_node.get().if_ixml_node$is_leaf()));
|
|
695
|
+
return val;
|
|
696
|
+
}
|
|
697
|
+
async if_ixml_node$get_namespace() {
|
|
698
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
699
|
+
val.set((await this.mi_node.get().if_ixml_node$get_namespace()));
|
|
700
|
+
return val;
|
|
701
|
+
}
|
|
702
|
+
async if_ixml_node$get_value() {
|
|
703
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
704
|
+
val.set((await this.mi_node.get().if_ixml_node$get_value()));
|
|
705
|
+
return val;
|
|
706
|
+
}
|
|
707
|
+
async if_ixml_node$get_type() {
|
|
708
|
+
let val = new abap.types.String({qualifiedName: "STRING"});
|
|
709
|
+
val.set((await this.mi_node.get().if_ixml_node$get_type()));
|
|
710
|
+
return val;
|
|
711
|
+
}
|
|
712
|
+
async if_ixml_node$set_name(INPUT) {
|
|
713
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
714
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
715
|
+
await this.mi_node.get().if_ixml_node$set_name({name: name});
|
|
716
|
+
}
|
|
717
|
+
async if_ixml_node$remove_child(INPUT) {
|
|
718
|
+
let child = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
719
|
+
if (INPUT && INPUT.child) {child.set(INPUT.child);}
|
|
720
|
+
await this.mi_node.get().if_ixml_node$remove_child({child: child});
|
|
721
|
+
}
|
|
722
|
+
async if_ixml_node$set_value(INPUT) {
|
|
723
|
+
let value = new abap.types.String({qualifiedName: "STRING"});
|
|
724
|
+
if (INPUT && INPUT.value) {value.set(INPUT.value);}
|
|
725
|
+
await this.mi_node.get().if_ixml_node$set_value({value: value});
|
|
726
|
+
}
|
|
727
|
+
async if_ixml_document$set_encoding(INPUT) {
|
|
728
|
+
let encoding = new abap.types.ABAPObject();
|
|
729
|
+
if (INPUT && INPUT.encoding) {encoding = INPUT.encoding;}
|
|
730
|
+
return;
|
|
731
|
+
}
|
|
732
|
+
async if_ixml_document$set_standalone(INPUT) {
|
|
733
|
+
let standalone = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
|
|
734
|
+
if (INPUT && INPUT.standalone) {standalone = INPUT.standalone;}
|
|
735
|
+
return;
|
|
736
|
+
}
|
|
737
|
+
async if_ixml_document$set_namespace_prefix(INPUT) {
|
|
738
|
+
let prefix = new abap.types.String({qualifiedName: "STRING"});
|
|
739
|
+
if (INPUT && INPUT.prefix) {prefix.set(INPUT.prefix);}
|
|
740
|
+
return;
|
|
741
|
+
}
|
|
742
|
+
async if_ixml_document$append_child(INPUT) {
|
|
743
|
+
let new_child = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
744
|
+
if (INPUT && INPUT.new_child) {new_child.set(INPUT.new_child);}
|
|
745
|
+
await this.if_ixml_node$append_child({new_child: new_child});
|
|
746
|
+
}
|
|
747
|
+
async if_ixml_document$get_first_child() {
|
|
748
|
+
let child = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
749
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
750
|
+
return child;
|
|
751
|
+
}
|
|
752
|
+
async if_ixml_document$create_attribute_ns(INPUT) {
|
|
753
|
+
let element = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ATTRIBUTE"});
|
|
754
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
755
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
756
|
+
let prefix = new abap.types.String({qualifiedName: "STRING"});
|
|
757
|
+
if (INPUT && INPUT.prefix) {prefix.set(INPUT.prefix);}
|
|
758
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
759
|
+
return element;
|
|
760
|
+
}
|
|
761
|
+
async if_ixml_document$create_element_ns(INPUT) {
|
|
762
|
+
let element = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
763
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
764
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
765
|
+
let prefix = new abap.types.String({qualifiedName: "STRING"});
|
|
766
|
+
if (INPUT && INPUT.prefix) {prefix.set(INPUT.prefix);}
|
|
767
|
+
element.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NODE']()).constructor_());
|
|
768
|
+
await element.get().if_ixml_node$set_name({name: name});
|
|
769
|
+
await element.get().if_ixml_node$set_namespace_prefix({val: prefix});
|
|
770
|
+
return element;
|
|
771
|
+
}
|
|
772
|
+
async if_ixml_document$create_element(INPUT) {
|
|
773
|
+
let element = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
774
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
775
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
776
|
+
element.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NODE']()).constructor_());
|
|
777
|
+
await element.get().if_ixml_node$set_name({name: name});
|
|
778
|
+
return element;
|
|
779
|
+
}
|
|
780
|
+
async if_ixml_document$create_iterator_filtered(INPUT) {
|
|
781
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_ITERATOR"});
|
|
782
|
+
let input = new abap.types.Character(4);
|
|
783
|
+
if (INPUT && INPUT.input) {input = INPUT.input;}
|
|
784
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
785
|
+
return val;
|
|
786
|
+
}
|
|
787
|
+
async if_ixml_document$create_filter_and(INPUT) {
|
|
788
|
+
let val = new abap.types.Character(4);
|
|
789
|
+
let filter1 = new abap.types.Character(4);
|
|
790
|
+
if (INPUT && INPUT.filter1) {filter1 = INPUT.filter1;}
|
|
791
|
+
let filter2 = new abap.types.Character(4);
|
|
792
|
+
if (INPUT && INPUT.filter2) {filter2 = INPUT.filter2;}
|
|
793
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
794
|
+
return val;
|
|
795
|
+
}
|
|
796
|
+
async if_ixml_document$create_iterator() {
|
|
797
|
+
let rval = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_ITERATOR"});
|
|
798
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
799
|
+
return rval;
|
|
800
|
+
}
|
|
801
|
+
async if_ixml_document$create_filter_node_type(INPUT) {
|
|
802
|
+
let val = new abap.types.Character(4);
|
|
803
|
+
let typ = new abap.types.String({qualifiedName: "STRING"});
|
|
804
|
+
if (INPUT && INPUT.typ) {typ.set(INPUT.typ);}
|
|
805
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
806
|
+
return val;
|
|
807
|
+
}
|
|
808
|
+
async if_ixml_document$create_simple_element_ns(INPUT) {
|
|
809
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
810
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
811
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
812
|
+
let parent = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
813
|
+
if (INPUT && INPUT.parent) {parent.set(INPUT.parent);}
|
|
814
|
+
let prefix = new abap.types.String({qualifiedName: "STRING"});
|
|
815
|
+
if (INPUT && INPUT.prefix) {prefix.set(INPUT.prefix);}
|
|
816
|
+
let li_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
817
|
+
val.set((await this.if_ixml_document$create_simple_element({name: name, parent: parent})));
|
|
818
|
+
await abap.statements.cast(li_node, val);
|
|
819
|
+
await li_node.get().if_ixml_node$set_namespace_prefix({val: prefix});
|
|
820
|
+
return val;
|
|
821
|
+
}
|
|
822
|
+
async if_ixml_document$create_filter_attribute(INPUT) {
|
|
823
|
+
let val = new abap.types.Character(4);
|
|
824
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
825
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
826
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
827
|
+
return val;
|
|
828
|
+
}
|
|
829
|
+
async if_ixml_document$create_simple_element(INPUT) {
|
|
830
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
831
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
832
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
833
|
+
let parent = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
834
|
+
if (INPUT && INPUT.parent) {parent.set(INPUT.parent);}
|
|
835
|
+
val.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NODE']()).constructor_({ii_parent: parent}));
|
|
836
|
+
await val.get().if_ixml_node$set_name({name: name});
|
|
837
|
+
return val;
|
|
838
|
+
}
|
|
839
|
+
async if_ixml_document$find_from_name(INPUT) {
|
|
840
|
+
let element = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
841
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
842
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
843
|
+
let namespace = new abap.types.String({qualifiedName: "STRING"});
|
|
844
|
+
if (INPUT && INPUT.namespace) {namespace.set(INPUT.namespace);}
|
|
845
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(35).set('todo, use find_from_name_ns instead')));
|
|
846
|
+
return element;
|
|
847
|
+
}
|
|
848
|
+
async if_ixml_document$find_from_name_ns(INPUT) {
|
|
849
|
+
let element = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
850
|
+
let depth = new abap.types.Integer({qualifiedName: "I"});
|
|
851
|
+
if (INPUT && INPUT.depth) {depth.set(INPUT.depth);}
|
|
852
|
+
let uri = new abap.types.String({qualifiedName: "STRING"});
|
|
853
|
+
if (INPUT && INPUT.uri) {uri.set(INPUT.uri);}
|
|
854
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
855
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
856
|
+
element.set((await this.mi_node.get().if_ixml_element$find_from_name_ns({name: name, depth: depth, namespace: new abap.types.Character(0).set('')})));
|
|
857
|
+
return element;
|
|
858
|
+
}
|
|
859
|
+
async if_ixml_document$find_from_path(INPUT) {
|
|
860
|
+
let val = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
861
|
+
let path = new abap.types.String({qualifiedName: "STRING"});
|
|
862
|
+
if (INPUT && INPUT.path) {path.set(INPUT.path);}
|
|
863
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
864
|
+
return val;
|
|
865
|
+
}
|
|
866
|
+
async if_ixml_document$get_elements_by_tag_name_ns(INPUT) {
|
|
867
|
+
let val = new abap.types.Character(4);
|
|
868
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
869
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
870
|
+
let namespace = new abap.types.String({qualifiedName: "STRING"});
|
|
871
|
+
if (INPUT && INPUT.namespace) {namespace.set(INPUT.namespace);}
|
|
872
|
+
let uri = new abap.types.String({qualifiedName: "STRING"});
|
|
873
|
+
if (INPUT && INPUT.uri) {uri.set(INPUT.uri);}
|
|
874
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
875
|
+
return val;
|
|
876
|
+
}
|
|
877
|
+
async if_ixml_document$get_elements_by_tag_name(INPUT) {
|
|
878
|
+
let val = new abap.types.Character(4);
|
|
879
|
+
let depth = new abap.types.Integer({qualifiedName: "I"});
|
|
880
|
+
if (INPUT && INPUT.depth) {depth.set(INPUT.depth);}
|
|
881
|
+
let name = new abap.types.String({qualifiedName: "STRING"});
|
|
882
|
+
if (INPUT && INPUT.name) {name.set(INPUT.name);}
|
|
883
|
+
let namespace = new abap.types.String({qualifiedName: "STRING"});
|
|
884
|
+
if (INPUT && INPUT.namespace) {namespace.set(INPUT.namespace);}
|
|
885
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
886
|
+
return val;
|
|
887
|
+
}
|
|
888
|
+
async if_ixml_document$get_root() {
|
|
889
|
+
let node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
890
|
+
node.set(this.mi_node);
|
|
891
|
+
return node;
|
|
892
|
+
}
|
|
893
|
+
async if_ixml_document$get_root_element() {
|
|
894
|
+
let root = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
895
|
+
root.set(this.mi_node);
|
|
896
|
+
return root;
|
|
897
|
+
}
|
|
898
|
+
}
|
|
899
|
+
abap.Classes['CLAS-CL_IXML-LCL_DOCUMENT'] = lcl_document;
|
|
900
|
+
class lcl_renderer {
|
|
901
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
902
|
+
static IMPLEMENTED_INTERFACES = ["IF_IXML_RENDERER"];
|
|
903
|
+
async constructor_(INPUT) {
|
|
904
|
+
this.me = new abap.types.ABAPObject();
|
|
905
|
+
this.me.set(this);
|
|
906
|
+
this.mi_ostream = new abap.types.ABAPObject({qualifiedName: "IF_IXML_OSTREAM"});
|
|
907
|
+
this.mi_document = new abap.types.ABAPObject({qualifiedName: "IF_IXML_DOCUMENT"});
|
|
908
|
+
let ostream = new abap.types.ABAPObject({qualifiedName: "IF_IXML_OSTREAM"});
|
|
909
|
+
if (INPUT && INPUT.ostream) {ostream.set(INPUT.ostream);}
|
|
910
|
+
let document = new abap.types.ABAPObject({qualifiedName: "IF_IXML_DOCUMENT"});
|
|
911
|
+
if (INPUT && INPUT.document) {document.set(INPUT.document);}
|
|
912
|
+
this.mi_ostream.set(ostream);
|
|
913
|
+
this.mi_document.set(document);
|
|
914
|
+
return this;
|
|
915
|
+
}
|
|
916
|
+
async if_ixml_renderer$render() {
|
|
917
|
+
let li_root = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
918
|
+
let li_element = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ELEMENT"});
|
|
919
|
+
let li_children = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_LIST"});
|
|
920
|
+
let li_iterator = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE_ITERATOR"});
|
|
921
|
+
li_root.set((await this.mi_document.get().if_ixml_document$get_root_element()));
|
|
922
|
+
li_children.set((await li_root.get().if_ixml_element$get_children()));
|
|
923
|
+
li_iterator.set((await li_children.get().if_ixml_node_list$create_iterator()));
|
|
924
|
+
const indexBackup1 = abap.builtin.sy.get().index.get();
|
|
925
|
+
let unique29 = 1;
|
|
926
|
+
while (true) {
|
|
927
|
+
abap.builtin.sy.get().index.set(unique29++);
|
|
928
|
+
await abap.statements.cast(li_element, (await li_iterator.get().if_ixml_node_iterator$get_next()));
|
|
929
|
+
if (abap.compare.initial(li_element)) {
|
|
930
|
+
break;
|
|
931
|
+
}
|
|
932
|
+
await li_element.get().if_ixml_element$render({ostream: this.mi_ostream});
|
|
933
|
+
}
|
|
934
|
+
abap.builtin.sy.get().index.set(indexBackup1);
|
|
935
|
+
}
|
|
936
|
+
async if_ixml_renderer$set_normalizing(INPUT) {
|
|
937
|
+
let normal = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
|
|
938
|
+
if (INPUT && INPUT.normal) {normal = INPUT.normal;}
|
|
939
|
+
return;
|
|
940
|
+
}
|
|
941
|
+
}
|
|
942
|
+
abap.Classes['CLAS-CL_IXML-LCL_RENDERER'] = lcl_renderer;
|
|
943
|
+
class lcl_ostream {
|
|
944
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
945
|
+
static IMPLEMENTED_INTERFACES = ["IF_IXML_OSTREAM"];
|
|
946
|
+
async constructor_(INPUT) {
|
|
947
|
+
this.me = new abap.types.ABAPObject();
|
|
948
|
+
this.me.set(this);
|
|
949
|
+
this.mv_string = new abap.types.String({qualifiedName: "STRING"});
|
|
950
|
+
return this;
|
|
951
|
+
}
|
|
952
|
+
async if_ixml_ostream$write_string(INPUT) {
|
|
953
|
+
let rval = new abap.types.Integer({qualifiedName: "I"});
|
|
954
|
+
let string = new abap.types.String({qualifiedName: "STRING"});
|
|
955
|
+
if (INPUT && INPUT.string) {string.set(INPUT.string);}
|
|
956
|
+
this.mv_string.set(abap.operators.concat(this.mv_string,string));
|
|
957
|
+
return rval;
|
|
958
|
+
}
|
|
959
|
+
}
|
|
960
|
+
abap.Classes['CLAS-CL_IXML-LCL_OSTREAM'] = lcl_ostream;
|
|
961
|
+
class lcl_istream {
|
|
962
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
963
|
+
static IMPLEMENTED_INTERFACES = ["IF_IXML_ISTREAM"];
|
|
964
|
+
async constructor_(INPUT) {
|
|
965
|
+
this.me = new abap.types.ABAPObject();
|
|
966
|
+
this.me.set(this);
|
|
967
|
+
this.mv_xml = new abap.types.String({qualifiedName: "STRING"});
|
|
968
|
+
let iv_xml = new abap.types.String({qualifiedName: "STRING"});
|
|
969
|
+
if (INPUT && INPUT.iv_xml) {iv_xml.set(INPUT.iv_xml);}
|
|
970
|
+
this.mv_xml.set(iv_xml);
|
|
971
|
+
return this;
|
|
972
|
+
}
|
|
973
|
+
async if_ixml_istream$close() {
|
|
974
|
+
return;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
abap.Classes['CLAS-CL_IXML-LCL_ISTREAM'] = lcl_istream;
|
|
978
|
+
class lcl_stream_factory {
|
|
979
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
980
|
+
static IMPLEMENTED_INTERFACES = ["IF_IXML_STREAM_FACTORY"];
|
|
981
|
+
async constructor_(INPUT) {
|
|
982
|
+
this.me = new abap.types.ABAPObject();
|
|
983
|
+
this.me.set(this);
|
|
984
|
+
return this;
|
|
985
|
+
}
|
|
986
|
+
async if_ixml_stream_factory$create_ostream_cstring(INPUT) {
|
|
987
|
+
let stream = new abap.types.ABAPObject({qualifiedName: "IF_IXML_OSTREAM"});
|
|
988
|
+
let string = new abap.types.String({qualifiedName: "STRING"});
|
|
989
|
+
if (INPUT && INPUT.string) {string.set(INPUT.string);}
|
|
990
|
+
stream.set(await (new abap.Classes['CLAS-CL_IXML-LCL_OSTREAM']()).constructor_());
|
|
991
|
+
stream.get().mv_string = INPUT.string;
|
|
992
|
+
await stream.get().if_ixml_ostream$write_string({string: new abap.types.Character(39).set('<?xml version="1.0" encoding="utf-16"?>')});
|
|
993
|
+
return stream;
|
|
994
|
+
}
|
|
995
|
+
async if_ixml_stream_factory$create_ostream_xstring(INPUT) {
|
|
996
|
+
let stream = new abap.types.ABAPObject({qualifiedName: "IF_IXML_OSTREAM"});
|
|
997
|
+
let string = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
998
|
+
if (INPUT && INPUT.string) {string.set(INPUT.string);}
|
|
999
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
1000
|
+
return stream;
|
|
1001
|
+
}
|
|
1002
|
+
async if_ixml_stream_factory$create_istream_xstring(INPUT) {
|
|
1003
|
+
let stream = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ISTREAM"});
|
|
1004
|
+
let xml = new abap.types.XString({qualifiedName: "XSTRING"});
|
|
1005
|
+
if (INPUT && INPUT.xml) {xml.set(INPUT.xml);}
|
|
1006
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
1007
|
+
return stream;
|
|
1008
|
+
}
|
|
1009
|
+
async if_ixml_stream_factory$create_istream_string(INPUT) {
|
|
1010
|
+
let stream = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ISTREAM"});
|
|
1011
|
+
let xml = new abap.types.String({qualifiedName: "STRING"});
|
|
1012
|
+
if (INPUT && INPUT.xml) {xml.set(INPUT.xml);}
|
|
1013
|
+
stream.set(await (new abap.Classes['CLAS-CL_IXML-LCL_ISTREAM']()).constructor_({iv_xml: xml}));
|
|
1014
|
+
return stream;
|
|
1015
|
+
}
|
|
1016
|
+
}
|
|
1017
|
+
abap.Classes['CLAS-CL_IXML-LCL_STREAM_FACTORY'] = lcl_stream_factory;
|
|
1018
|
+
class lcl_parser {
|
|
1019
|
+
static INTERNAL_TYPE = 'CLAS';
|
|
1020
|
+
static IMPLEMENTED_INTERFACES = ["IF_IXML_PARSER"];
|
|
1021
|
+
async constructor_(INPUT) {
|
|
1022
|
+
this.me = new abap.types.ABAPObject();
|
|
1023
|
+
this.me.set(this);
|
|
1024
|
+
this.mi_istream = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ISTREAM"});
|
|
1025
|
+
this.mi_document = new abap.types.ABAPObject({qualifiedName: "IF_IXML_DOCUMENT"});
|
|
1026
|
+
this.lc_regex_tag = lcl_parser.lc_regex_tag;
|
|
1027
|
+
this.lc_regex_attr = lcl_parser.lc_regex_attr;
|
|
1028
|
+
let istream = new abap.types.ABAPObject({qualifiedName: "IF_IXML_ISTREAM"});
|
|
1029
|
+
if (INPUT && INPUT.istream) {istream.set(INPUT.istream);}
|
|
1030
|
+
let document = new abap.types.ABAPObject({qualifiedName: "IF_IXML_DOCUMENT"});
|
|
1031
|
+
if (INPUT && INPUT.document) {document.set(INPUT.document);}
|
|
1032
|
+
this.mi_istream.set(istream);
|
|
1033
|
+
this.mi_document.set(document);
|
|
1034
|
+
return this;
|
|
1035
|
+
}
|
|
1036
|
+
async if_ixml_parser$set_validating(INPUT) {
|
|
1037
|
+
let rval = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
|
|
1038
|
+
let mode = new abap.types.Integer({qualifiedName: "I"});
|
|
1039
|
+
if (INPUT && INPUT.mode) {mode.set(INPUT.mode);}
|
|
1040
|
+
abap.statements.assert(abap.compare.eq(new abap.types.Integer().set(1), new abap.types.Character(4).set('todo')));
|
|
1041
|
+
return rval;
|
|
1042
|
+
}
|
|
1043
|
+
async if_ixml_parser$parse() {
|
|
1044
|
+
let subrc = new abap.types.Integer({qualifiedName: "I"});
|
|
1045
|
+
let lv_xml = new abap.types.String({qualifiedName: "STRING"});
|
|
1046
|
+
let lv_offset = new abap.types.Integer({qualifiedName: "I"});
|
|
1047
|
+
let lv_value = new abap.types.String({qualifiedName: "STRING"});
|
|
1048
|
+
let lv_name = new abap.types.String({qualifiedName: "STRING"});
|
|
1049
|
+
let lv_namespace = new abap.types.String({qualifiedName: "STRING"});
|
|
1050
|
+
let ls_match = new abap.types.Structure({"line": new abap.types.Integer(), "offset": new abap.types.Integer(), "length": new abap.types.Integer(), "submatches": new abap.types.Table(new abap.types.Structure({"offset": new abap.types.Integer(), "length": new abap.types.Integer()}, "SUBMATCH_RESULT"), {"withHeader":false}, "SUBMATCH_RESULT_TAB")}, "MATCH_RESULT");
|
|
1051
|
+
let ls_submatch = new abap.types.Structure({"offset": new abap.types.Integer(), "length": new abap.types.Integer()}, "SUBMATCH_RESULT");
|
|
1052
|
+
let lo_parent = new abap.types.ABAPObject({qualifiedName: "LCL_NODE"});
|
|
1053
|
+
let lo_node = new abap.types.ABAPObject({qualifiedName: "LCL_NODE"});
|
|
1054
|
+
await abap.statements.cast(lo_parent, (await this.mi_document.get().if_ixml_document$get_root()));
|
|
1055
|
+
lv_xml.set(this.mi_istream.get().mv_xml);
|
|
1056
|
+
abap.statements.replace({target: lv_xml, all: true, with: new abap.types.String().set(``), of: new abap.types.String().set(`\n`)});
|
|
1057
|
+
const indexBackup1 = abap.builtin.sy.get().index.get();
|
|
1058
|
+
let unique30 = 1;
|
|
1059
|
+
while (abap.compare.initial(lv_xml) === false) {
|
|
1060
|
+
abap.builtin.sy.get().index.set(unique30++);
|
|
1061
|
+
abap.statements.clear(lo_node);
|
|
1062
|
+
if (abap.compare.cp(lv_xml, new abap.types.Character(7).set('<?xml *'))) {
|
|
1063
|
+
abap.statements.find(lv_xml, {find: new abap.types.Character(2).set('?>'), first: true, offset: lv_offset});
|
|
1064
|
+
abap.statements.assert(abap.compare.gt(lv_offset, new abap.types.Integer().set(0)));
|
|
1065
|
+
lv_offset.set(abap.operators.add(lv_offset,new abap.types.Integer().set(2)));
|
|
1066
|
+
} else if (abap.compare.cp(lv_xml, new abap.types.Character(2).set('<*'))) {
|
|
1067
|
+
abap.statements.find(lv_xml, {regex: lcl_parser.lc_regex_tag, first: true, results: ls_match});
|
|
1068
|
+
abap.statements.assert(abap.compare.eq(ls_match.get().offset, new abap.types.Integer().set(0)));
|
|
1069
|
+
abap.statements.readTable(ls_match.get().submatches,{index: new abap.types.Integer().set(1),into: ls_submatch});
|
|
1070
|
+
abap.statements.assert(abap.compare.eq(abap.builtin.sy.get().subrc, new abap.types.Integer().set(0)));
|
|
1071
|
+
lv_name.set(lv_xml.getOffset({offset: ls_submatch.get().offset, length: ls_submatch.get().length}));
|
|
1072
|
+
if (abap.compare.cp(lv_xml, new abap.types.Character(3).set('</*'))) {
|
|
1073
|
+
await abap.statements.cast(lo_parent, (await lo_parent.get().if_ixml_node$get_parent()));
|
|
1074
|
+
} else {
|
|
1075
|
+
lo_node.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NODE']()).constructor_({ii_parent: lo_parent}));
|
|
1076
|
+
if (abap.compare.ca(lv_name, new abap.types.Character(1).set(':'))) {
|
|
1077
|
+
abap.statements.split({source: lv_name, at: new abap.types.Character(1).set(':'), targets: [lv_namespace,lv_name]});
|
|
1078
|
+
await lo_node.get().if_ixml_node$set_namespace_prefix({val: lv_namespace});
|
|
1079
|
+
}
|
|
1080
|
+
await lo_node.get().if_ixml_node$set_name({name: lv_name});
|
|
1081
|
+
lo_parent.set(lo_node);
|
|
1082
|
+
}
|
|
1083
|
+
await this.parse_attributes({ii_node: lo_node, iv_xml: lv_xml, is_match: ls_match});
|
|
1084
|
+
lv_offset.set(ls_match.get().length);
|
|
1085
|
+
} else {
|
|
1086
|
+
abap.statements.find(lv_xml, {find: new abap.types.Character(1).set('<'), first: true, offset: lv_offset});
|
|
1087
|
+
lv_value.set(lv_xml.getOffset({length: lv_offset}));
|
|
1088
|
+
lo_node.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NODE']()).constructor_({ii_parent: lo_parent}));
|
|
1089
|
+
await lo_node.get().if_ixml_node$set_name({name: new abap.types.Character(5).set('#text')});
|
|
1090
|
+
await lo_node.get().if_ixml_node$set_value({value: (await abap.Classes['CLAS-CL_IXML-LCL_ESCAPE'].unescape_value({iv_value: lv_value}))});
|
|
1091
|
+
}
|
|
1092
|
+
lv_xml.set(lv_xml.getOffset({offset: lv_offset}));
|
|
1093
|
+
abap.statements.condense(lv_xml, {nogaps: false});
|
|
1094
|
+
}
|
|
1095
|
+
abap.builtin.sy.get().index.set(indexBackup1);
|
|
1096
|
+
return subrc;
|
|
1097
|
+
}
|
|
1098
|
+
async parse_attributes(INPUT) {
|
|
1099
|
+
let ii_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
1100
|
+
if (INPUT && INPUT.ii_node) {ii_node.set(INPUT.ii_node);}
|
|
1101
|
+
let iv_xml = new abap.types.String({qualifiedName: "STRING"});
|
|
1102
|
+
if (INPUT && INPUT.iv_xml) {iv_xml.set(INPUT.iv_xml);}
|
|
1103
|
+
let is_match = new abap.types.Structure({"line": new abap.types.Integer(), "offset": new abap.types.Integer(), "length": new abap.types.Integer(), "submatches": new abap.types.Table(new abap.types.Structure({"offset": new abap.types.Integer(), "length": new abap.types.Integer()}, "SUBMATCH_RESULT"), {"withHeader":false}, "SUBMATCH_RESULT_TAB")}, "MATCH_RESULT");
|
|
1104
|
+
if (INPUT && INPUT.is_match) {is_match.set(INPUT.is_match);}
|
|
1105
|
+
let ls_submatch = new abap.types.Structure({"offset": new abap.types.Integer(), "length": new abap.types.Integer()}, "SUBMATCH_RESULT");
|
|
1106
|
+
let lv_name = new abap.types.String({qualifiedName: "STRING"});
|
|
1107
|
+
let lv_value = new abap.types.String({qualifiedName: "STRING"});
|
|
1108
|
+
let lv_xml = new abap.types.String({qualifiedName: "STRING"});
|
|
1109
|
+
let li_node = new abap.types.ABAPObject({qualifiedName: "IF_IXML_NODE"});
|
|
1110
|
+
let lv_offset = new abap.types.Integer({qualifiedName: "I"});
|
|
1111
|
+
let lv_length = new abap.types.Integer({qualifiedName: "I"});
|
|
1112
|
+
if (abap.compare.eq(abap.builtin.lines({val: is_match.get().submatches}), new abap.types.Integer().set(1))) {
|
|
1113
|
+
return;
|
|
1114
|
+
}
|
|
1115
|
+
lv_xml.set(iv_xml.getOffset({length: is_match.get().length}));
|
|
1116
|
+
const indexBackup1 = abap.builtin.sy.get().index.get();
|
|
1117
|
+
let unique31 = 1;
|
|
1118
|
+
while (true) {
|
|
1119
|
+
abap.builtin.sy.get().index.set(unique31++);
|
|
1120
|
+
abap.statements.find(lv_xml, {regex: lcl_parser.lc_regex_attr, first: true, offset: lv_offset, length: lv_length, submatches: [lv_name,lv_value]});
|
|
1121
|
+
if (abap.compare.ne(abap.builtin.sy.get().subrc, new abap.types.Integer().set(0))) {
|
|
1122
|
+
abap.builtin.sy.get().index.set(indexBackup1);
|
|
1123
|
+
return;
|
|
1124
|
+
}
|
|
1125
|
+
li_node.set(await (new abap.Classes['CLAS-CL_IXML-LCL_NODE']()).constructor_());
|
|
1126
|
+
await li_node.get().if_ixml_node$set_name({name: lv_name});
|
|
1127
|
+
await li_node.get().if_ixml_node$set_value({value: lv_value});
|
|
1128
|
+
await (await ii_node.get().if_ixml_node$get_attributes()).get().if_ixml_named_node_map$set_named_item_ns({node: li_node});
|
|
1129
|
+
lv_offset.set(abap.operators.add(lv_offset,lv_length));
|
|
1130
|
+
lv_xml.set(lv_xml.getOffset({offset: lv_offset}));
|
|
1131
|
+
}
|
|
1132
|
+
abap.builtin.sy.get().index.set(indexBackup1);
|
|
1133
|
+
}
|
|
1134
|
+
async if_ixml_parser$set_normalizing(INPUT) {
|
|
1135
|
+
let normal = new abap.types.Character(1, {"qualifiedName":"ABAP_BOOL","ddicName":"ABAP_BOOL"});
|
|
1136
|
+
if (INPUT && INPUT.normal) {normal = INPUT.normal;}
|
|
1137
|
+
return;
|
|
1138
|
+
}
|
|
1139
|
+
async if_ixml_parser$num_errors() {
|
|
1140
|
+
let errors = new abap.types.Integer({qualifiedName: "I"});
|
|
1141
|
+
return errors;
|
|
1142
|
+
return errors;
|
|
1143
|
+
}
|
|
1144
|
+
async if_ixml_parser$add_strip_space_element() {
|
|
1145
|
+
return;
|
|
1146
|
+
}
|
|
1147
|
+
async if_ixml_parser$get_error(INPUT) {
|
|
1148
|
+
let error = new abap.types.ABAPObject({qualifiedName: "IF_IXML_PARSE_ERROR"});
|
|
1149
|
+
let index = new abap.types.Integer({qualifiedName: "I"});
|
|
1150
|
+
if (INPUT && INPUT.index) {index.set(INPUT.index);}
|
|
1151
|
+
return error;
|
|
1152
|
+
return error;
|
|
1153
|
+
}
|
|
1154
|
+
}
|
|
1155
|
+
abap.Classes['CLAS-CL_IXML-LCL_PARSER'] = lcl_parser;
|
|
1156
|
+
lcl_parser.lc_regex_tag = new abap.types.String({qualifiedName: "STRING"});
|
|
1157
|
+
lcl_parser.lc_regex_tag.set('<\\/?([\\w:]+)( [\\w:]+="[\\w\\.:\\/]+")*>');
|
|
1158
|
+
lcl_parser.lc_regex_attr = new abap.types.String({qualifiedName: "STRING"});
|
|
1159
|
+
lcl_parser.lc_regex_attr.set('([\\w:]+)="([\\w\\.:\\/]+)"');
|
|
1160
|
+
export {lcl_escape, lcl_node_iterator, lcl_encoding, lcl_named_node_map, lcl_node_list, lcl_node, lcl_document, lcl_renderer, lcl_ostream, lcl_istream, lcl_stream_factory, lcl_parser};
|
|
1161
|
+
//# sourceMappingURL=cl_ixml.clas.locals.mjs.map
|