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:
AsPathLength, CommunityCount

@Generated("mdsal-binding-generator") public interface AttributeCompareOperators extends org.opendaylight.yangtools.yang.binding.DataObject
common definitions for comparison operations in condition statements

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

 grouping attribute-compare-operators {
   leaf operator {
     type identityref {
       base attribute-comparison;
     }
   }
   leaf value {
     type uint32;
   }
 }
 
  • 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 operator, or null if it is not present.
    org.opendaylight.yangtools.yang.common.Uint32
    Return value, or null if it is not present.
     
    default @NonNull AttributeComparison
    Return operator, guaranteed to be non-null.
    default @NonNull org.opendaylight.yangtools.yang.common.Uint32
    Return value, 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 AttributeCompareOperators> 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
    • getOperator

      AttributeComparison getOperator()
      Return operator, or null if it is not present.
           
               type of comparison to be performed
           
       
      Returns:
      AttributeComparison operator, or null if it is not present.
    • requireOperator

      default @NonNull AttributeComparison requireOperator()
      Return operator, guaranteed to be non-null.
           
               type of comparison to be performed
           
       
      Returns:
      AttributeComparison operator, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if operator is not present
    • getValue

      org.opendaylight.yangtools.yang.common.Uint32 getValue()
      Return value, or null if it is not present.
           
               value to compare with the community count
           
       
      Returns:
      Uint32 value, or null if it is not present.
    • requireValue

      default @NonNull org.opendaylight.yangtools.yang.common.Uint32 requireValue()
      Return value, guaranteed to be non-null.
           
               value to compare with the community count
           
       
      Returns:
      Uint32 value, guaranteed to be non-null.
      Throws:
      NoSuchElementException - if value is not present