Interface QueryFactory
- All Known Implementing Classes:
DefaultQueryFactory
,OSGiQueryFactory
Primary entry point to creating
QueryExpression
instances.-
Method Summary
Modifier and TypeMethodDescription<T extends DataObject>
@NonNull DescendantQueryBuilder<T>querySubtree
(InstanceIdentifier<T> rootPath) Create a newDescendantQueryBuilder
for a specified root path.
-
Method Details
-
querySubtree
<T extends DataObject> @NonNull DescendantQueryBuilder<T> querySubtree(InstanceIdentifier<T> rootPath) Create a newDescendantQueryBuilder
for a specified root path. Root path must be a non-wildcard InstanceIdentifier in general sense. If the target type represents a list, the last path argument may be a wildcard, in which case the path is interpreted to search the specified list. Inner path elements have to be always non-wildcarded.- Type Parameters:
T
- Target object type- Parameters:
rootPath
- Subtree root- Returns:
- a subtree query instance
- Throws:
IllegalArgumentException
- if rootPath is incorrectNullPointerException
- if rootPath is null
-