Record Class DiagnosticInfo
- Record Components:
namespaceUri- The symbolicId is defined within the context of a namespace. This namespace is represented as a string and is conveyed to the Client in the stringTable parameter of the ResponseHeader parameter defined in 7.27. The namespaceUri parameter contains the index into the stringTable for this string. -1 indicates that no string is specified.The namespaceUri shall not be the standard OPC UA namespace. There are no symbolicIds provided for standard StatusCodes.
symbolicId- The symbolicId shall be used to identify a vendor-specific error or condition; typically the result of some server internal operation. The maximum length of this string is 32 characters. Servers wishing to return a numeric return code should convert the return code into a string and use this string as symbolicId (e.g., "0xC0040007" or "-4").This symbolic identifier string is conveyed to the Client in the stringTable parameter of the ResponseHeader parameter defined in 7.27. The symbolicId parameter contains the index into the stringTable for this string. -1 indicates that no string is specified.
The symbolicId shall not contain StatusCodes. If the localizedText contains a translation for the description of a StatusCode, the symbolicId is -1.
locale- The locale part of the vendor-specific localized text describing the symbolic id.This localized text string is conveyed to the Client in the stringTable parameter of the ResponseHeader parameter defined in 7.27. The localizedText parameter contains the index into the stringTable for this string. -1 indicates that no string is specified.
localizedText- A vendor-specific localized text string describes the symbolic id. The maximum length of this text string is 256 characters.This localized text string is conveyed to the Client in the stringTable parameter of the ResponseHeader parameter defined in 7.27. The localizedTextIndex parameter contains the index into the stringTable for this string. -1 indicates that no string is specified.
The localizedText refers to the symbolicId if present or the string that describes the standard StatusCode if the server provides translations. If the index is -1, the server has no translation to return and the client should use the invariant StatusCode description from the specification.
additionalInfo- Vendor-specific diagnostic information.innerStatusCode- The StatusCode from the inner operation.Many applications will make calls into underlying systems during OPC UA request processing. An OPC UA Server has the option of reporting the status from the underlying system in the diagnostic info.
innerDiagnosticInfo- The diagnostic info associated with the inner StatusCode.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDiagnosticInfo(int namespaceUri, int symbolicId, int locale, int localizedText, @Nullable String additionalInfo, @Nullable StatusCode innerStatusCode, @Nullable DiagnosticInfo innerDiagnosticInfo) Creates an instance of aDiagnosticInforecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of theadditionalInforecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable DiagnosticInfoReturns the value of theinnerDiagnosticInforecord component.@Nullable StatusCodeReturns the value of theinnerStatusCoderecord component.intlocale()Returns the value of thelocalerecord component.intReturns the value of thelocalizedTextrecord component.intReturns the value of thenamespaceUrirecord component.intReturns the value of thesymbolicIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
NULL_VALUE
-
-
Constructor Details
-
DiagnosticInfo
public DiagnosticInfo(int namespaceUri, int symbolicId, int locale, int localizedText, @Nullable String additionalInfo, @Nullable StatusCode innerStatusCode, @Nullable DiagnosticInfo innerDiagnosticInfo) Creates an instance of aDiagnosticInforecord class.- Parameters:
namespaceUri- the value for thenamespaceUrirecord componentsymbolicId- the value for thesymbolicIdrecord componentlocale- the value for thelocalerecord componentlocalizedText- the value for thelocalizedTextrecord componentadditionalInfo- the value for theadditionalInforecord componentinnerStatusCode- the value for theinnerStatusCoderecord componentinnerDiagnosticInfo- the value for theinnerDiagnosticInforecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
namespaceUri
public int namespaceUri()Returns the value of thenamespaceUrirecord component.- Returns:
- the value of the
namespaceUrirecord component
-
symbolicId
public int symbolicId()Returns the value of thesymbolicIdrecord component.- Returns:
- the value of the
symbolicIdrecord component
-
locale
public int locale()Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-
localizedText
public int localizedText()Returns the value of thelocalizedTextrecord component.- Returns:
- the value of the
localizedTextrecord component
-
additionalInfo
Returns the value of theadditionalInforecord component.- Returns:
- the value of the
additionalInforecord component
-
innerStatusCode
Returns the value of theinnerStatusCoderecord component.- Returns:
- the value of the
innerStatusCoderecord component
-
innerDiagnosticInfo
Returns the value of theinnerDiagnosticInforecord component.- Returns:
- the value of the
innerDiagnosticInforecord component
-