Interface Link
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
,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; } }
-
Field Summary
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionReturn destination, ornull
if it is not present.Return source, ornull
if it is not present.default @NonNull NodeConnectorRef
Return destination, guaranteed to be non-null.default @NonNull NodeConnectorRef
Return source, guaranteed to be non-null.
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.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
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
Return destination, guaranteed to be non-null.- Returns:
NodeConnectorRef
destination, guaranteed to be non-null.- Throws:
NoSuchElementException
- if destination is not present
-