Class ImmutableYangNetconfError

    • Method Detail

      • message

        public @Nullable String message()
        Return this errors's error-message, if available. This value is expected to be defined in a YANG model through a error-message statement.
        Specified by:
        message in interface YangNetconfError
        Returns:
        Event message, or null.
      • appTag

        public @Nullable String appTag()
        Return this error's error-app-tag, if available. This value is expected to be defined in a YANG model through a error-app-tag statement.
        Specified by:
        appTag in interface YangNetconfError
        Returns:
        Application tag, or null.
      • equals

        public boolean equals​(Object another)
        This instance is equal to all instances of ImmutableYangNetconfError that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: severity, type, tag, message, appTag, path, info.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value YangNetconfError with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • builder

        public static ImmutableYangNetconfError.SeverityBuildStage builder()
        Creates a builder for ImmutableYangNetconfError.
         ImmutableYangNetconfError.builder()
            .severity(org.opendaylight.yangtools.yang.common.ErrorSeverity) // required severity
            .type(org.opendaylight.yangtools.yang.common.ErrorType) // required type
            .tag(org.opendaylight.yangtools.yang.common.ErrorTag) // required tag
            .message(@org.eclipse.jdt.annotation.Nullable String | null) // nullable message
            .appTag(@org.eclipse.jdt.annotation.Nullable String | null) // nullable appTag
            .path(org.opendaylight.yangtools.yang.data.api.@org.eclipse.jdt.annotation.Nullable YangInstanceIdentifier | null) // nullable path
            .addInfo|addAllInfo(org.opendaylight.yangtools.yang.data.api.YangErrorInfo) // info elements
            .build();
         
        Returns:
        A new ImmutableYangNetconfError builder