Interface Link
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
LinkDiscovered
,LinkOverutilized
,LinkRemoved
,LinkUtilizationNormal
@Generated("mdsal-binding-generator") public interface Link extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module flow-topology-discovery
grouping link { leaf source { type inv:node-connector-ref; } leaf destination { type inv:node-connector-ref; } }
The schema path to identify an instance is flow-topology-discoverylink
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description NodeConnectorRef
getDestination()
Return destination, ornull
if it is not present.NodeConnectorRef
getSource()
Return source, ornull
if it is not present.Class<? extends Link>
implementedInterface()
default @NonNull NodeConnectorRef
requireDestination()
Return destination, guaranteed to be non-null.default @NonNull NodeConnectorRef
requireSource()
Return source, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends Link> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getSource
NodeConnectorRef getSource()
Return source, ornull
if it is not present.- Returns:
NodeConnectorRef
source, ornull
if it is not present.
-
requireSource
default @NonNull NodeConnectorRef requireSource()
Return source, guaranteed to be non-null.- Returns:
NodeConnectorRef
source, guaranteed to be non-null.- Throws:
NoSuchElementException
- if source is not present
-
getDestination
NodeConnectorRef getDestination()
Return destination, ornull
if it is not present.- Returns:
NodeConnectorRef
destination, ornull
if it is not present.
-
requireDestination
default @NonNull NodeConnectorRef requireDestination()
Return destination, guaranteed to be non-null.- Returns:
NodeConnectorRef
destination, guaranteed to be non-null.- Throws:
NoSuchElementException
- if destination is not present
-
-