@Beta public abstract class AbstractDynamicMountPointContextFactory extends AbstractIdentifiable<MountPointIdentifier> implements MountPointContextFactory
Modifier | Constructor and Description |
---|---|
protected |
AbstractDynamicMountPointContextFactory(@NonNull MountPointIdentifier mountId) |
Modifier and Type | Method and Description |
---|---|
protected abstract @NonNull SchemaContext |
bindLibrary(@NonNull YangLibraryConstants.ContainerName containerName,
@NonNull ContainerNode libData)
Assemble the MountPointContext for specified normalized YANG Library top-level container.
|
MountPointContext |
createContext(Map<YangLibraryConstants.ContainerName,MountPointChild> libraryContainers,
MountPointChild schemaMounts)
Create a mount point context based on available information.
|
protected abstract @NonNull MountPointContext |
createMountPointContext(@NonNull SchemaContext schemaContext,
@NonNull ContainerNode mountData) |
protected abstract Optional<SchemaContext> |
findSchemaForLibrary(@NonNull YangLibraryConstants.ContainerName containerName)
Return the schema in which YANG Library container content should be interpreted.
|
addToStringAttributes, getIdentifier, toString
protected AbstractDynamicMountPointContextFactory(@NonNull MountPointIdentifier mountId)
public final MountPointContext createContext(Map<YangLibraryConstants.ContainerName,MountPointChild> libraryContainers, MountPointChild schemaMounts) throws YangParserException
MountPointContextFactory
createContext
in interface MountPointContextFactory
libraryContainers
- available YANG library containers in opaque formatschemaMounts
- the content of 'schema-mounts' container, if availableMountPointContext
YangParserException
- if the schema cannot be assembledprotected abstract @NonNull MountPointContext createMountPointContext(@NonNull SchemaContext schemaContext, @NonNull ContainerNode mountData)
protected abstract @NonNull SchemaContext bindLibrary(@NonNull YangLibraryConstants.ContainerName containerName, @NonNull ContainerNode libData) throws YangParserException
containerName
- Top-level YANG Library containerlibData
- Top-level YANG Library container dataNullPointerException
- if container is nullYangParserException
- if the schema context cannot be assembledprotected abstract Optional<SchemaContext> findSchemaForLibrary(@NonNull YangLibraryConstants.ContainerName containerName)
Note this schema is not guaranteed to contain any augmentations, hence parsing could fail.
containerName
- Top-level YANG Library container nameNullPointerException
- if container is nullCopyright © 2019 OpenDaylight. All rights reserved.