Interface ErrorSpec
- 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,org.opendaylight.yangtools.binding.lib.ImplementedInterface<org.opendaylight.yangtools.binding.DataContainer>
- All Known Subinterfaces:
RsvpError
@Generated("mdsal-binding-generator")
public interface ErrorSpec
extends org.opendaylight.yangtools.binding.Grouping
This class represents the following YANG schema fragment defined in module rsvp
grouping error-spec {
leaf node {
type inet:ip-address-no-zone;
}
leaf flags {
type bits {
bit in-place {
position 7;
}
bit not-guilty {
position 6;
}
}
}
leaf code {
type uint8;
}
leaf value {
type uint16;
}
}
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classThis class represents the following YANG schema fragment defined in module rsvp -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint8getCode()ReturnsUint8code, ornullif it is not present.getFlags()ReturnsFlagsflags, ornullif it is not present.org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZonegetNode()ReturnsIpAddressNoZonenode, ornullif it is not present.org.opendaylight.yangtools.yang.common.Uint16getValue()ReturnsUint16value, ornullif it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint8ReturnsUint8code, guaranteed to be non-null.default @NonNull ErrorSpec.FlagsReturnsFlagsflags, guaranteed to be non-null.default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZoneReturnsIpAddressNoZonenode, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16ReturnsUint16value, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getNode
org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone getNode()ReturnsIpAddressNoZonenode, ornullif it is not present.- Returns:
IpAddressNoZonenode, ornullif it is not present
-
requireNode
default @NonNull org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpAddressNoZone requireNode()ReturnsIpAddressNoZonenode, guaranteed to be non-null.- Returns:
IpAddressNoZonenode, guaranteed to be non-null- Throws:
NoSuchElementException- if node is not present
-
getFlags
ErrorSpec.Flags getFlags()ReturnsFlagsflags, ornullif it is not present.- Returns:
Flagsflags, ornullif it is not present
-
requireFlags
ReturnsFlagsflags, guaranteed to be non-null.- Returns:
Flagsflags, guaranteed to be non-null- Throws:
NoSuchElementException- if flags is not present
-
getCode
org.opendaylight.yangtools.yang.common.Uint8 getCode()ReturnsUint8code, ornullif it is not present.- Returns:
Uint8code, ornullif it is not present
-
requireCode
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireCode()ReturnsUint8code, guaranteed to be non-null.- Returns:
Uint8code, guaranteed to be non-null- Throws:
NoSuchElementException- if code is not present
-
getValue
org.opendaylight.yangtools.yang.common.Uint16 getValue()ReturnsUint16value, ornullif it is not present.- Returns:
Uint16value, ornullif it is not present
-
requireValue
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireValue()ReturnsUint16value, guaranteed to be non-null.- Returns:
Uint16value, guaranteed to be non-null- Throws:
NoSuchElementException- if value is not present
-