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:
LabelStack

@Generated("mdsal-binding-generator") public interface Label extends org.opendaylight.yangtools.yang.binding.DataObject
The lable stack entry.

This class represents the following YANG schema fragment defined in module bgp-labeled-unicast

 grouping label {
   leaf label-value {
     type netc:mpls-label;
   }
 }
 
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final @NonNull org.opendaylight.yangtools.yang.common.QName
    YANG identifier of the statement represented by this class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Return labelValue, or null if it is not present.
    Class<? extends Label>
     
    default @NonNull MplsLabel
    Return labelValue, guaranteed to be non-null.
  • Field Details

    • QNAME

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

    • implementedInterface

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

      MplsLabel getLabelValue()
      Return labelValue, or null if it is not present.
      Returns:
      MplsLabel labelValue, or null if it is not present.
    • requireLabelValue

      default @NonNull MplsLabel requireLabelValue()
      Return labelValue, guaranteed to be non-null.
      Returns:
      MplsLabel labelValue, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if labelValue is not present