import org.opendaylight.yangtools.yang.model.api.SchemaContext;
public final class ImmutableNodes {
+ // FIXME: YANGTOOLS-1074: we do not want this name
private static final NodeIdentifier SCHEMACONTEXT_NAME = NodeIdentifier.create(SchemaContext.NAME);
private ImmutableNodes() {
- throw new UnsupportedOperationException("Utilities class should not be instantiated");
+ // Hidden on purpose
}
public static @NonNull CollectionNodeBuilder<MapEntryNode, MapNode> mapNodeBuilder() {
final Iterator<PathArgument> it = id.getPathArguments().iterator();
if (it.hasNext()) {
topLevelElement = it.next();
- final DataSchemaNode dataChildByName = ctx.getDataChildByName(topLevelElement.getNodeType());
+ final DataSchemaNode dataChildByName = ctx.dataChildByName(topLevelElement.getNodeType());
checkNotNull(dataChildByName,
"Cannot find %s node in schema context. Instance identifier has to start from root", topLevelElement);
instanceIdToNodes = InstanceIdToNodes.fromSchemaAndQNameChecked(ctx, topLevelElement.getNodeType());