SAP ABAP Class CL_WDR_DATA_MODEL (Model for Component)
Hierarchy
SAP_UI (Software Component) User Interface Technology
   BC-WD-ABA-REN (Application Component) Web Dynpro ABAP Rendering
     SWDP_RUNTIME_RENDERING (Package) Web Dynpro Runtime: Rendering
Properties
Class CL_WDR_DATA_MODEL  
Short Description Model for Component    
Super Class    
Instantiability of a Class 0  Private 
Final    
General Data
Message Class    
Program status     
Category 0   
Package SWDP_RUNTIME_RENDERING   Web Dynpro Runtime: Rendering 
Created 20121025   SAP 
Last change 20141120    
Shared Memory-enabled    
Fixed point arithmetic    
Unicode checks active    
Forward declarations
# Type group / Object type Type Type Description
1 IF_WD_CONTEXT_NODE_2D Forward declaration interface (INTERFACE i DEFINITION DEF...  Forward declaration interface (INTERFACE i DEFINITION DEF...
Interfaces
Class CL_WDR_DATA_MODEL has no interface implemented.
Friends
Class CL_WDR_DATA_MODEL has no friend class.
Attributes
# Attribute Level Visibility Read only Typing Associated Type Initial Value Description Created on
1 CO_ID Constant Public Type reference (TYPE) STRING `WD_DATA_MODEL` 20130624
2 CO_ID_LOOKUP Constant Public Type reference (TYPE) STRING `WD_DATA_MODEL>` 20130625
3 CO_MODEL_SEPARATOR Constant Public Type reference (TYPE) STRING `>/` 20121218
4 MT_BOUND_ATTRIBUTES Instance attribute Protected Type reference (TYPE) TY_T_BOUND_ATTRIBUTE 20121108
5 MT_MODEL_LIST Instance attribute Private Type reference (TYPE) TY_T_MODELS 20121026
6 MT_UPDATE_QUEUE Instance attribute Private Type reference (TYPE) TY_T_UPDATE_QUEUE 20121106
7 MV_ID Instance attribute Public Type reference (TYPE) STRING 20130624
8 SO_MODEL_INSTANCE Static Attribute Private Object reference (TYPE REF TO) CL_WDR_DATA_MODEL 20130624
Methods
# Method Level Visibility Method type Description Created on
1 CONSTRUCTOR Instance method Private Constructor CONSTRUCTOR 20130624
2 GET_ATTRIBUTE_NAME_BY_PATH Instance method Private Method 20130219
3 GET_ELEMENT_BY_PATH Instance method Public Method 20121214
4 GET_INSTANCE Static method Public Method 20130624
5 GET_JSON_PATH Instance method Public Method 20121025
6 GET_MODEL_NODE Instance method Public Method 20121030
7 GET_PATH_COMPONENTS Instance method Private Method 20130219
8 ON_ATTRIBUTE_CHANGED Instance method Public Event handling method 20121106
9 ON_ATTRIBUTE_CHANGED_2D Instance method Public Event handling method 20121106
10 ON_COLLECTION_CHANGED Instance method Public Event handling method 20121106
11 ON_COLLECTION_CHANGED_2D Instance method Public Event handling method 20121114
12 ON_ELEM_ATTRIBUTE_CHANGED_2D Instance method Public Event handling method 20130212
13 ON_MODEL_RANGE_CHANGED Instance method Public Event handling method 20121105
14 ON_SELECTION_CHANGED_2D Instance method Public Event handling method 20121106
15 PATH_TO_JS_OPEN_AND_CLOSE Instance method Private Method 20121026
16 REGISTER_BINDING Instance method Public Method 20121030
17 RENDER_UPDATE Instance method Public Method 20121031
18 SERIALIZE_NODE_TO_JSON Instance method Public Method 20121031
19 UNREGISTER_BINDINGS Instance method Public Method 20121030
20 UPDATE_ATTRIBUTE Instance method Public Method 20130219
21 UPDATE_GRID_SELECTION Instance method Public Method 20130515
22 _DETERMINE_UPDATE Instance method Private Method 20121108
23 _GET_ABSOLUTE_MODEL_PATH Instance method Private Method 20130625
24 _GET_RELATIVE_MODEL_PATH Instance method Private Method 20130625
25 _PREV_NODE_NAME Instance method Private Method 20121031
26 _VALIDATE_JSON Instance method Private Method 20130204
27 _VALIDATE_MODEL_LIST Instance method Private Method 20121212
Events
Class CL_WDR_DATA_MODEL has no event.
Types
# Type Visibility Typing Associated Type Description Created on Type Source
1 TY_S_BOUND_ATTRIBUTE Public See coding 20121030 begin of ty_s_bound_attribute, "! component usage name component_usage type string, "! context node name node_name type string, "! parent context node name parent_node_name type string, "! attribute name attribute_name type string, "! owner of binding owner type ref to object, "! node as reference node type ref to if_wd_context_node, "! model path model_path type string, "! binding options options type cl_wdr_data_model_manager=>s_binding_options, end of ty_s_bound_attribute
2 TY_S_MODEL Private See coding 20121026 begin of ty_s_model, "! component component type ref to cl_wdr_client_component, "! controller controller type ref to if_wd_controller, "! mapped controller mapped_controller type ref to if_wd_controller, "! context node context_node type ref to if_wd_context_node, "! model node model type ref to cl_wdr_data_model_node, "! component usage name component_usage_id type string, "! context node name node_name type string, "! model node json path model_path type string, "! context node path path type string, "! buffered data string in JSON notation data type string, "! buffered default data string in JSON notation default_data type string, "! indicator if defaults have been send default_data_send type abap_bool, end of ty_s_model
3 TY_S_MODEL_UPDATE_RESULT Public See coding 20121122 begin of ty_s_model_update_result, path type string, data type string, merge type abap_bool, end of ty_s_model_update_result
4 TY_S_UPDATE_QUEUE Private See coding 20121105 begin of ty_s_update_queue, "! context node node type ref to if_wd_context_node, "! context node path node_path type string, "! range updated yes/ no range type abap_bool, "! selection update yes/ no selection type abap_bool, "! attribute name, only used in case of single attribute updates attribute type string, "! attribute key dimension x, only used in case of single updates wd_tkey_x type wdr_ctx_node_2d_key, "! attribute key dimension y, only used in case of single updates for 2d nodes wd_tkey_y type wdr_ctx_node_2d_key, end of ty_s_update_queue
5 TY_T_BOUND_ATTRIBUTE Public See coding 20121030 ty_t_bound_attribute type sorted table of ty_s_bound_attribute with non-unique key component_usage node_name parent_node_name attribute_name
6 TY_T_MODELS Private See coding 20121026 ty_t_models type sorted TABLE OF ty_s_model with UNIQUE key component controller context_node
7 TY_T_MODEL_UPDATE_RESULT Public See coding 20121122 ty_t_model_update_result type standard table of ty_s_model_update_result with default key
8 TY_T_UPDATE_QUEUE Private See coding 20121105 ty_t_update_queue type standard table of ty_s_update_queue with default key
9 T_MODEL_UPDATE Public See coding 20121031 begin of t_model_update, "! model instance model type ref to cl_wdr_data_model, "! update action tbd type string, end of t_model_update
10 T_MODEL_UPDATE_TAB Public See coding 20121031 t_model_update_tab type standard table of t_model_update with default key
Method Signatures

Method CONSTRUCTOR Signature

Method CONSTRUCTOR on class CL_WDR_DATA_MODEL has no parameter.
Method CONSTRUCTOR on class CL_WDR_DATA_MODEL has no exception.

Method GET_ATTRIBUTE_NAME_BY_PATH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ATTRIBUTE_NAME Value transfer Type reference (TYPE) STRING 20130219
2 Importing PATH Call by reference Type reference (TYPE) STRING 20130219

Method GET_ATTRIBUTE_NAME_BY_PATH on class CL_WDR_DATA_MODEL has no exception.

Method GET_ELEMENT_BY_PATH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning ELEMENT Value transfer Object reference (TYPE REF TO) IF_WD_CONTEXT_ELEMENT 20121214
2 Importing IV_FOR_UPDATE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20130221
3 Importing PATH Call by reference Type reference (TYPE) STRING 20121214

Method GET_ELEMENT_BY_PATH on class CL_WDR_DATA_MODEL has no exception.

Method GET_INSTANCE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning RO_DATA_MODEL Value transfer Object reference (TYPE REF TO) CL_WDR_DATA_MODEL 20130624

Method GET_INSTANCE on class CL_WDR_DATA_MODEL has no exception.

Method GET_JSON_PATH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_BINDING Call by reference Object reference (TYPE REF TO) WDR_PROPERTY_BINDING 20130624
2 Importing IO_CONTEXT_ELEMENT Call by reference Object reference (TYPE REF TO) IF_WD_CONTEXT_ELEMENT Web Dynpro: Schnittstelle für ein Knotenelement 20131016
3 Importing IO_CONTEXT_NODE Call by reference Object reference (TYPE REF TO) IF_WD_CONTEXT_NODE 20121025
4 Importing IV_ABSOLUTE_PATH Call by reference Type reference (TYPE) ABAP_BOOL ABAP_TRUE 20130627
5 Importing IV_ATTRIBUTE_NAME Call by reference Type reference (TYPE) STRING 20121025
6 Importing IV_WO_ATTRIBUTE Call by reference Type reference (TYPE) ABAP_BOOL ABAP_FALSE 20130625
7 Returning RV_PATH Value transfer Type reference (TYPE) STRING 20121025

Method GET_JSON_PATH on class CL_WDR_DATA_MODEL has no exception.

Method GET_MODEL_NODE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IO_CONTEXT_NODE Call by reference Object reference (TYPE REF TO) IF_WD_CONTEXT_NODE 20121108
2 Returning NODE Value transfer Object reference (TYPE REF TO) CL_WDR_DATA_MODEL_NODE Model für Component 20121030
3 Importing PATH Call by reference Type reference (TYPE) STRING 20121105
4 Importing WD_BINDING Call by reference Object reference (TYPE REF TO) WDR_PROPERTY_BINDING Bindung eines View-Elementes an einen Kontextknoten 20121030

Method GET_MODEL_NODE on class CL_WDR_DATA_MODEL has no exception.

Method GET_PATH_COMPONENTS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting EV_ATTRIBUTE Call by reference Type reference (TYPE) STRING 20130219
2 Exporting EV_COMPONENT Call by reference Type reference (TYPE) STRING 20130624
3 Exporting EV_CONTROLLER Call by reference Type reference (TYPE) STRING 20130219
4 Exporting EV_KEY Call by reference Type reference (TYPE) STRING 20130219
5 Exporting EV_MODEL Call by reference Type reference (TYPE) STRING 20130219
6 Exporting EV_NODE Call by reference Type reference (TYPE) STRING 20130219
7 Importing PATH Call by reference Type reference (TYPE) STRING 20130219

Method GET_PATH_COMPONENTS on class CL_WDR_DATA_MODEL has no exception.

Method ON_ATTRIBUTE_CHANGED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ATTRIBUTE_NAME Value transfer Attribute reference (LIKE) 20121106
2 Importing CONTROLLER Value transfer Attribute reference (LIKE) 20121106
3 Importing ELEMENT Value transfer Attribute reference (LIKE) 20121106
4 Importing ELEMENT_INDEX Value transfer Attribute reference (LIKE) 20121106
5 Importing NODE Value transfer Attribute reference (LIKE) 20121106
6 Importing NODE_NAME Value transfer Attribute reference (LIKE) 20121106

Method ON_ATTRIBUTE_CHANGED on class CL_WDR_DATA_MODEL has no exception.

Method ON_ATTRIBUTE_CHANGED_2D Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ATTRIBUTE_NAME Value transfer Attribute reference (LIKE) 20121106
2 Importing CONTROLLER Value transfer Attribute reference (LIKE) 20121106
3 Importing ELEMENT_KEY_X Value transfer Attribute reference (LIKE) 20121106
4 Importing ELEMENT_KEY_Y Value transfer Attribute reference (LIKE) 20121106
5 Importing NODE Value transfer Attribute reference (LIKE) 20121106
6 Importing NODE_NAME Value transfer Attribute reference (LIKE) 20121106
7 Importing PROPERTY Value transfer Attribute reference (LIKE) 20121106

Method ON_ATTRIBUTE_CHANGED_2D on class CL_WDR_DATA_MODEL has no exception.

Method ON_COLLECTION_CHANGED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CONTROLLER Value transfer Attribute reference (LIKE) 20121106
2 Importing NODE Value transfer Attribute reference (LIKE) 20121106
3 Importing NODE_NAME Value transfer Attribute reference (LIKE) 20121106
4 Importing PROPERTY Value transfer Attribute reference (LIKE) 20121106

Method ON_COLLECTION_CHANGED on class CL_WDR_DATA_MODEL has no exception.

Method ON_COLLECTION_CHANGED_2D Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CONTROLLER Value transfer Attribute reference (LIKE) 20121114
2 Importing NODE Value transfer Attribute reference (LIKE) 20121114
3 Importing NODE_NAME Value transfer Attribute reference (LIKE) 20121114
4 Importing PROPERTY Value transfer Attribute reference (LIKE) 20121114

Method ON_COLLECTION_CHANGED_2D on class CL_WDR_DATA_MODEL has no exception.

Method ON_ELEM_ATTRIBUTE_CHANGED_2D Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing ATTRIBUTE_NAME Value transfer Attribute reference (LIKE) 20130212
2 Importing CONTROLLER Value transfer Attribute reference (LIKE) 20130212
3 Importing ELEMENT_KEY_X Value transfer Attribute reference (LIKE) 20130212
4 Importing ELEMENT_KEY_Y Value transfer Attribute reference (LIKE) 20130212
5 Importing NODE Value transfer Attribute reference (LIKE) 20130212
6 Importing NODE_NAME Value transfer Attribute reference (LIKE) 20130212
7 Importing PROPERTY Value transfer Attribute reference (LIKE) 20130212

Method ON_ELEM_ATTRIBUTE_CHANGED_2D on class CL_WDR_DATA_MODEL has no exception.

Method ON_MODEL_RANGE_CHANGED Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CONTEXT_NODE Value transfer Attribute reference (LIKE) 20121105
2 Importing MODEL_NODE Value transfer Attribute reference (LIKE) 20121105
3 Importing RANGES Value transfer Attribute reference (LIKE) 20121105

Method ON_MODEL_RANGE_CHANGED on class CL_WDR_DATA_MODEL has no exception.

Method ON_SELECTION_CHANGED_2D Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing CONTROLLER Value transfer Attribute reference (LIKE) 20121106
2 Importing NODE Value transfer Attribute reference (LIKE) 20121106
3 Importing NODE_NAME Value transfer Attribute reference (LIKE) 20121106

Method ON_SELECTION_CHANGED_2D on class CL_WDR_DATA_MODEL has no exception.

Method PATH_TO_JS_OPEN_AND_CLOSE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Returning EV_JSON Value transfer Type reference (TYPE) STRING 20121026
2 Importing IV_NEW_PATH Call by reference Type reference (TYPE) STRING 20121026
3 Importing IV_OLD_PATH Call by reference Type reference (TYPE) STRING 20121026

Method PATH_TO_JS_OPEN_AND_CLOSE on class CL_WDR_DATA_MODEL has no exception.

Method REGISTER_BINDING Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing OPTIONS Call by reference Type reference (TYPE) CL_WDR_DATA_MODEL_MANAGER=>S_BINDING_OPTIONS 20140214
2 Importing OWNER Call by reference Object reference (TYPE REF TO) OBJECT 20121030
3 Importing WD_BINDING Call by reference Object reference (TYPE REF TO) WDR_PROPERTY_BINDING Bindung eines View-Elementes an einen Kontextknoten 20121030

Method REGISTER_BINDING on class CL_WDR_DATA_MODEL has no exception.

Method RENDER_UPDATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing MODEL_UPDATE Call by reference Type reference (TYPE) T_MODEL_UPDATE 20121031
2 Returning RT_MODEL_RESULT Value transfer Type reference (TYPE) TY_T_MODEL_UPDATE_RESULT 20121122

Method RENDER_UPDATE on class CL_WDR_DATA_MODEL has no exception.

Method SERIALIZE_NODE_TO_JSON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing CT_MODEL_RESULT Call by reference Type reference (TYPE) TY_T_MODEL_UPDATE_RESULT 20121122
2 Importing NODE_NAME Call by reference Type reference (TYPE) STRING 20121031
3 Importing NODE_PATH Call by reference Type reference (TYPE) STRING Model-relative JSON Node Path 20121101

Method SERIALIZE_NODE_TO_JSON on class CL_WDR_DATA_MODEL has no exception.

Method UNREGISTER_BINDINGS Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing OWNER Call by reference Object reference (TYPE REF TO) OBJECT 20121030

Method UNREGISTER_BINDINGS on class CL_WDR_DATA_MODEL has no exception.

Method UPDATE_ATTRIBUTE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing PATH Call by reference Type reference (TYPE) STRING 20130219
2 Importing UPDATE_DATA Call by reference Object reference (TYPE REF TO) IF_WDR_UPDATE_SERVER_PEER_DATA 20130219
3 Importing VALUE Call by reference Type reference (TYPE) STRING 20130219

Method UPDATE_ATTRIBUTE on class CL_WDR_DATA_MODEL has no exception.

Method UPDATE_GRID_SELECTION Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing FROM_X Call by reference Type reference (TYPE) STRING 20130515
2 Importing FROM_Y Call by reference Type reference (TYPE) STRING 20130515
3 Importing PATH Call by reference Type reference (TYPE) STRING 20130515
4 Importing STATE Call by reference Type reference (TYPE) I 20130515
5 Importing TO_X Call by reference Type reference (TYPE) STRING 20130515
6 Importing TO_Y Call by reference Type reference (TYPE) STRING 20130515

Method UPDATE_GRID_SELECTION on class CL_WDR_DATA_MODEL has no exception.

Method _DETERMINE_UPDATE Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Exporting ET_CHANGED_KEYS Call by reference Type reference (TYPE) IF_WD_CONTEXT_NODE_2D=>TY_T_RANGE_2D 20121108
2 Exporting EV_COLLECTION_CHANGED Call by reference Type reference (TYPE) ABAP_BOOL 20121108
3 Exporting EV_RANGE_CHANGE_ONLY Call by reference Type reference (TYPE) ABAP_BOOL 20121126
4 Exporting EV_SELECTION_CHANGED Call by reference Type reference (TYPE) ABAP_BOOL 20130226
5 Importing IO_CONTEXT_NODE Call by reference Object reference (TYPE REF TO) IF_WD_CONTEXT_NODE 20121108

Method _DETERMINE_UPDATE on class CL_WDR_DATA_MODEL has no exception.

Method _GET_ABSOLUTE_MODEL_PATH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_MODEL_PATH Call by reference Type reference (TYPE) STRING 20130625
2 Returning RV_MODEL_PATH Value transfer Type reference (TYPE) STRING 20130625

Method _GET_ABSOLUTE_MODEL_PATH on class CL_WDR_DATA_MODEL has no exception.

Method _GET_RELATIVE_MODEL_PATH Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_MODEL_PATH Call by reference Type reference (TYPE) STRING 20130625
2 Returning RV_MODEL_PATH Value transfer Type reference (TYPE) STRING 20130625

Method _GET_RELATIVE_MODEL_PATH on class CL_WDR_DATA_MODEL has no exception.

Method _PREV_NODE_NAME Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Changing END_OFFSET Call by reference Type reference (TYPE) I 20121031
2 Exporting NODE_NAME Call by reference Type reference (TYPE) STRING 20121031
3 Importing PATH Call by reference Type reference (TYPE) STRING 20121031

Method _PREV_NODE_NAME on class CL_WDR_DATA_MODEL has no exception.

Method _VALIDATE_JSON Signature

# Type Parameter Pass Value Optional Typing Method Associated Type Default value Description Created on
1 Importing IV_JSON_STRING Call by reference Type reference (TYPE) STRING 20130204
2 Returning RV_VALID Value transfer Type reference (TYPE) ABAP_BOOL 20130204

Method _VALIDATE_JSON on class CL_WDR_DATA_MODEL has no exception.

Method _VALIDATE_MODEL_LIST Signature

Method _VALIDATE_MODEL_LIST on class CL_WDR_DATA_MODEL has no parameter.
Method _VALIDATE_MODEL_LIST on class CL_WDR_DATA_MODEL has no exception.
History
Last changed by/on SAP  20141120 
SAP Release Created in 740