Interface Node
-
- All Superinterfaces:
BindingObject
,DataContainer
,DataObject
- All Known Subinterfaces:
Node
,NodeUpdated
public interface Node extends DataObject
Describes the contents of a generic node - essentially an ID and a list of node-connectors. Acts as an augmentation point where other YANG files can add additional information.This class represents the following YANG schema fragment defined in module opendaylight-inventory
grouping node { leaf id { type node-id; } list node-connector { key id; ext:context-instance node-connector-context; uses node-connector; } }
The schema path to identify an instance is opendaylight-inventory/node
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description @Nullable NodeId
getId()
The unique identifier for the node.@Nullable Map<NodeConnectorKey,NodeConnector>
getNodeConnector()
A list of node connectors that belong this node.Class<? extends Node>
implementedInterface()
default @NonNull Map<NodeConnectorKey,NodeConnector>
nonnullNodeConnector()
-
-
-
Field Detail
-
QNAME
static final @NonNull QName QNAME
-
-
Method Detail
-
implementedInterface
Class<? extends Node> implementedInterface()
- Specified by:
implementedInterface
in interfaceDataContainer
- Specified by:
implementedInterface
in interfaceDataObject
-
getId
@Nullable NodeId getId()
The unique identifier for the node.- Returns:
org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.NodeId
id
, ornull
if not present
-
getNodeConnector
@Nullable Map<NodeConnectorKey,NodeConnector> getNodeConnector()
A list of node connectors that belong this node.- Returns:
java.util.Map
nodeConnector
, ornull
if not present
-
nonnullNodeConnector
default @NonNull Map<NodeConnectorKey,NodeConnector> nonnullNodeConnector()
- Returns:
java.util.Map
nodeConnector
, or an empty list if it is not present
-
-