-
New Feature
-
Resolution: Unresolved
-
None
-
None
-
None
-
None
-
Operating System: All
Platform: All
In order to efficiently propagate state to applications, we want to expose a utility method, which can evaluate a chain of incoming DataTreeCandidates and accurately translate them to a chain of changes to an expression's return values.
The way this should work is:
XPath xpath = ...; XPathDelta delta = XPathDeltaFactory.initial(xpath); Collection<DataTreeCandiates> candidates = ...; for (DataTreeCandidate c : candidates) { final Optional<XPathResult> res = delta.apply(c); if (res.isPresent()) { // Should not result in duplicates printed LOG.debug("XPath {} changed result to {}", xpath, res.get()); } } // If no state has been applied, this will return Optional.empty() Optional<XPathResult> currentResult = delta.current(); LOG.debug("Current XPath {} result is {}", xpath, currentResult);
- blocks
-
NETCONF-369 Incorrect handling of filter namespaces
- Confirmed
-
YANGTOOLS-477 Milestone: Introduce support for XPath / XQuery queries on YANG Data
- Confirmed
-
YANGTOOLS-689 DataTree: enforce 'must'-statement consistency
- Confirmed
-
YANGTOOLS-688 DataTree: enforce 'when'-statement conditional nodes
- Confirmed
- is blocked by
-
YANGTOOLS-966 Integrate YANG parser with XPath parser
- Resolved
-
YANGTOOLS-878 Add yang-data-api model of an XPath expression
- Confirmed