Interface FragmentValue
- 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:
Fragments
@Generated("mdsal-binding-generator")
public interface FragmentValue
extends org.opendaylight.yangtools.yang.binding.DataObject
This class represents the following YANG schema fragment defined in module bgp-flowspec
grouping fragment-value { leaf op { type bitmask-operand; } leaf value { type fragment; } }
-
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 TypeMethodDescriptiongetOp()
Return op, ornull
if it is not present.getValue()
Return value, ornull
if it is not present.Class<? extends FragmentValue>
default @NonNull BitmaskOperand
Return op, guaranteed to be non-null.default @NonNull Fragment
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 FragmentValue> 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
-
getOp
BitmaskOperand getOp()Return op, ornull
if it is not present.- Returns:
BitmaskOperand
op, ornull
if it is not present.
-
requireOp
Return op, guaranteed to be non-null.- Returns:
BitmaskOperand
op, guaranteed to be non-null.- Throws:
NoSuchElementException
- if op is not present
-
getValue
Fragment getValue()Return value, ornull
if it is not present.- Returns:
Fragment
value, ornull
if it is not present.
-
requireValue
Return value, guaranteed to be non-null.- Returns:
Fragment
value, guaranteed to be non-null.- Throws:
NoSuchElementException
- if value is not present
-