Interface QueryFactory
-
- All Known Implementing Classes:
DefaultQueryFactory
,OSGiQueryFactory
@Beta public interface QueryFactory
Primary entry point to creatingQueryExpression
instances.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T extends DataObject>
@NonNull DescendantQueryBuilder<T>querySubtree(InstanceIdentifier<T> rootPath)
Create a newDescendantQueryBuilder
for a specified root path.
-
-
-
Method Detail
-
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
-
-