Interface AttributeCompareOperators

  • All Superinterfaces:
    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;
       }
     }
     
    The schema path to identify an instance is openconfig-policy-typesattribute-compare-operators
    • Field Detail

      • QNAME

        static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAME
    • Method Detail

      • implementedInterface

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

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

        default @NonNull Class<? extends AttributeComparison> requireOperator()
        Return operator, guaranteed to be non-null.
             
                 type of comparison to be performed
             
         
        Returns:
        Class<? extends 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