Anfang des Inhaltsbereichs

HintergrunddokumentationHintergrunddokumentation Interface if_ixml_node_list  Dokument im Navigationsbaum lokalisieren

The iXMLNodeList interface provides the abstraction of an ordered collection of nodes, without defining or constraining how this collection is implemented.

The items in the iXMLNodeList are accessible via an index, starting from 0.

specializes

enumerations

methods

 

 

method create_iterator

Creates a new node iterator which traverses this node list from left to right (forward, index 0 to index getLength()-1).

interface

if_ixml_node_list

return value

Returns an interface pointer to the new iterator, or null if an error occured.

abap signature

method create_iterator

returning

value(rval) type ref to if_ixml_node_iterator.

 

 

method create_iterator_filtered

Creates a new node iterator which traverses this node list from left to right (forward, index 0 to index getLength()-1). The iterator only returns nodes in the list that are accepted by the given node filter.

interface

if_ixml_node_list

parameters

filter

The (optional) node filter to match the nodes against.

return value

Returns an interface pointer to the new iterator, or null if an error occured.

abap signature

method create_iterator_filtered

importing

filter type ref to if_ixml_node_filter

returning

value(rval) type ref to if_ixml_node_iterator.

 

 

method create_rev_iterator

Creates a new node reverse iterator which traverses this node list from right to left (reverse, index getLength()-1 to index 0).

interface

if_ixml_node_list

return value

Returns an interface pointer to the new iterator, or null if an error occured.

abap signature

method create_rev_iterator

returning

value(rval) type ref to if_ixml_node_iterator.

 

 

method create_rev_iterator_filtered

Creates a new node reverse iterator which traverses this node list from right to left (reverse, index getLength()-1 to index 0). The iterator only returns nodes in the list that are accepted by the given node filter.

interface

if_ixml_node_list

parameters

filter

The (optional) node filter to match the nodes against.

return value

Returns an interface pointer to the new iterator, or null if an error occured.

abap signature

method create_rev_iterator_filtered

importing

filter type ref to if_ixml_node_filter

returning

value(rval) type ref to if_ixml_node_iterator.

 

 

method get_item

This method returns a pointer to the node with the given index from the iXMLNodeList. Indices range from 0 to iXMLNodeList::getLength()-1.

interface

if_ixml_node_list

parameters

index

The index of the node to return.

return value

Returns a pointer to the specified node or null if index exceeds the range of valid indices.

abap signature

method get_item

importing

index type I

returning

value(rval) type ref to if_ixml_node.

 

 

method get_length

Returns the number of nodes in this iXMLNodeList.

interface

if_ixml_node_list

return value

Returns the number of nodes in this iXMLNodeList.

abap signature

method get_length

returning

value(rval) type I.

 

 

method query_interface

Queries the specified interface.

interface

if_ixml_node_list

parameters

iid

The interface ID of the interface to query.

return value

Returns a reference to the queried interface or null if no such interface is supported.

abap signature

method query_interface

importing

iid type I

returning

value(rval) type I.