Giter Site home page Giter Site logo

zuml_diagram's People

Contributors

coreline avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

zuml_diagram's Issues

Улучшение экранирования имен

METHOD build_relation.
    DATA(lv_prefix) = ||.
    DATA(lv_suffix) = ||.
    data(lv_name) = get_name( ).
    IF iv_back EQ space.
      if lv_name ca '"'.
        lv_prefix = |{ lv_name } { iv_sep } |.
      else.
        lv_prefix = |"{ lv_name }" { iv_sep } |.
      endif.
    ELSE.
      lv_suffix = | { iv_sep } { lv_name }|.
    ENDIF.
    IF iv_comment IS NOT INITIAL.
      lv_suffix = |{ lv_suffix } { iv_comment }|.
    ENDIF.
    LOOP AT it_data ASSIGNING FIELD-SYMBOL(<lv_name>).
      DATA(lo_class) = zcl_uml_class_base=>factory( VALUE #( name = <lv_name> ) ).
      IF lo_class IS BOUND.
        rt_value = VALUE #( BASE rt_value ( |{ lv_prefix }{ lo_class->get_name( ) }{ lv_suffix }| ) ).
      ENDIF.
    ENDLOOP.
  ENDMETHOD.
METHOD get_name.
    DATA(lv_name) = substring_after( val = ms_uml_line-name sub = mv_abs_type && '=' ).
    DATA(lv_container) = get_container( ).
    IF iv_escape EQ abap_true AND lv_name CA '\=/' and lv_container is initial.
      lv_name = |"{ lv_name }"|.
    ENDIF.
    IF lv_container IS NOT INITIAL.
      rv_value = |{ lv_container }::{ lv_name }|.
    ELSE.
      rv_value = |{ lv_name }|.
    ENDIF.
  ENDMETHOD.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.