Interface MetricObject
- 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
@Generated("mdsal-binding-generator")
public interface MetricObject
extends org.opendaylight.yangtools.yang.binding.DataObject
METRIC Object
This class represents the following YANG schema fragment defined in module pcep-types
grouping metric-object { container metric { uses object; leaf metric-type { type uint8; } leaf bound { type boolean; default false; } leaf computed { type boolean; default false; } leaf value { type ieee754:float32; } } }
-
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 metric, ornull
if it is not present.Class<? extends MetricObject>
@NonNull Metric
Return metric, or an empty instance if it is not present.
-
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 MetricObject> 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
-
getMetric
Metric getMetric()Return metric, ornull
if it is not present.- Returns:
Metric
metric, ornull
if it is not present.
-
nonnullMetric
@NonNull Metric nonnullMetric()Return metric, or an empty instance if it is not present.- Returns:
Metric
metric, or an empty instance if it is not present.
-