Interface AttributeCompareOperators
- 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:
AsPathLength
,CommunityCount
@Generated("mdsal-binding-generator")
public interface AttributeCompareOperators
extends org.opendaylight.yangtools.binding.Grouping
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; } }
-
Method Summary
Modifier and TypeMethodDescriptionReturn operator, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint32
getValue()
Return value, ornull
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.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getOperator
AttributeComparison getOperator()Return operator, ornull
if it is not present.type of comparison to be performed
- Returns:
AttributeComparison
operator, ornull
if it is not present.
-
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, ornull
if it is not present.value to compare with the community count
- Returns:
Uint32
value, ornull
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
-