use of org.opendaylight.mdsal.dom.spi.RegistrationTreeNode in project controller by opendaylight.
the class ResolveDataChangeState method getListenerChildrenWildcarded.
private static Collection<RegistrationTreeNode<DataChangeListenerRegistration<?>>> getListenerChildrenWildcarded(final Collection<RegistrationTreeNode<DataChangeListenerRegistration<?>>> parentNodes, final PathArgument child) {
if (parentNodes.isEmpty()) {
return Collections.emptyList();
}
final List<RegistrationTreeNode<DataChangeListenerRegistration<?>>> result = new ArrayList<>();
if (child instanceof NodeWithValue || child instanceof NodeIdentifierWithPredicates) {
NodeIdentifier wildcardedIdentifier = new NodeIdentifier(child.getNodeType());
addChildNodes(result, parentNodes, wildcardedIdentifier);
}
addChildNodes(result, parentNodes, child);
return result;
}
Aggregations