Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] [E4 Xpath] Replace apache.commons.jxpath by javax.xml.xpath #2387

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

ptziegler
Copy link
Contributor

This is a continuation of #2290 and attempts to perform an XPath evaluation of the EObjects via the native javax.xml.xpath API rather than relying on JXPath. The Java model is converted to an XML structure where each EObject is mapped to a DOM node. The XPath is applied on the root node and the resulting nodes are then converted back to EObjects.

@ptziegler
Copy link
Contributor Author

@HannesWell As the tests will hopefully show, the current state should support generic XPaths such as //mainMenu/children and also properly handle the parent context (albeit untested). The only thing that doesn't work the same way is /.

@ptziegler ptziegler marked this pull request as draft October 11, 2024 04:31
Copy link
Contributor

Test Results

 1 818 files  ±0   1 818 suites  ±0   1h 30m 3s ⏱️ - 3m 3s
 7 711 tests +3   7 482 ✅ +3  228 💤 ±0  1 ❌ ±0 
24 294 runs  +9  23 544 ✅ +7  747 💤 ±0  3 ❌ +2 

For more details on these failures, see this check.

Results for commit dc9d2d4. ± Comparison against base commit 4e0740d.

This pull request removes 3 and adds 6 tests. Note that renamed tests count towards both.
org.eclipse.e4.emf.xpath.test.ExampleQueriesApplicationTest ‑ testAccessingAllMenus
org.eclipse.e4.emf.xpath.test.ExampleQueriesApplicationTest ‑ testAccessingTheApplication
org.eclipse.e4.emf.xpath.test.ExampleQueriesApplicationTest ‑ testAccessingTheMainMenu
org.eclipse.e4.emf.xpath.test.ExampleQueriesApplicationTest ‑ testAccessingAllMenus[0]
org.eclipse.e4.emf.xpath.test.ExampleQueriesApplicationTest ‑ testAccessingAllMenus[1]
org.eclipse.e4.emf.xpath.test.ExampleQueriesApplicationTest ‑ testAccessingTheApplication[0]
org.eclipse.e4.emf.xpath.test.ExampleQueriesApplicationTest ‑ testAccessingTheApplication[1]
org.eclipse.e4.emf.xpath.test.ExampleQueriesApplicationTest ‑ testAccessingTheMainMenu[0]
org.eclipse.e4.emf.xpath.test.ExampleQueriesApplicationTest ‑ testAccessingTheMainMenu[1]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants