Interface UserErrorSpec
- 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
- All Known Subinterfaces:
UserError
@Generated("mdsal-binding-generator")
public interface UserErrorSpec
extends org.opendaylight.yangtools.binding.Grouping
This class represents the following YANG schema fragment defined in module rsvp
grouping user-error-spec { leaf enterprise { type iana:enterprise-number; } leaf sub-org { type uint8; default 0; } leaf value { type uint16; } leaf description { type string; default ""; } container subobjects; }
-
Method Summary
Modifier and TypeMethodDescriptionReturn description, ornull
if it is not present.Return enterprise, ornull
if it is not present.Return subobjects, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint8
Return subOrg, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint16
getValue()
Return value, ornull
if it is not present.@NonNull Subobjects
Return subobjects, or an empty instance if it is not present.default @NonNull String
Return description, guaranteed to be non-null.default @NonNull EnterpriseNumber
Return enterprise, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint8
Return subOrg, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16
Return value, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yangtools.binding.BindingContract
implementedInterface
-
Method Details
-
getEnterprise
EnterpriseNumber getEnterprise()Return enterprise, ornull
if it is not present.- Returns:
EnterpriseNumber
enterprise, ornull
if it is not present.
-
requireEnterprise
Return enterprise, guaranteed to be non-null.- Returns:
EnterpriseNumber
enterprise, guaranteed to be non-null.- Throws:
NoSuchElementException
- if enterprise is not present
-
getSubOrg
org.opendaylight.yangtools.yang.common.Uint8 getSubOrg()Return subOrg, ornull
if it is not present.- Returns:
Uint8
subOrg, ornull
if it is not present.
-
requireSubOrg
default @NonNull org.opendaylight.yangtools.yang.common.Uint8 requireSubOrg()Return subOrg, guaranteed to be non-null.- Returns:
Uint8
subOrg, guaranteed to be non-null.- Throws:
NoSuchElementException
- if subOrg 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
-
getDescription
String getDescription()Return description, ornull
if it is not present.- Returns:
String
description, ornull
if it is not present.
-
requireDescription
Return description, guaranteed to be non-null.- Returns:
String
description, guaranteed to be non-null.- Throws:
NoSuchElementException
- if description is not present
-
getSubobjects
Subobjects getSubobjects()Return subobjects, ornull
if it is not present.- Returns:
Subobjects
subobjects, ornull
if it is not present.
-
nonnullSubobjects
@NonNull Subobjects nonnullSubobjects()Return subobjects, or an empty instance if it is not present.- Returns:
Subobjects
subobjects, or an empty instance if it is not present.
-