SAP ABAP Class CL_ESH_IF_INA_JSON_WRITER (JSON-renderer (flexble, easy, fast))
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-EIM-ESH (Application Component) NetWeaver Enterprise Search
⤷
S_ESH_ENG_INTERFACE_INA (Package) Enterprise Search: InA-Interface

⤷

⤷

Properties
Class | CL_ESH_IF_INA_JSON_WRITER | |
Short Description | JSON-renderer (flexble, easy, fast) | |
Super Class | ||
Instantiability of a Class | 2 | Public |
Final |
General Data
Message Class | ESH_IF_INA_JSON | |
Program status | ||
Category | 0 | |
Package | S_ESH_ENG_INTERFACE_INA | Enterprise Search: InA-Interface |
Created | 20121112 | SAP |
Last change | 20141121 | |
Shared Memory-enabled | ||
Fixed point arithmetic | ||
Unicode checks active |
Forward declarations
# | Type group / Object type | Type | Type Description |
---|---|---|---|
1 | ![]() |
Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_ESH_IF_INA_JSON_WRITER has no interface implemented.
Friends
Class CL_ESH_IF_INA_JSON_WRITER has no friend class.
Attributes
# | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20130821 | |||
2 | ![]() |
Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20130213 | |||
3 | ![]() |
Instance attribute | Private | Type reference (TYPE) | STRING | 20121112 | |||
4 | ![]() |
Instance attribute | Private | Type reference (TYPE) | INT4 | Natural number | 20121112 | ||
5 | ![]() |
Instance attribute | Private | Type reference (TYPE) | INT4 | Natural number | 20121112 | ||
6 | ![]() |
Instance attribute | Private | Type reference (TYPE) | STRING | 20121112 | |||
7 | ![]() |
Instance attribute | Private | Type reference (TYPE) | STRING | 20130213 | |||
8 | ![]() |
Instance attribute | Private | Type reference (TYPE) | STRING | 20130213 | |||
9 | ![]() |
Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20130213 | |||
10 | ![]() |
Constant | Public | Type reference (TYPE) | STRING | 'array' | 20130212 | ||
11 | ![]() |
Constant | Private | Type reference (TYPE) | STRING | 'arr.close' | 20121112 | ||
12 | ![]() |
Constant | Public | Type reference (TYPE) | STRING | 'bool' | 20130212 | ||
13 | ![]() |
Constant | Public | Type reference (TYPE) | ESH_E_IF_INA_SSTRING | 'false' | short string | 20130212 | |
14 | ![]() |
Constant | Public | Type reference (TYPE) | STRING | 'num' | 20130212 | ||
15 | ![]() |
Constant | Public | Type reference (TYPE) | STRING | 'object' | 20130212 | ||
16 | ![]() |
Constant | Private | Type reference (TYPE) | STRING | 'obj.close' | 20121112 | ||
17 | ![]() |
Constant | Public | Type reference (TYPE) | STRING | 'str' | 20130212 | ||
18 | ![]() |
Constant | Public | Type reference (TYPE) | ESH_E_IF_INA_SSTRING | 'true' | short string | 20130212 |
Methods
# | Method | Level | Visibility | Method type | Description | Created on |
---|---|---|---|---|---|---|
1 | ![]() |
Instance method | Public | Method | Close Object or Array | 20121112 |
2 | ![]() |
Instance method | Public | Constructor | CONSTRUCTOR | 20130213 |
3 | ![]() |
Instance method | Public | Method | Discard document | 20130208 |
4 | ![]() |
Instance method | Public | Method | Get document as (x)string | 20121112 |
5 | ![]() |
Instance method | Public | Method | Get logged document structure | 20130213 |
6 | ![]() |
Instance method | Public | Method | Insert closed document into current document | 20130208 |
7 | ![]() |
Instance method | Public | Method | Write Object, Array, String, Boolean, Number | 20121112 |
Events
Class CL_ESH_IF_INA_JSON_WRITER has no event.
Types
Class CL_ESH_IF_INA_JSON_WRITER has no local type.
Method Signatures
Method CLOSE_ELEMENT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_IS_ARRAY | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Close array (otherwise object is closed) | 20121112 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
ES-InA-Adapter: Errors | 20121112 |
Method CONSTRUCTOR Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IV_ACCEPT_ABAP_BOOL | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Accept X/ ' ' instead of true/ false | 20130821 | |
2 | ![]() |
IV_CHECKS_ON | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Early exception instead of invalid JSON | 20130213 | |
3 | ![]() |
IV_STRUCTURE_LOG_ON | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Document structure can be used e.g. for error analysis | 20130213 |
Method CONSTRUCTOR on class CL_ESH_IF_INA_JSON_WRITER has no exception.
Method DISCARD_JSON_STREAM Signature
Method DISCARD_JSON_STREAM on class CL_ESH_IF_INA_JSON_WRITER has no parameter.
Method DISCARD_JSON_STREAM on class CL_ESH_IF_INA_JSON_WRITER has no exception.
Method GET_JSON_STREAM Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
EV_STRING | Call by reference | Type reference (TYPE) | STRING | 20121113 | |||
2 | ![]() |
EV_XSTRING | Call by reference | Type reference (TYPE) | XSTRING | 20121113 | |||
3 | ![]() |
IV_CHECK_CLOSURE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_TRUE | Return only closed JSON document | 20130208 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
ES-InA-Adapter: Errors | 20121112 |
Method GET_STRUCTURE_LOG Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
EV_OPEN_ARRAYS | Call by reference | Type reference (TYPE) | INT4 | Number of open arrays | 20130213 | ||
2 | ![]() |
EV_OPEN_OBJECTS | Call by reference | Type reference (TYPE) | INT4 | Number of open objects | 20130213 | ||
3 | ![]() |
EV_STRUCTURE_LOG | Call by reference | Type reference (TYPE) | STRING | Structure (objects and arrrays) | 20130213 | ||
4 | ![]() |
IV_COLLAPSE | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | Collapse structure: remove all closed sections | 20130213 |
Method GET_STRUCTURE_LOG on class CL_ESH_IF_INA_JSON_WRITER has no exception.
Method INSERT_JSON Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
IR_JSON_WRITER | Call by reference | Object reference (TYPE REF TO) | CL_ESH_IF_INA_JSON_WRITER | Instance with closed JSON document | 20130208 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
ES-InA-Adapter: Errors | 20130208 |
Method WRITE_ELEMENT Signature
# | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
---|---|---|---|---|---|---|---|---|---|
1 | ![]() |
NAME | Call by reference | Type reference (TYPE) | STRING | Free tag name | 20121112 | ||
2 | ![]() |
STRING_IS_NUMBER | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | String contains a plain number | 20130226 | |
3 | ![]() |
TYPE | Call by reference | Type reference (TYPE) | STRING | [sc_arr; sc_bol; sc_num; sc_obj; sc_str] | 20121112 | ||
4 | ![]() |
VALUE | Call by reference | Type reference (TYPE) | STRING | Tag value; sc_bol: [sc_true; sc_false]; sc_arr/sc_obj: empty | 20121112 |
# | Exception | Resumable | Description | Created on |
---|---|---|---|---|
1 | ![]() |
ES-InA-Adapter: Errors | 20121112 |
History
Last changed by/on | SAP | 20141121 |
SAP Release Created in | 740 |