All Superinterfaces:
org.opendaylight.yangtools.binding.BindingContract<org.opendaylight.yangtools.binding.DataContainer>, org.opendaylight.yangtools.binding.BindingObject, org.opendaylight.yangtools.binding.DataContainer, org.opendaylight.yangtools.binding.Grouping
All Known Subinterfaces:
Communities, Communities, Communities

@Generated("mdsal-binding-generator") public interface Community extends org.opendaylight.yangtools.binding.Grouping
Community Path Attribute

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

 grouping community {
   leaf as-number {
     type inet:as-number;
   }
   leaf semantics {
     type uint16;
   }
 }
 
  • Method Summary

    Modifier and Type
    Method
    Description
    org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
    Return asNumber, or null if it is not present.
    org.opendaylight.yangtools.yang.common.Uint16
    Return semantics, or null if it is not present.
    default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber
    Return asNumber, guaranteed to be non-null.
    default @NonNull org.opendaylight.yangtools.yang.common.Uint16
    Return semantics, guaranteed to be non-null.

    Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract

    implementedInterface
  • Method Details

    • getAsNumber

      org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber getAsNumber()
      Return asNumber, or null if it is not present.
      Returns:
      AsNumber asNumber, or null if it is not present.
    • requireAsNumber

      default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.AsNumber requireAsNumber()
      Return asNumber, guaranteed to be non-null.
      Returns:
      AsNumber asNumber, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if asNumber is not present
    • getSemantics

      org.opendaylight.yangtools.yang.common.Uint16 getSemantics()
      Return semantics, or null if it is not present.
      Returns:
      Uint16 semantics, or null if it is not present.
    • requireSemantics

      default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireSemantics()
      Return semantics, guaranteed to be non-null.
      Returns:
      Uint16 semantics, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if semantics is not present