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;
       }
     }
     
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
        YANG identifier of the statement represented by this class.
    • Method Detail

      • implementedInterface

        Class<? extends Link> implementedInterface()
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataContainer
        Specified by:
        implementedInterface in interface org.opendaylight.yangtools.yang.binding.DataObject
      • getSource

        NodeConnectorRef getSource()
        Return source, or null if it is not present.
        Returns:
        NodeConnectorRef source, or null 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, or null if it is not present.
        Returns:
        NodeConnectorRef destination, or null 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