/* * Copyright (c) 2019 PANTHEON.tech s.r.o. and others. All rights reserved. * * This program and the accompanying materials are made available under the * terms of the Eclipse Public License v1.0 which accompanies this distribution, * and is available at http://www.eclipse.org/legal/epl-v10.html */ package org.opendaylight.yangtools.rfc8528.data.api; import com.google.common.annotations.Beta; import java.util.Optional; import org.eclipse.jdt.annotation.NonNull; import org.eclipse.jdt.annotation.NonNullByDefault; import org.opendaylight.yangtools.rfc8528.model.api.MountPointSchemaResolver; import org.opendaylight.yangtools.rfc8528.model.api.StaticMountPointSchemaResolver; import org.opendaylight.yangtools.rfc8528.model.api.YangLibraryConstants.ContainerName; import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode; import org.opendaylight.yangtools.yang.model.api.SchemaContext; import org.opendaylight.yangtools.yang.model.parser.api.YangParserException; @Beta public interface MountPointNodeFactoryResolver extends MountPointSchemaResolver { /** * A resolver which can resolve the SchemaContext for use with mount point data based on the * {@code ietf-yang-library} content of the mountpoint itself. This process requires two steps: *
* Note this schema is not guaranteed to contain any augmentations, hence parsing could fail.
*
* @param containerName Top-level YANG Library container name
* @return The LibraryContext to use when interpreting the specified YANG Library container, or empty
* @throws NullPointerException if container is null
*/
Optional