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:
CCloseMessage, KeepaliveMessage, OpenMessage, PcerrMessage, PcinitiateMessage, PcntfMessage, PcrepMessage, PcreqMessage, PcrptMessage, PcupdMessage, StartTlsMessage

@Generated("mdsal-binding-generator") public interface MessageHeader extends org.opendaylight.yangtools.yang.binding.DataObject
Common Header

This class represents the following YANG schema fragment defined in module pcep-types

 grouping message-header {
   leaf version {
     type protocol-version;
     default 1;
   }
 }
 
  • 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 version, or null if it is not present.
    Class<? extends MessageHeader>
     
    default @NonNull ProtocolVersion
    Return version, 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 MessageHeader> 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
    • getVersion

      ProtocolVersion getVersion()
      Return version, or null if it is not present.
      Returns:
      ProtocolVersion version, or null if it is not present.
    • requireVersion

      default @NonNull ProtocolVersion requireVersion()
      Return version, guaranteed to be non-null.
      Returns:
      ProtocolVersion version, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if version is not present