OpenEngSB
  1. OpenEngSB
  2. OPENENGSB-3198

extend OpenEngSBModels with the methods getModelTail and setModelTail

    Details

    • Changelog:
      Hide
      OpenEngSBModel have now two new functions:
      getOpenEngSBModelTail: returns the tail of the model only
      setOpenEngSBModelTail: set the tail of a model. Caution: if the model has properties with the same name like elements added in the tail, the tails values will be ignored

      How to use the functions:
      Either cast your model class to OpenEngSBModel and call the methods directly, or use the util class ModelUtils where this functions can be called without casting the model yourself

      Why use the functions:
      The main reason why this functionality was added is because then the Model <-> JSON conversion works. But with the functions you can receive only the tail of a model and not all of its model entries if you are interested. Also with the setter there is a third way to manipulate the entries in addition to addOpenEngSBModelEntry and removeOpenEngSBModelEntry
      Show
      OpenEngSBModel have now two new functions: getOpenEngSBModelTail: returns the tail of the model only setOpenEngSBModelTail: set the tail of a model. Caution: if the model has properties with the same name like elements added in the tail, the tails values will be ignored How to use the functions: Either cast your model class to OpenEngSBModel and call the methods directly, or use the util class ModelUtils where this functions can be called without casting the model yourself Why use the functions: The main reason why this functionality was added is because then the Model <-> JSON conversion works. But with the functions you can receive only the tail of a model and not all of its model entries if you are interested. Also with the setter there is a third way to manipulate the entries in addition to addOpenEngSBModelEntry and removeOpenEngSBModelEntry
    • Sprint:
      Sprint 4, Sprint 5

      Gliffy Diagrams

      Error rendering 'com.meetme.plugins.jira.gerrit-plugin:gerritreviewsmodule'. Please contact your JIRA administrators.

        Activity

        Hide
        Andreas Pieber added a comment -

        pls extend the changelog to also add how/why to use them

        Show
        Andreas Pieber added a comment - pls extend the changelog to also add how/why to use them

          People

          • Assignee:
            Felix Mayerhuber
            Reporter:
            Felix Mayerhuber
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Agile