Interface Error
- 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
,OfHeader
- All Known Subinterfaces:
ErrorMessage
@Generated("mdsal-binding-generator")
public interface Error
extends org.opendaylight.yangtools.yang.binding.DataObject, OfHeader
This class represents the following YANG schema fragment defined in module openflow-protocol
grouping error { uses ofHeader; leaf type { type uint16; } leaf code { type uint16; } leaf type-string { type string; } leaf code-string { type string; } leaf data { type binary; } }
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NonNull org.opendaylight.yangtools.yang.common.QName
YANG identifier of the statement represented by this class. -
Method Summary
Modifier and TypeMethodDescriptionorg.opendaylight.yangtools.yang.common.Uint16
getCode()
Return code, ornull
if it is not present.Return codeString, ornull
if it is not present.byte[]
getData()
Return data, ornull
if it is not present.org.opendaylight.yangtools.yang.common.Uint16
getType()
Return type, ornull
if it is not present.Return typeString, ornull
if it is not present.default @NonNull org.opendaylight.yangtools.yang.common.Uint16
Return code, guaranteed to be non-null.default @NonNull String
Return codeString, guaranteed to be non-null.default byte @NonNull []
Return data, guaranteed to be non-null.default @NonNull org.opendaylight.yangtools.yang.common.Uint16
Return type, guaranteed to be non-null.default @NonNull String
Return typeString, guaranteed to be non-null.Methods inherited from interface org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader
getVersion, getXid, requireVersion, requireXid
-
Field Details
-
QNAME
static final @NonNull org.opendaylight.yangtools.yang.common.QName QNAMEYANG identifier of the statement represented by this class.
-
-
Method Details
-
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
- Specified by:
implementedInterface
in interfaceOfHeader
-
getType
org.opendaylight.yangtools.yang.common.Uint16 getType()Return type, ornull
if it is not present.- Returns:
Uint16
type, ornull
if it is not present.
-
requireType
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireType()Return type, guaranteed to be non-null.- Returns:
Uint16
type, guaranteed to be non-null.- Throws:
NoSuchElementException
- if type is not present
-
getCode
org.opendaylight.yangtools.yang.common.Uint16 getCode()Return code, ornull
if it is not present.- Returns:
Uint16
code, ornull
if it is not present.
-
requireCode
default @NonNull org.opendaylight.yangtools.yang.common.Uint16 requireCode()Return code, guaranteed to be non-null.- Returns:
Uint16
code, guaranteed to be non-null.- Throws:
NoSuchElementException
- if code is not present
-
getTypeString
String getTypeString()Return typeString, ornull
if it is not present.- Returns:
String
typeString, ornull
if it is not present.
-
requireTypeString
Return typeString, guaranteed to be non-null.- Returns:
String
typeString, guaranteed to be non-null.- Throws:
NoSuchElementException
- if typeString is not present
-
getCodeString
String getCodeString()Return codeString, ornull
if it is not present.- Returns:
String
codeString, ornull
if it is not present.
-
requireCodeString
Return codeString, guaranteed to be non-null.- Returns:
String
codeString, guaranteed to be non-null.- Throws:
NoSuchElementException
- if codeString is not present
-
getData
byte[] getData()Return data, ornull
if it is not present.- Returns:
byte[]
data, ornull
if it is not present.
-
requireData
default byte @NonNull [] requireData()Return data, guaranteed to be non-null.- Returns:
byte[]
data, guaranteed to be non-null.- Throws:
NoSuchElementException
- if data is not present
-