Interface MountPointContextFactory
@Beta
@NonNullByDefault
public interface MountPointContextFactory
An entity able to resolve the SchemaContext for embedded mount points based on generic data provided by the current
interpretation context.
-
Method Summary
Modifier and TypeMethodDescriptioncreateContext(Map<YangLibraryConstants.ContainerName, MountPointChild> libraryContainers, @Nullable MountPointChild schemaMounts) Create a mount point context based on available information.
-
Method Details
-
createContext
MountPointContext createContext(Map<YangLibraryConstants.ContainerName, MountPointChild> libraryContainers, @Nullable MountPointChild schemaMounts) throws org.opendaylight.yangtools.yang.parser.api.YangParserExceptionCreate a mount point context based on available information. Implementations are expected to attempt to interpret provided data to their best of their ability.- Parameters:
libraryContainers- available YANG library containers in opaque formatschemaMounts- the content of 'schema-mounts' container, if available- Returns:
- A
MountPointContext - Throws:
org.opendaylight.yangtools.yang.parser.api.YangParserException- if the schema cannot be assembled
-