Interface NumericTwoByteValue
-
- All Superinterfaces:
org.opendaylight.yangtools.yang.binding.BindingObject
,org.opendaylight.yangtools.yang.binding.DataContainer
,org.opendaylight.yangtools.yang.binding.DataObject
- All Known Subinterfaces:
DestinationPorts
,PacketLengths
,Ports
,SourcePorts
@Generated("mdsal-binding-generator") public interface NumericTwoByteValue extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module bgp-flowspec
grouping numeric-two-byte-value { leaf op { type numeric-operand; } leaf value { type uint16; } }
-
-
Field Summary
Fields Modifier and Type Field Description static @NonNull org.opendaylight.yangtools.yang.common.QName
QNAME
YANG identifier of the statement represented by this class.
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description NumericOperand
getOp()
Return op, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint16
getValue()
Return value, ornull
if it is not present.Class<? extends NumericTwoByteValue>
implementedInterface()
default @NonNull NumericOperand
requireOp()
Return op, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16
requireValue()
Return value, guaranteed to be non-null.
-
-
-
Method Detail
-
implementedInterface
Class<? extends NumericTwoByteValue> implementedInterface()
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataContainer
- Specified by:
implementedInterface
in interfaceorg.opendaylight.yangtools.yang.binding.DataObject
-
getOp
NumericOperand getOp()
Return op, ornull
if it is not present.- Returns:
NumericOperand
op, ornull
if it is not present.
-
requireOp
default @NonNull NumericOperand requireOp()
Return op, guaranteed to be non-null.- Returns:
NumericOperand
op, guaranteed to be non-null.- Throws:
NoSuchElementException
- if op is not present
-
getValue
org.opendaylight.yangtools.yang.common.Uint16 getValue()
Return value, ornull
if it is not present.- Returns:
Uint16
value, ornull
if it is not present.
-
requireValue
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireValue()
Return value, guaranteed to be non-null.- Returns:
Uint16
value, guaranteed to be non-null.- Throws:
NoSuchElementException
- if value is not present
-
-