Skip to content

Commit 5897370

Browse files
authored
iXML scaffolding (#961)
1 parent 087ff09 commit 5897370

File tree

4 files changed

+24
-3
lines changed

4 files changed

+24
-3
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
},
1616
"license": "MIT",
1717
"dependencies": {
18-
"@abaplint/cli": "^2.113.123",
18+
"@abaplint/cli": "^2.113.125",
1919
"@abaplint/database-pg": "^2.10.24",
2020
"@abaplint/database-sqlite": "^2.10.24",
21-
"@abaplint/runtime": "^2.10.57",
22-
"@abaplint/transpiler-cli": "^2.10.57",
21+
"@abaplint/runtime": "^2.10.58",
22+
"@abaplint/transpiler-cli": "^2.10.58",
2323
"0x": "^5.8.0"
2424
}
2525
}

src/ixml/cl_ixml.clas.locals_imp.abap

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ CLASS lcl_named_node_map DEFINITION.
8888
ENDCLASS.
8989

9090
CLASS lcl_named_node_map IMPLEMENTATION.
91+
METHOD if_ixml_named_node_map~get_item.
92+
ASSERT 1 = 'todo'.
93+
ENDMETHOD.
94+
9195
METHOD if_ixml_named_node_map~create_iterator.
9296
CREATE OBJECT iterator TYPE lcl_node_iterator
9397
EXPORTING it_list = mt_list.
@@ -188,6 +192,10 @@ CLASS lcl_node DEFINITION.
188192
ENDCLASS.
189193

190194
CLASS lcl_node IMPLEMENTATION.
195+
METHOD if_ixml_node~num_children.
196+
ASSERT 1 = 'todo'.
197+
ENDMETHOD.
198+
191199
METHOD constructor.
192200
CREATE OBJECT mo_children TYPE lcl_node_list.
193201
CREATE OBJECT mi_attributes TYPE lcl_named_node_map.
@@ -604,6 +612,9 @@ CLASS lcl_document DEFINITION.
604612
ENDCLASS.
605613

606614
CLASS lcl_document IMPLEMENTATION.
615+
METHOD if_ixml_node~num_children.
616+
ASSERT 1 = 'todo'.
617+
ENDMETHOD.
607618

608619
METHOD constructor.
609620
CREATE OBJECT mi_node TYPE lcl_node.

src/ixml/if_ixml_named_node_map.intf.abap

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,10 @@ INTERFACE if_ixml_named_node_map PUBLIC.
1414
IMPORTING node TYPE REF TO if_ixml_node,
1515
remove_named_item
1616
IMPORTING name TYPE string.
17+
18+
METHODS get_item
19+
IMPORTING
20+
index TYPE i
21+
RETURNING
22+
VALUE(rval) TYPE REF TO if_ixml_node.
1723
ENDINTERFACE.

src/ixml/if_ixml_node.intf.abap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,4 +76,8 @@ INTERFACE if_ixml_node PUBLIC.
7676
METHODS clone
7777
RETURNING
7878
VALUE(rval) TYPE REF TO if_ixml_node.
79+
80+
METHODS num_children
81+
RETURNING
82+
VALUE(rval) TYPE i.
7983
ENDINTERFACE.

0 commit comments

Comments
 (0)