@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.
|
isPresenceContainerfindDataChildByName, findDataTreeChild, findDataTreeChild, getChildNodes, getDataChildByName, getGroupings, getTypeDefinitions, getUsesgetAvailableAugmentationsisConfigurationgetPath, getQNamegetStatusgetUnknownSchemaNodesisAugmentingisAddedByUsesgetNotificationsstatic 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()
ActionNodeContainergetActions in interface ActionNodeContainerdefault Optional<String> getDescription()
DocumentedNodedescription keyword.getDescription in interface DocumentedNodedefault Optional<String> getReference()
DocumentedNodereference keyword.getReference in interface DocumentedNodedefault Collection<MustDefinition> getMustConstraints()
MustConstraintAwaremust YANG substatement has to match.getMustConstraints in interface MustConstraintAwareMustDefinition (XPath) instances which represents the concrete data
constraintsdefault Optional<RevisionAwareXPath> getWhenCondition()
WhenConditionAwareIf 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)
DataNodeContainerdata node identified by a QName. This method is distinct from
DataNodeContainer.findDataChildByName(QName) in that it skips over ChoiceSchemaNodes and CaseSchemaNodes,
hence mirroring layout of the data tree, not schema tree.findDataTreeChild in interface DataNodeContainername - QName identifier of the data nodedata node, empty otherwiseCopyright © 2019 OpenDaylight. All rights reserved.