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

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

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

 grouping port-state {
   leaf link-down {
     type boolean;
   }
   leaf blocked {
     type boolean;
   }
   leaf live {
     type boolean;
   }
 }
 
  • 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 blocked, or null if it is not present.
    Return linkDown, or null if it is not present.
    Return live, or null if it is not present.
    Class<? extends PortState>
     
    default @NonNull Boolean
    Return blocked, guaranteed to be non-null.
    default @NonNull Boolean
    Return linkDown, guaranteed to be non-null.
    default @NonNull Boolean
    Return live, 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 PortState> 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
    • getLinkDown

      Boolean getLinkDown()
      Return linkDown, or null if it is not present.
      Returns:
      Boolean linkDown, or null if it is not present.
    • requireLinkDown

      default @NonNull Boolean requireLinkDown()
      Return linkDown, guaranteed to be non-null.
      Returns:
      Boolean linkDown, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if linkDown is not present
    • getBlocked

      Boolean getBlocked()
      Return blocked, or null if it is not present.
      Returns:
      Boolean blocked, or null if it is not present.
    • requireBlocked

      default @NonNull Boolean requireBlocked()
      Return blocked, guaranteed to be non-null.
      Returns:
      Boolean blocked, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if blocked is not present
    • getLive

      Boolean getLive()
      Return live, or null if it is not present.
      Returns:
      Boolean live, or null if it is not present.
    • requireLive

      default @NonNull Boolean requireLive()
      Return live, guaranteed to be non-null.
      Returns:
      Boolean live, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if live is not present