Class ImmutableYangNetconfError
java.lang.Object
org.opendaylight.yangtools.yang.data.api.ImmutableYangNetconfError
- All Implemented Interfaces:
YangNetconfError
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableYangNetconfError
extends Object
implements YangNetconfError
Immutable implementation of
YangNetconfError
.
Use the builder to create immutable instances:
ImmutableYangNetconfError.builder()
.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
Builds instances of typeImmutableYangNetconfError
.static interface
static interface
static interface
static interface
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
appTag()
Return this error'serror-app-tag
, if available.builder()
Creates a builder forImmutableYangNetconfError
.boolean
This instance is equal to all instances ofImmutableYangNetconfError
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:severity
,type
,tag
,message
,appTag
,path
,info
.info()
Return this error's additional info.@Nullable String
message()
Return this errors'serror-message
, if available.@Nullable YangInstanceIdentifier
path()
Return the path which triggered this error, if available.severity()
Return this error's severity.tag()
Return this error's tag.toString()
Prints the immutable valueYangNetconfError
with attribute values.type()
Return this error's type.
-
Method Details
-
severity
Return this error's severity.- Specified by:
severity
in interfaceYangNetconfError
- Returns:
- Error severity.
-
type
Return this error's type.- Specified by:
type
in interfaceYangNetconfError
- Returns:
- Error type.
-
tag
Return this error's tag.- Specified by:
tag
in interfaceYangNetconfError
- Returns:
- Error tag.
-
message
Return this errors'serror-message
, if available. This value is expected to be defined in a YANG model through aerror-message
statement.- Specified by:
message
in interfaceYangNetconfError
- Returns:
- Event message, or null.
-
appTag
Return this error'serror-app-tag
, if available. This value is expected to be defined in a YANG model through aerror-app-tag
statement.- Specified by:
appTag
in interfaceYangNetconfError
- Returns:
- Application tag, or null.
-
path
Return the path which triggered this error, if available.- Specified by:
path
in interfaceYangNetconfError
- Returns:
- Triggering path, or null.
-
info
Return this error's additional info.- Specified by:
info
in interfaceYangNetconfError
- Returns:
- Additional info.
-
equals
This instance is equal to all instances ofImmutableYangNetconfError
that have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:severity
,type
,tag
,message
,appTag
,path
,info
. -
toString
Prints the immutable valueYangNetconfError
with attribute values. -
builder
Creates a builder forImmutableYangNetconfError
.ImmutableYangNetconfError.builder() .severity(org.opendaylight.yangtools.yang.common.ErrorSeverity) // required
severity
.type(org.opendaylight.yangtools.yang.common.ErrorType) // requiredtype
.tag(org.opendaylight.yangtools.yang.common.ErrorTag) // requiredtag
.message(@org.eclipse.jdt.annotation.Nullable String | null) // nullablemessage
.appTag(@org.eclipse.jdt.annotation.Nullable String | null) // nullableappTag
.path(org.opendaylight.yangtools.yang.data.api.@org.eclipse.jdt.annotation.Nullable YangInstanceIdentifier | null) // nullablepath
.addInfo|addAllInfo(org.opendaylight.yangtools.yang.data.api.YangErrorInfo) //info
elements .build();- Returns:
- A new ImmutableYangNetconfError builder
-