Uploaded image for project: 'CMS'
  1. CMS
  2. CMS-12164

[Property] Add hasValue and hasValueOrEmpty methods

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major Major
    • 4.LATER
    • 4.8.0
    • None
    • None
    • 2 - Long term
    • 2 - Normal

      Currently, to check if a Property has a value, we just check if it is null. But it can also be an empty string, an empty array, or equals to 0 or less for example.
      So we should have the hasValue and hasValueOrEmpty methods defined on Property class. It can have a default implementation like:

      property.getValue(dataPath) != null

            Unassigned Unassigned
            bmaurel Bérénice Maurel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: