@Immutable public interface SchemaContext extends ContainerSchemaNode
DocumentedNode.WithStatus
Modifier and Type | Field and Description |
---|---|
static @NonNull QName |
NAME
QName of NETCONF top-level data node.
|
Modifier and Type | Method and Description |
---|---|
default Optional<DataSchemaNode> |
findDataTreeChild(QName name)
Returns a
data node identified by a QName. |
Optional<Module> |
findModule(@NonNull QNameModule qnameModule)
Returns the module matching specified
QNameModule , if present. |
default Optional<Module> |
findModule(String name)
Returns module instance (from the context) with specified name and no revision.
|
default Optional<Module> |
findModule(String name,
Optional<Revision> revision)
Returns module instance (from the context) with specified name and an optional revision.
|
default Optional<Module> |
findModule(String name,
@Nullable Revision revision)
Returns module instance (from the context) with specified name and revision.
|
default Optional<Module> |
findModule(@NonNull URI namespace)
Returns module instance (from the context) with specified namespace and no revision.
|
default Optional<Module> |
findModule(@NonNull URI namespace,
@NonNull Optional<Revision> revision)
Returns module instance (from the context) with specified namespace and revision.
|
default Optional<Module> |
findModule(@NonNull URI namespace,
@Nullable Revision revision)
Returns module instance (from the context) with specified namespace and revision.
|
default Set<Module> |
findModules(String name)
Returns module instances (from the context) with a concrete name.
|
default Set<Module> |
findModules(URI namespace)
Returns module instance (from the context) with concrete namespace.
|
default Set<ActionDefinition> |
getActions()
Return the set of actions.
|
Set<DataSchemaNode> |
getDataDefinitions()
Returns data schema node instances which represents direct subnodes (like
leaf, leaf-list, list, container) in all YANG modules in the context.
|
default Optional<String> |
getDescription()
Returns the value of the argument of YANG
description keyword. |
Set<ExtensionDefinition> |
getExtensions()
Returns extension definition instances which are defined as the direct
subelements in all YANG modules in the context.
|
Set<Module> |
getModules()
Returns modules which are part of the schema context.
|
default Collection<MustDefinition> |
getMustConstraints()
Specifies the rules which the node which contains
must YANG substatement has to match. |
Set<RpcDefinition> |
getOperations()
Returns rpc definition instances which are defined as the direct
subelements in all YANG modules in the context.
|
default Optional<String> |
getReference()
Returns the value of the argument of YANG
reference keyword. |
default Optional<RevisionAwareXPath> |
getWhenCondition()
Returns when statement.
|
isPresenceContainer
findDataChildByName, findDataTreeChild, findDataTreeChild, getChildNodes, getDataChildByName, getGroupings, getTypeDefinitions, getUses
getAvailableAugmentations
isConfiguration
getPath, getQName
getStatus
getUnknownSchemaNodes
isAugmenting
isAddedByUses
getNotifications
static final @NonNull QName NAME
Set<DataSchemaNode> getDataDefinitions()
DataSchemaNode
instances which represents
YANG data nodes at the module top levelSet<Module> getModules()
Module.getName()
or Module.getNamespace()
,
modules having the same attribute are encountered newest revision first.Set<RpcDefinition> getOperations()
RpcDefinition
instances which represents
nodes defined via rpc
YANG keywordSet<ExtensionDefinition> getExtensions()
ExtensionDefinition
instances which
represents nodes defined via extension
YANG keywordOptional<Module> findModule(@NonNull QNameModule qnameModule)
QNameModule
, if present.qnameModule
- requested QNameModuleNullPointerException
- if qnameModule is nulldefault Optional<Module> findModule(@NonNull URI namespace)
namespace
- module namespacenamespace
and no revision.default Optional<Module> findModule(@NonNull URI namespace, @Nullable Revision revision)
namespace
- module namespacerevision
- module revision, may be nullnamespace
and revision
.default Optional<Module> findModule(@NonNull URI namespace, @NonNull Optional<Revision> revision)
namespace
- module namespacerevision
- module revision, may be nullnamespace
and revision
.default Optional<Module> findModule(String name, Optional<Revision> revision)
name
- string with the module namerevision
- date of the module revisionname
and revision
.default Optional<Module> findModule(String name, @Nullable Revision revision)
name
- string with the module namerevision
- date of the module revision, may be nullname
and revision
.default Optional<Module> findModule(String name)
name
- string with the module namename
and no revision.NullPointerException
- if name is nulldefault Set<Module> findModules(String name)
name
- string with the module namedefault Set<Module> findModules(URI namespace)
namespace
- URI instance with specified namespacenamespace
or null
in other casesdefault Set<ActionDefinition> getActions()
ActionNodeContainer
getActions
in interface ActionNodeContainer
default Optional<String> getDescription()
DocumentedNode
description
keyword.getDescription
in interface DocumentedNode
default Optional<String> getReference()
DocumentedNode
reference
keyword.getReference
in interface DocumentedNode
default Collection<MustDefinition> getMustConstraints()
MustConstraintAware
must
YANG substatement has to match.getMustConstraints
in interface MustConstraintAware
MustDefinition
(XPath) instances which represents the concrete data
constraintsdefault Optional<RevisionAwareXPath> getWhenCondition()
WhenConditionAware
If when condition is present node defined by the parent data definition statement is only valid when the returned XPath expression conceptually evaluates to "true" for a particular instance, then the node defined by the parent data definition statement is valid; otherwise, it is not.
getWhenCondition
in interface WhenConditionAware
@Beta default Optional<DataSchemaNode> findDataTreeChild(QName name)
DataNodeContainer
data node
identified by a QName. This method is distinct from
DataNodeContainer.findDataChildByName(QName)
in that it skips over ChoiceSchemaNode
s and CaseSchemaNode
s,
hence mirroring layout of the data tree
, not schema tree
.findDataTreeChild
in interface DataNodeContainer
name
- QName identifier of the data nodedata node
, empty otherwiseCopyright © 2019 OpenDaylight. All rights reserved.