Interface AttributeCompareOperators
- 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
Modifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
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.Class<? extends AttributeCompareOperators>
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 QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
implementedInterface
Class<? extends AttributeCompareOperators> implementedInterface()- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.BindingContract<org.opendaylight.yangtools.yang.binding.DataContainer>
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
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
-