Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-617

Refactor DOMQueryPredicate for proper algebra

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 5.0.15, 7.0.2, 6.0.8
    • DOM API, DOM runtime
    • None

    Description

      Current predicates do not quite work for complex queries. We have the makings of a DOMQueryPredicate.And in the fact that a query has a set of predicates and DOMQueryPredicate.Not, which is a negation.

      Generalize these concepts to have proper algebra and combination of predicates. As Predicate.Not is showing such CompositePredicates do not have a path – hence we'll have two immediate subclasses of DOMQueryPredicate to distinguish these two.

      It seems that we have to separate the combination of predicates with differing paths (lookup+match) and same paths (lookup + multiple matches). Target class hierarchy will be ... interesting, but should cover the algebra quite well.

      Also update DOMQueryMatcher to handle these changes.

      Attachments

        # Subject Branch Project Status CR V

        Activity

          People

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: