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 ofYangNetconfError
.Use the builder to create immutable instances:
ImmutableYangNetconfError.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutableYangNetconfError.Builder
Builds instances of typeImmutableYangNetconfError
.static interface
ImmutableYangNetconfError.BuildFinal
static interface
ImmutableYangNetconfError.SeverityBuildStage
static interface
ImmutableYangNetconfError.TagBuildStage
static interface
ImmutableYangNetconfError.TypeBuildStage
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable String
appTag()
Return this error'serror-app-tag
, if available.static ImmutableYangNetconfError.SeverityBuildStage
builder()
Creates a builder forImmutableYangNetconfError
.boolean
equals(Object another)
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
.ImmutableList<YangErrorInfo>
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.ErrorSeverity
severity()
Return this error's severity.ErrorTag
tag()
Return this error's tag.String
toString()
Prints the immutable valueYangNetconfError
with attribute values.ErrorType
type()
Return this error's type.
-
-
-
Method Detail
-
severity
public ErrorSeverity severity()
Return this error's severity.- Specified by:
severity
in interfaceYangNetconfError
- Returns:
- Error severity.
-
type
public ErrorType type()
Return this error's type.- Specified by:
type
in interfaceYangNetconfError
- Returns:
- Error type.
-
tag
public ErrorTag tag()
Return this error's tag.- Specified by:
tag
in interfaceYangNetconfError
- Returns:
- Error tag.
-
message
public @Nullable String 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
public @Nullable String 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
public @Nullable YangInstanceIdentifier path()
Return the path which triggered this error, if available.- Specified by:
path
in interfaceYangNetconfError
- Returns:
- Triggering path, or null.
-
info
public ImmutableList<YangErrorInfo> info()
Return this error's additional info.- Specified by:
info
in interfaceYangNetconfError
- Returns:
- Additional info.
-
equals
public boolean equals(Object another)
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
public String toString()
Prints the immutable valueYangNetconfError
with attribute values.
-
builder
public static ImmutableYangNetconfError.SeverityBuildStage 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
-
-