abap2xlsx/src/zcl_excel_ranges.clas.abap
Stefan Rutzmoser 1c276c6027
Fix package errors (#708)
* Fix package check errors

* Bump version number to 7.2.0
2020-11-10 18:21:38 +01:00

89 lines
1.5 KiB
ABAP

class ZCL_EXCEL_RANGES definition
public
final
create public .
*"* public components of class ZCL_EXCEL_RANGES
*"* do not include other source files here!!!
public section.
methods ADD
importing
!IP_RANGE type ref to ZCL_EXCEL_RANGE .
methods CLEAR .
methods CONSTRUCTOR .
methods GET
importing
!IP_INDEX type I
returning
value(EO_RANGE) type ref to ZCL_EXCEL_RANGE .
methods GET_ITERATOR
returning
value(EO_ITERATOR) type ref to CL_OBJECT_COLLECTION_ITERATOR .
methods IS_EMPTY
returning
value(IS_EMPTY) type FLAG .
methods REMOVE
importing
!IP_RANGE type ref to ZCL_EXCEL_RANGE .
methods SIZE
returning
value(EP_SIZE) type I .
*"* protected components of class ZABAP_EXCEL_WORKSHEETS
*"* do not include other source files here!!!
protected section.
*"* private components of class ZABAP_EXCEL_RANGES
*"* do not include other source files here!!!
private section.
data RANGES type ref to CL_OBJECT_COLLECTION .
ENDCLASS.
CLASS ZCL_EXCEL_RANGES IMPLEMENTATION.
method ADD.
ranges->add( ip_range ).
endmethod.
method CLEAR.
ranges->clear( ).
endmethod.
method CONSTRUCTOR.
CREATE OBJECT ranges.
endmethod.
method GET.
eo_range ?= ranges->get( ip_index ).
endmethod.
method GET_ITERATOR.
eo_iterator ?= ranges->get_iterator( ).
endmethod.
method IS_EMPTY.
is_empty = ranges->is_empty( ).
endmethod.
method REMOVE.
ranges->remove( ip_range ).
endmethod.
method SIZE.
ep_size = ranges->size( ).
endmethod.
ENDCLASS.