Anfang des Inhaltsbereichs

HintergrunddokumentationHintergrunddokumentation Interface if_ixml_node_filter_combining  Dokument im Navigationsbaum lokalisieren

Filters allow the user to "filter out" nodes. Each filter contains a user-written function that looks at a node and determines whether or not it should be filtered out. To use a filter, you create an iterator that uses the filter. The iterator applies the filter to each node, and if the filter rejects the node, the iterator skips over the node as though it were not present in the document. Filters are easy to write, since they need not know how to navigate the structure on which they operate, and they can be reused for different kinds of iterators that operate on different data structures.

specializes

enumerations

methods

 

 

method add_filter

Adds the given filter to this filter's child filter list.

interface

if_ixml_node_filter_combining

parameters

filter

The filter to add

abap signature

method add_filter

importing

filter type ref to if_ixml_node_filter.

 

 

method accept_node

This method applies this filter to the given node.

interface

if_ixml_node_filter_combining

parameters

node

The node to check to see if it passes the filter or not.

return value

Returns true if the given node passed the filter, false otherwise.

abap signature

method accept_node

importing

node type ref to if_ixml_node

returning

value(rval) type boolean.

 

 

method clone

Creates a "clone" or copy of this filter.

interface

if_ixml_node_filter_combining

return value

Returns a pointer to the copy of this filter.

abap signature

method clone

returning

value(rval) type ref to if_ixml_node_filter.

 

 

method get_type

Returns the type of this filter (see iXMLNodeFilter::FilterType).

interface

if_ixml_node_filter_combining

return value

Returns the filter's type (see iXMLNodeFilter::FilterType).

abap signature

method get_type

returning

value(rval) type I.

 

 

method query_interface

Queries the specified interface.

interface

if_ixml_node_filter_combining

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.