anchor.diff:      ENDTRY.
   
     ENDMETHOD.                    "deserialize_badi
  +
  +  METHOD deserialize_class.
  +
  +    DATA: lo_enh_class TYPE REF TO cl_enh_tool_class,
  +          lt_owr       TYPE enhmeth_tabkeys,
  +          lt_pre       TYPE enhmeth_tabkeys,
  +          lt_post      TYPE enhmeth_tabkeys,
  +          lt_source    TYPE rswsourcet,
  +          li_tool      TYPE REF TO if_enh_tool,
  +          lv_shorttext TYPE string,
  +          lv_class     TYPE seoclsname,
  +          lv_enhname   TYPE enhname,
  +          lv_package   TYPE devclass.
  +
  +
  +    io_xml->read( EXPORTING iv_name = 'SHORTTEXT'
  +                  CHANGING cg_data = lv_shorttext ).
  +    io_xml->read( EXPORTING iv_name = 'OWR_METHODS'
  +                  CHANGING cg_data = lt_owr ).
  +    io_xml->read( EXPORTING iv_name = 'PRE_METHODS'
  +                  CHANGING cg_data = lt_pre ).
  +    io_xml->read( EXPORTING  iv_name = 'POST_METHODS'
  +                  CHANGING cg_data = lt_post ).
  +    io_xml->read( EXPORTING  iv_name = 'CLASS'
  +                  CHANGING cg_data = lv_class ).
  +    lt_source = mo_files->read_abap( ).
  +
  +    lv_enhname = ms_item-obj_name.
  +    lv_package = iv_package.
  +    TRY.
  +        cl_enh_factory=>create_enhancement(
  +          EXPORTING
  +            enhname       = lv_enhname
  +            enhtype       = ''
  +            enhtooltype   = cl_enh_tool_class=>tooltype
  +          IMPORTING
  +            enhancement   = li_tool
  +          CHANGING
  +            devclass      = lv_package ).
  +        lo_enh_class ?= li_tool.
  +
  +        lo_enh_class->if_enh_object_docu~set_shorttext( lv_shorttext ).
  +        lo_enh_class->set_class( lv_class ).
  +        lo_enh_class->set_owr_methods( version = 'I'
  +                                       owr_methods = lt_owr ).
  +        lo_enh_class->set_pre_methods( version = 'I'
  +                                       pre_methods = lt_pre ).
  +        lo_enh_class->set_post_methods( version = 'I'
  +                                        post_methods = lt_post ).
  +        lo_enh_class->set_eimp_include( version = 'I'
  +                                        eimp_source = lt_source ).
  +
  +        lo_enh_class->if_enh_object~save( ).
  +        lo_enh_class->if_enh_object~unlock( ).
  +      CATCH cx_enh_root INTO DATA(lx_error).
  +        lcx_exception=>raise( 'error deserializing ENHO class' ).
  +    ENDTRY.
  +
  +  ENDMETHOD.
   
     METHOD deserialize_hook.
   
  
positive.code:           lt_pre       TYPE enhmeth_tabkeys,
            lt_post      TYPE enhmeth_tabkeys,
            lt_source    TYPE rswsourcet,
            lv_shorttext TYPE string.
  
  
  
negative.code:         deserialize_hook( io_xml     = io_xml
                            iv_package = iv_package ).
        WHEN cl_enh_tool_class=>tooltype.
          deserialize_class( io_xml     = io_xml
                             iv_package = iv_package ).
  * ToDo:
  *      WHEN 'ENHFUGRDATA'. "cl_enh_tool_fugr
  *      WHEN cl_enh_tool_intf=>tooltype.
  