[YANGTOOLS-1504] Refactor FeatureSet to yang-model-api Created: 11/Apr/23 Updated: 11/Apr/23 Resolved: 11/Apr/23 |
|
| Status: | Resolved |
| Project: | yangtools |
| Component/s: | model-api, parser |
| Affects Version/s: | None |
| Fix Version/s: | 11.0.0 |
| Type: | Task | Priority: | Medium |
| Reporter: | Robert Varga | Assignee: | Robert Varga |
| Resolution: | Done | Votes: | 0 |
| Labels: | pt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
yang.model.repo.api.FeatureSet implements a Set<QName> to control YANG parser's view of features. The Set aspect of this class is an unfortunate side-effect of the parser APIs, where really we want to have a way to flexibly implement what is essentially a Predicate<QName>. Refactor FeatureSet and move it to yang-model-api, so that it can be properly integrated with IfFeatureExpr. |