use of org.opendaylight.yangtools.yang.model.api.ChoiceSchemaNode in project controller by opendaylight.
the class DataNormalizationOperation method findChildSchemaNode.
private static Optional<DataSchemaNode> findChildSchemaNode(final DataNodeContainer parent, final QName child) {
DataSchemaNode potential = parent.getDataChildByName(child);
if (potential == null) {
final Iterable<ChoiceSchemaNode> choices = FluentIterable.from(parent.getChildNodes()).filter(ChoiceSchemaNode.class);
potential = findChoice(choices, child);
}
return Optional.fromNullable(potential);
}
Aggregations