SAP ABAP Class CL_XMLDIFF_DOCUMENT (XMLdiff document)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-UPG-NA (Application Component) SAP Note Assistant
⤷
SXMLDIFF (Package) XMLdiff
⤷
⤷
Properties
| Class | CL_XMLDIFF_DOCUMENT | |
| Short Description | XMLdiff document | |
| Super Class | ||
| Instantiability of a Class | 0 | Private |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SXMLDIFF | XMLdiff |
| Created | 20080701 | SAP |
| Last change | 20110908 | SAP |
| 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_XMLDIFF_DOCUMENT has no interface implemented.
Friends
Class CL_XMLDIFF_DOCUMENT has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Instance attribute | Protected | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | 20080701 | ||||
| 2 | Instance attribute | Protected | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | 20080701 | ||||
| 3 | Instance attribute | Protected | See coding | 20080701 | |||||
| 4 | Instance attribute | Protected | Type reference (TYPE) | I | 20080703 | ||||
| 5 | Instance attribute | Protected | Type reference (TYPE) | I | 20080703 | ||||
| 6 | Instance attribute | Protected | Type reference (TYPE) | I | 20080703 | ||||
| 7 | Instance attribute | Protected | Type reference (TYPE) | XSTRING | 20080701 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Instance method | Protected | Method | Check hierarchical consistency of 2 nodes | 20080710 | |
| 2 | Static method | Public | Method | Create new document for use by XMLdiff | 20080701 | |
| 3 | Instance method | Protected | Method | Create a delete action | 20080701 | |
| 4 | Instance method | Public | Method | Diff this document to another and return delta as actions | 20080701 | |
| 5 | Instance method | Protected | Method | Find differences between two attribute lists and create act. | 20080701 | |
| 6 | Instance method | Protected | Method | Find differences between two subtrees | 20080701 | |
| 7 | Instance method | Public | Method | Get next node using preorder tree traversal | 20080701 | |
| 8 | Instance method | Public | Method | Get node from xpath | 20080704 | |
| 9 | Instance method | Public | Method | Get root node and set it as current node | 20080701 | |
| 10 | Instance method | Protected | Method | Create an insert action | 20080701 | |
| 11 | Instance method | Protected | Method | Match leaves of two documents | 20080701 | |
| 12 | Instance method | Protected | Method | Parse xml document | 20080701 |
Events
Class CL_XMLDIFF_DOCUMENT has no event.
Types
Class CL_XMLDIFF_DOCUMENT has no local type.
Method Signatures
Method CHECK_HIERARCHY Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_REF_NODE | Call by reference | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | XMLdiff node | 20080710 | |||
| 2 | IO_TEST_NODE | Call by reference | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | XMLdiff node | 20080710 | |||
| 3 | RO_TEST_NODE | Value transfer | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | XMLdiff node | 20080710 |
Method CHECK_HIERARCHY on class CL_XMLDIFF_DOCUMENT has no exception.
Method CREATE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_STRING | Call by reference | Type reference (TYPE) | STRING | 20080701 | ||||
| 2 | IV_XSTRING | Call by reference | Type reference (TYPE) | XSTRING | 20080701 | ||||
| 3 | RO_DOC | Value transfer | Object reference (TYPE REF TO) | CL_XMLDIFF_DOCUMENT | 20080701 |
Method CREATE on class CL_XMLDIFF_DOCUMENT has no exception.
Method DELETE_NODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_NODE | Call by reference | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | 20080701 |
Method DELETE_NODE on class CL_XMLDIFF_DOCUMENT has no exception.
Method DIFF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ET_ACTIONS | Call by reference | Type reference (TYPE) | CL_XMLDIFF_ACTION=>TY_TABLE | 20080701 | ||||
| 2 | EV_NODES_CHANGED | Call by reference | Type reference (TYPE) | I | 20080703 | ||||
| 3 | EV_NODES_DELETED | Call by reference | Type reference (TYPE) | I | 20080703 | ||||
| 4 | EV_NODES_INSERTED | Call by reference | Type reference (TYPE) | I | 20080703 | ||||
| 5 | IO_TEST_DOC | Call by reference | Object reference (TYPE REF TO) | CL_XMLDIFF_DOCUMENT | 20080701 | ||||
| 6 | IV_MATCH_STRENGTH | Call by reference | Type reference (TYPE) | I | 2 | higher strength = less actions & higher runtime | 20080703 | ||
| 7 | IV_PERF | Call by reference | Type reference (TYPE) | ABAP_BOOL | ABAP_FALSE | 20080714 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | iXML Exception: Error While Parsing | 20081031 |
Method DIFF_ATTR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_REF_NODE | Call by reference | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | 20080701 |
Method DIFF_ATTR on class CL_XMLDIFF_DOCUMENT has no exception.
Method DIFF_NODES_INT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_REF_FIRST | Call by reference | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | 20080701 | ||||
| 2 | IO_TEST_FIRST | Call by reference | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | 20080701 |
Method DIFF_NODES_INT on class CL_XMLDIFF_DOCUMENT has no exception.
Method GET_NEXT_NODE_PREORDER Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RO_NODE | Value transfer | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | 20080701 |
Method GET_NEXT_NODE_PREORDER on class CL_XMLDIFF_DOCUMENT has no exception.
Method GET_NODE_BY_XPATH Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IV_XPATH | Call by reference | Type reference (TYPE) | STRING | 20080704 | ||||
| 2 | RO_NODE | Value transfer | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | XMLdiff node | 20080704 |
Method GET_NODE_BY_XPATH on class CL_XMLDIFF_DOCUMENT has no exception.
Method GET_ROOT_NODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | RO_NODE | Value transfer | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | 20080701 |
Method GET_ROOT_NODE on class CL_XMLDIFF_DOCUMENT has no exception.
Method INSERT_NODE Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_NODE | Call by reference | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | 20080701 | ||||
| 2 | IO_PREV_NODE | Call by reference | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | 20080701 |
Method INSERT_NODE on class CL_XMLDIFF_DOCUMENT has no exception.
Method MATCH_LEAVES Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | IO_REF_ROOT | Call by reference | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | XMLdiff node | 20081028 | |||
| 2 | IO_TEST_ROOT | Call by reference | Object reference (TYPE REF TO) | CL_XMLDIFF_NODE | XMLdiff node | 20081028 | |||
| 3 | IV_MATCH_STRENGTH | Call by reference | Type reference (TYPE) | I | 20080703 |
Method MATCH_LEAVES on class CL_XMLDIFF_DOCUMENT has no exception.
Method PARSE Signature
Method PARSE on class CL_XMLDIFF_DOCUMENT has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | iXML Exception: Error While Parsing | 20081031 |
History
| Last changed by/on | SAP | 20110908 |
| SAP Release Created in | 720 |